Thread (11 messages) flat view 11 messages, 5 authors, 2021-02-08

Re: [PATCH] arm64: bti: Set PROT_BTI on all BTI executables mapped by the kernel

From: Szabolcs Nagy <hidden>
Date: 2021-02-08 16:49:18

The 02/08/2021 14:13, Szabolcs Nagy via Libc-alpha wrote:
The 02/08/2021 12:44, Will Deacon wrote:
quoted
I'd like an Ack from Szabolcs before we queue this.
i'm ok with this in principle, but i will rerun
the glibc tests over night to be sure.

the patch applied cleanly on top of arm64 for-next/core

but it does not work as i expected:

executables that do not have the bti property note
set seems to get bti guarded by the kernel.

at least i see crash in _start when the dynamic
linker (which has bti marking) transfers control
to it and the start code has no bti c.

(according to strace the dynamic linker did not
remap/mprotect the main exe with bti so i assume
this is the kernel's doing)

can somebody verify that the notes are checked
on the executable too and not just on ld.so?

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help