On Wed, Nov 15, 2023 at 9:18 PM Eduard Zingerman <eddyz87@xxxxxxxxx> wrote: > > A set of test cases to check behavior of callback handling logic, > check if verifier catches the following situations: > - program not safe on second callback iteration; > - program not safe on zero callback iterations; > - infinite loop inside a callback. > > Verify that callback logic works for bpf_loop, bpf_for_each_map_elem, > bpf_user_ringbuf_drain, bpf_find_vma. > > Signed-off-by: Eduard Zingerman <eddyz87@xxxxxxxxx> > --- > .../selftests/bpf/prog_tests/verifier.c | 2 + > .../bpf/progs/verifier_iterating_callbacks.c | 147 ++++++++++++++++++ > 2 files changed, 149 insertions(+) > create mode 100644 tools/testing/selftests/bpf/progs/verifier_iterating_callbacks.c > Great! Acked-by: Andrii Nakryiko <andrii@xxxxxxxxxx> [...]