Re: [PATCH 1/2] bpf: Add bpf_has_frame_pointer()

From: Song Liu
Date: Tue Dec 02 2025 - 13:53:36 EST


On Tue, Dec 2, 2025 at 10:20 AM Josh Poimboeuf <jpoimboe@xxxxxxxxxx> wrote:
>
> Introduce a bpf_has_frame_pointer() helper that uwninders 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.
>
> Signed-off-by: Josh Poimboeuf <jpoimboe@xxxxxxxxxx>

LGTM!

Acked-by: Song Liu <song@xxxxxxxxxx>