selftest/bpf: Add a recursion test
authorAlexei Starovoitov <ast@kernel.org>
Wed, 10 Feb 2021 03:36:30 +0000 (19:36 -0800)
committerDaniel Borkmann <daniel@iogearbox.net>
Thu, 11 Feb 2021 15:19:16 +0000 (16:19 +0100)
commit406c557edc5bb903db9f6cdd543cfc282c663ad8
treeb6a5f23877e1086460cbc1a0c53f14762f5325b8
parentca06f55b90020cd97f4cc6d52db95436162e7dcf
selftest/bpf: Add a recursion test

Add recursive non-sleepable fentry program as a test.
All attach points where sleepable progs can execute are non recursive so far.
The recursion protection mechanism for sleepable cannot be activated yet.

Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20210210033634.62081-6-alexei.starovoitov@gmail.com
tools/testing/selftests/bpf/prog_tests/recursion.c [new file with mode: 0644]
tools/testing/selftests/bpf/progs/recursion.c [new file with mode: 0644]