diff options
| author | 2026-10-27 19:03:07 +0000 | |
|---|---|---|
| committer | 2026-10-28 04:07:03 +0000 | |
| commit | 1b4ed112beb82a6adcd48a46fa8910c7184070e3 (patch) | |
| tree | aa5686061b6f1548cb3ddee87e12a0708fe6b7b4 /scripts/Makefile.thinlto | |
| parent | bpf: Don't widen a pointer to a buffer in scalar evolution (diff) | |
selftests/bpf: Test a loop that moves a pointer to a buffer
ptr_buf moves one pointer to a buffer until it gets to a second pointer. It
never reads through the pointer. It loads only if scalar evolution widens
the pointer, and that is no longer the case.
Change it to the loop that real progs have, for example
bpf_iter_bpf_percpu_array_map.c. It counts in a register and reads through
the pointer in each iteration. Without
"bpf: Don't widen a pointer to a buffer in scalar evolution" the verifier
rejects it with "invalid variable buffer offset".
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://patch.msgid.link/20261027190314.1440199-13-alexei.starovoitov@gmail.com
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
