mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-16 10:17:32 +00:00
bpf, x86: Propagate tailcall info only for subprogs
In x64 JIT, propagate tailcall info only for subprogs, not for helpers or kfuncs. Acked-by: Yonghong Song <yonghong.song@linux.dev> Signed-off-by: Leon Hwang <leon.hwang@linux.dev> Link: https://lore.kernel.org/r/20241107134529.8602-2-leon.hwang@linux.dev Signed-off-by: Alexei Starovoitov <ast@kernel.org>
This commit is contained in:
parent
faadc69af1
commit
a1087da9d1
@ -2186,7 +2186,7 @@ populate_extable:
|
|||||||
u8 *ip = image + addrs[i - 1];
|
u8 *ip = image + addrs[i - 1];
|
||||||
|
|
||||||
func = (u8 *) __bpf_call_base + imm32;
|
func = (u8 *) __bpf_call_base + imm32;
|
||||||
if (tail_call_reachable) {
|
if (src_reg == BPF_PSEUDO_CALL && tail_call_reachable) {
|
||||||
LOAD_TAIL_CALL_CNT_PTR(stack_depth);
|
LOAD_TAIL_CALL_CNT_PTR(stack_depth);
|
||||||
ip += 7;
|
ip += 7;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user