]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
bpf: Add precision marking and backtracking for stack argument slots
authorYonghong Song <yonghong.song@linux.dev>
Wed, 13 May 2026 04:50:25 +0000 (21:50 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Wed, 13 May 2026 16:27:30 +0000 (09:27 -0700)
commit0a0fdc64b68c28dab40f9deb0cffdf544e04b0ba
treeee1d246da3c5c2f1be5bfbfff3ee9f3bec961e58
parent3a656670fd6da624f6241038ca4cf350f24fd5e8
bpf: Add precision marking and backtracking for stack argument slots

Extend the precision marking and backtracking infrastructure to
support stack argument slots (r11-based accesses). Without this,
precision demands for scalar values passed through stack arguments
are silently dropped, which could allow the verifier to incorrectly
prune states with different constant values in stack arg slots.

Signed-off-by: Yonghong Song <yonghong.song@linux.dev>
Link: https://lore.kernel.org/r/20260513045025.2387526-1-yonghong.song@linux.dev
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
include/linux/bpf_verifier.h
kernel/bpf/backtrack.c
kernel/bpf/verifier.c