Thread (11 messages) 11 messages, 4 authors, 2026-03-25

Re: [PATCH bpf-next v10 5/5] bpf, arm64: Emit BTI for indirect jump target

From: Leon Hwang <hidden>
Date: 2026-03-25 10:15:12
Also in: bpf, lkml

On 24/3/26 20:20, Xu Kuohai wrote:
From: Xu Kuohai <redacted>

On CPUs that support BTI, the indirect jump selftest triggers a kernel
panic because there is no BTI instructions at the indirect jump targets.

Fix it by emitting a BTI instruction for each indirect jump target.

For reference, below is a sample panic log.

Internal error: Oops - BTI: 0000000036000003 [#1]  SMP
...
Call trace:
 bpf_prog_2e5f1c71c13ac3e0_big_jump_table+0x54/0xf8 (P)
 bpf_prog_run_pin_on_cpu+0x140/0x468
 bpf_prog_test_run_syscall+0x280/0x3b8
 bpf_prog_test_run+0x22c/0x2c0

Fixes: f4a66cf1cb14 ("bpf: arm64: Add support for indirect jumps")
Reviewed-by: Anton Protopopov <redacted>
Signed-off-by: Xu Kuohai <redacted>
Acked-by: Leon Hwang <redacted>
---
[...]

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help