diff options
| author | 2026-10-27 19:03:10 +0000 | |
|---|---|---|
| committer | 2026-10-28 04:07:03 +0000 | |
| commit | ed50365314826f1fcbed81e202ce475892ac5627 (patch) | |
| tree | 11f16a02be072c3a45f923ffd0f918693ab09ab9 /scripts/Makefile.thinlto | |
| parent | bpf: Reset the range of a packet pointer that scalar evolution clamps (diff) | |
selftests/bpf: Test the clamp of pointers in scalar evolution
test the loop result
-------------------------------------- ------------------------- ------
clamp_released_pointer releases ringbuf memory reject
clamp_invalidated_pkt_pointer calls bpf_skb_pull_data() reject
clamp_pkt_pointer_keeps_no_range compares with pkt_end reject
clamp_pkt_pointer_keeps_range_of_entry has no compare loads
In the first three tests a flag in a 32-bit spill separates the first
iteration from the second one. Scalar evolution does not widen the flag.
Thus the verifier does not prune the state that returns to the head of the
loop, and it verifies the second iteration with the clamped register.
Without the fixes the three progs load.
In the last test the compare with pkt_end is in front of the loop. Its
range must stay valid in the loop.
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://patch.msgid.link/20261027190314.1440199-16-alexei.starovoitov@gmail.com
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
