summaryrefslogtreecommitdiff
path: root/include/linux/xarray.h
diff options
context:
space:
mode:
authorYonghong Song <yonghong.song@linux.dev>2026-05-13 07:51:48 +0300
committerAlexei Starovoitov <ast@kernel.org>2026-05-13 19:27:32 +0300
commit6e277efbb19dd1a536cbffd9ea5c049a427dc7cb (patch)
treef648ac03df19d457d855b115a2ddd5a627fdb73c /include/linux/xarray.h
parent00c3ac4292a6bc3039008cdb45bd423087acb98e (diff)
downloadlinux-6e277efbb19dd1a536cbffd9ea5c049a427dc7cb.tar.xz
selftests/bpf: Add precision backtracking test for stack arguments
Add a test that verifies precision backtracking works correctly across BPF-to-BPF calls when stack arguments are involved. The test passes a size value as incoming stack arg (arg6) to a subprog, which forwards it as the mem__sz parameter (outgoing arg7) to bpf_kfunc_call_stack_arg_mem. The expected __msg annotations verify that precision propagates from the kfunc's mem__sz argument back through the subprog frame to the caller's outgoing stack arg store. A companion BTF file (btf__stack_arg_precision.c) provides named parameter BTF for the __naked subprog via __btf_func_path. Signed-off-by: Yonghong Song <yonghong.song@linux.dev> Link: https://lore.kernel.org/r/20260513045148.2400087-1-yonghong.song@linux.dev Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'include/linux/xarray.h')
0 files changed, 0 insertions, 0 deletions