]> 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)
commit93cb2e989f1a27893ac54c880c16d67d28c50c63
treec29881120083e22acbc01c27966d735a32af8a40
parentc93dc429a0773087625f5827f6aa7977bfe6c1bf
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