selftests/bpf: check if max number of bpf_loop iterations is tracked
authorEduard Zingerman <eddyz87@gmail.com>
Tue, 21 Nov 2023 02:07:01 +0000 (04:07 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 1 Feb 2024 00:19:00 +0000 (16:19 -0800)
commitc7890937cf3667c4853f1a948aed359708d4b2df
tree54435b8894a13d3c5df675c72a718acfd3c22baf
parentbfc5c19b4b48840627af0d0f1c8f4461b276e508
selftests/bpf: check if max number of bpf_loop iterations is tracked

commit 57e2a52deeb12ab84c15c6d0fb93638b5b94001b upstream.

Check that even if bpf_loop() callback simulation does not converge to
a specific state, verification could proceed via "brute force"
simulation of maximal number of callback calls.

Signed-off-by: Eduard Zingerman <eddyz87@gmail.com>
Link: https://lore.kernel.org/r/20231121020701.26440-12-eddyz87@gmail.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
tools/testing/selftests/bpf/progs/verifier_iterating_callbacks.c