linux/arch/x86/net
Josh Poimboeuf ca45c84afb bpf: Add bpf_has_frame_pointer()
Introduce a bpf_has_frame_pointer() helper that unwinders can call to
determine whether a given instruction pointer is within the valid frame
pointer region of a BPF JIT program or trampoline (i.e., after the
prologue, before the epilogue).

This will enable livepatch (with the ORC unwinder) to reliably unwind
through BPF JIT frames.

Acked-by: Song Liu <song@kernel.org>
Acked-and-tested-by: Andrey Grodzovsky <andrey.grodzovsky@crowdstrike.com>
Signed-off-by: Josh Poimboeuf <jpoimboe@kernel.org>
Link: https://lore.kernel.org/r/fd2bc5b4e261a680774b28f6100509fd5ebad2f0.1764818927.git.jpoimboe@kernel.org
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Reviewed-by: Jiri Olsa <jolsa@kernel.org>
History 2025-12-09 23:29:42 -08:00
..
bpf_jit_comp.c bpf: Add bpf_has_frame_pointer() 2025-12-09 23:29:42 -08:00
bpf_jit_comp32.c bpf: Take return from set_memory_rox() into account with bpf_jit_binary_lock_ro() 2024-03-14 19:28:52 -07:00
bpf_timed_may_goto.S bpf, x86: Fix objtool warning for timed may_goto 2025-03-15 15:55:14 -07:00
Makefile bpf, x86: Add x86 JIT support for timed may_goto 2025-03-15 11:48:28 -07:00