summaryrefslogtreecommitdiff
path: root/rust/kernel/ptr/git@git.tavy.me:linux.git
diff options
context:
space:
mode:
authorAlexei Starovoitov <ast@kernel.org>2026-04-10 13:56:05 -0700
committerAlexei Starovoitov <ast@kernel.org>2026-04-10 15:13:38 -0700
commit2cb27158adb38f1a78729e99f7469199d71c714a (patch)
treec5802af061e4ae3e25cb25ebb3ccd53039b3dffa /rust/kernel/ptr/git@git.tavy.me:linux.git
parent27417e5eb9cd4151320866e0b2cca0c612f1cdf7 (diff)
bpf: poison dead stack slots
As a sanity check poison stack slots that stack liveness determined to be dead, so that any read from such slots will cause program rejection. If stack liveness logic is incorrect the poison can cause valid program to be rejected, but it also will prevent unsafe program to be accepted. Allow global subprogs "read" poisoned stack slots. The static stack liveness determined that subprog doesn't read certain stack slots, but sizeof(arg_type) based global subprog validation isn't accurate enough to know which slots will actually be read by the callee, so it needs to check full sizeof(arg_type) at the caller. Signed-off-by: Eduard Zingerman <eddyz87@gmail.com> Link: https://lore.kernel.org/r/20260410-patch-set-v4-14-5d4eecb343db@gmail.com Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'rust/kernel/ptr/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions