]> git.baikalelectronics.ru Git - kernel.git/commit
bpf: add tail call tests to test_verifier
authorDaniel Borkmann <daniel@iogearbox.net>
Mon, 26 Feb 2018 21:34:33 +0000 (22:34 +0100)
committerAlexei Starovoitov <ast@kernel.org>
Tue, 27 Feb 2018 04:11:23 +0000 (20:11 -0800)
commit6b7f727d3752f35724bb4e09a2b507fd7cc0ea86
treec29881120083e22acbc01c27966d735a32af8a40
parent3973be302846ab3eb913976156903460ec93c42d
bpf: add tail call tests to test_verifier

One of the downsides of the test_bpf module was that since being
in kernel space, it couldn't test-run tail calls. Now that the
test_verifier has the ability to perform run-time tests, populate
the prog array so we actually jump into other BPF programs and
can check all corner cases. Most useful in combination with JITs.

Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/test_verifier.c