]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit90dbf4a51b3bbe0ba4f31d9a40e675cdde675a37
treeb6a5f23877e1086460cbc1a0c53f14762f5325b8
parent37008115de954aa05ae0b1fd06529122394d67ed
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]