summaryrefslogtreecommitdiff
path: root/tools/include
diff options
context:
space:
mode:
authorWoojin Ji <random6.xyz@gmail.com>2026-06-25 19:25:38 +0900
committerAlexei Starovoitov <ast@kernel.org>2026-06-25 17:55:37 -0700
commite693da913d2cdd69c1612fbf71bdf2b6771f6dba (patch)
tree09c25af1b721d7b7c77bf792db571d3fb980b170 /tools/include
parent69fdbe63e16919a885a8f9441e248ce0ddf15b25 (diff)
selftests/bpf: Cover stack reads from zero spills
Add verifier_var_off coverage for variable-offset stack reads from spilled scalar constant zero values. Cover single-slot and cross-slot spilled zero reads, a sub-8-byte spill with neighbouring STACK_ZERO bytes, and a sub-8-byte spill with neighbouring STACK_MISC bytes that must not be treated as zero. Add verifier_spill_fill coverage for a fixed-offset stack read spanning both STACK_ZERO bytes and scalar const-zero STACK_SPILL bytes. Use verifier log assertions to check both the zero result and the precision backtracking trail. Assisted-by: opencode:gpt-5.5 Signed-off-by: Woojin Ji <random6.xyz@gmail.com> Acked-by: Eduard Zingerman <eddyz87@gmail.com> Link: https://lore.kernel.org/r/20260625-bpf-stack-var-off-zero-v1-v3-2-a068210a761b@gmail.com Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'tools/include')
0 files changed, 0 insertions, 0 deletions