selftests/bpf: tests with delayed read/precision makrs in loop body
authorEduard Zingerman <eddyz87@gmail.com>
Tue, 24 Oct 2023 00:09:14 +0000 (03:09 +0300)
committerAlexei Starovoitov <ast@kernel.org>
Tue, 24 Oct 2023 04:49:31 +0000 (21:49 -0700)
commit389ede06c2974b2f878a7ebff6b0f4f707f9db74
tree4c5c43fff63b6efb7702fae5cd86aba8a1034cfa
parent2793a8b015f7f1caadb9bce9c63dc659f7522676
selftests/bpf: tests with delayed read/precision makrs in loop body

These test cases try to hide read and precision marks from loop
convergence logic: marks would only be assigned on subsequent loop
iterations or after exploring states pushed to env->head stack first.
Without verifier fix to use exact states comparison logic for
iterators convergence these tests (except 'triple_continue') would be
errorneously marked as safe.

Signed-off-by: Eduard Zingerman <eddyz87@gmail.com>
Link: https://lore.kernel.org/r/20231024000917.12153-5-eddyz87@gmail.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/progs/iters.c