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)
commitb33eb735836224e55cd8182aff9bbb7ddc17f38b
treec29881120083e22acbc01c27966d735a32af8a40
parentfe8d662aef26394388bfcd3b96ce123b6d33044b
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