diff options
| author | Haoran Jiang <[email protected]> | 2025-08-05 11:00:22 +0000 |
|---|---|---|
| committer | Huacai Chen <[email protected]> | 2025-08-05 11:00:22 +0000 |
| commit | c0fcc955ff827431b541b1aa6bcb82bdce4531f7 (patch) | |
| tree | e4d83f7d74d1b2922371cb6507b4e536ca64efc8 /drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c | |
| parent | LoongArch: BPF: Fix jump offset calculation in tailcall (diff) | |
| download | kernel-c0fcc955ff827431b541b1aa6bcb82bdce4531f7.tar.gz kernel-c0fcc955ff827431b541b1aa6bcb82bdce4531f7.zip | |
LoongArch: BPF: Fix the tailcall hierarchy
In specific use cases combining tailcalls and BPF-to-BPF calls,
MAX_TAIL_CALL_CNT won't work because of missing tail_call_cnt
back-propagation from callee to caller. This patch fixes this
tailcall issue caused by abusing the tailcall in bpf2bpf feature
on LoongArch like the way of "bpf, x64: Fix tailcall hierarchy".
Push tail_call_cnt_ptr and tail_call_cnt into the stack,
tail_call_cnt_ptr is passed between tailcall and bpf2bpf,
uses tail_call_cnt_ptr to increment tail_call_cnt.
Fixes: bb035ef0cc91 ("LoongArch: BPF: Support mixing bpf2bpf and tailcalls")
Reviewed-by: Geliang Tang <[email protected]>
Reviewed-by: Hengqi Chen <[email protected]>
Signed-off-by: Haoran Jiang <[email protected]>
Signed-off-by: Huacai Chen <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c')
0 files changed, 0 insertions, 0 deletions
