]> Gentwo Git Trees - linux/.git/commit
bpf: fix the usage of BPF_TRAMP_F_SKIP_FRAME
authorMenglong Dong <menglong8.dong@gmail.com>
Tue, 18 Nov 2025 12:36:31 +0000 (20:36 +0800)
committerAlexei Starovoitov <ast@kernel.org>
Mon, 24 Nov 2025 17:47:03 +0000 (09:47 -0800)
commit47c9214dcbea9043ac20441a285c7bb5486b8b2d
tree20e8294e857c141548d8613819b531ecd7563e4d
parent0c3772a8db1f697c22dd6caef1fe938fbb0e0a5b
bpf: fix the usage of BPF_TRAMP_F_SKIP_FRAME

Some places calculate the origin_call by checking if
BPF_TRAMP_F_SKIP_FRAME is set. However, it should use
BPF_TRAMP_F_ORIG_STACK for this propose. Just fix them.

Signed-off-by: Menglong Dong <dongml2@chinatelecom.cn>
Acked-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/r/20251118123639.688444-4-dongml2@chinatelecom.cn
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
arch/riscv/net/bpf_jit_comp64.c
arch/x86/net/bpf_jit_comp.c