diff options
| author | Yonghong Song <yonghong.song@linux.dev> | 2026-05-16 01:50:45 +0300 |
|---|---|---|
| committer | Alexei Starovoitov <ast@kernel.org> | 2026-05-17 03:46:16 +0300 |
| commit | ef1b54e0db671a161887475ef70cd570cbb2a6ab (patch) | |
| tree | 2db628686a3943c2e7c555e08f2c750edcb30af2 /include/linux | |
| parent | 4286f5deee14b26a9f0447b566d4c7cb7e2e2702 (diff) | |
| download | linux-ef1b54e0db671a161887475ef70cd570cbb2a6ab.tar.xz | |
selftests/bpf: Add test for stack arg read without caller write
Add negative tests for the outgoing stack arg validation.
A static subprog with a 'long *' arg causes
btf_prepare_func_args() to fail after setting arg_cnt. The
validation ensures check_outgoing_stack_args() still runs.
Also update two existing tests (release_ref, stale_pkt_ptr) whose
expected error messages changed: invalidated stack arg slots are now
caught by check_outgoing_stack_args() at the call site instead of
at the callee's dereference.
Signed-off-by: Yonghong Song <yonghong.song@linux.dev>
Link: https://lore.kernel.org/r/20260515225045.822104-1-yonghong.song@linux.dev
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions
