summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorEduard Zingerman <eddyz87@gmail.com>2026-10-09 03:47:36 -0700
committerAlexei Starovoitov <ast@kernel.org>2026-10-09 20:29:13 +0000
commit366b4c68d83042a45574272eddff8a76c9c25164 (patch)
treebc8d79a1b64440566236c473ba107b3c39dc2822 /include/linux
parentf21dcf26986c9aafe2ec12f80c440da7394dfb21 (diff)
downloadlinux-next-366b4c68d83042a45574272eddff8a76c9c25164.tar.gz
linux-next-366b4c68d83042a45574272eddff8a76c9c25164.zip
bpf: Allow subrange relations for PTR_TO_STACK in regsafe()
regsafe() currently requires an exact match for PTR_TO_STACK registers. This prevents an explored state from pruning a current state whose variable-offset range is a subset of the explored range. This change allows a checkpoint containing a widened stack pointer to cover narrower offsets reached on subsequent loop iterations, for example [-56, -8] within [-64, -8]. Merge the PTR_TO_STACK case with PTR_TO_MEM and others, as the set of necessary checks is almost identical. The only difference is a map_uid check, which is not needed for PTR_TO_STACK. All locations that produce PTR_TO_STACK reset map_uid to zero. Signed-off-by: Eduard Zingerman <eddyz87@gmail.com> Signed-off-by: Alexei Starovoitov <ast@kernel.org> Link: https://patch.msgid.link/20261009-scev-minimal-rebase-v3-18-bcba9bc53ac9@gmail.com
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions