Re: [PATCH] uprobes/x86: Recognize user ENDBR64 without kernel IBT
From: David Windsor
Date: Tue Dec 01 2026 - 16:18:48 EST
On Tue, Dec 1, 2026 at 3:40 PM Andrii Nakryiko
<andrii.nakryiko@xxxxxxxxx> wrote:
>
>
> would anything break if is_endbr() detect endb64 instruction even if
> !HAS_KERNEL_IBT?
>
Shouldn't break anything, AFAICT. Reason I went this way is that if we
update is_endbr(), we'd be doing the check unnecessarily for kprobes,
fprobes and JIT, which will never contain endbr64 if !HAS_KERNEL_IBT.
uprobe case is the only one that can possibly have CFI landing pad
here when !HAS_KERNEL_IBT.
Also is_endbr() checks for poison and endbr32, neither of which are
valid for userspace.
That said, if folks want it in is_endbr(), happy to respin it that way,