OSDN Git Service

bpf: test make sure to run unpriv test cases in test_verifier
authorDaniel Borkmann <daniel@iogearbox.net>
Wed, 2 Jun 2021 03:27:46 +0000 (11:27 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 10 Jun 2021 11:24:07 +0000 (13:24 +0200)
commitac0985c8a2d8f829e7f6dfcdd543f32dd29747b7
tree6667e930a6c1bc641d5c898f235352c9cdaedf37
parent1b5c4b0669e0a63c9e5345c42ff6329a9001c207
bpf: test make sure to run unpriv test cases in test_verifier

commit 832c6f2c29ec519b766923937f4f93fb1008b47d upstream

Right now unprivileged tests are never executed as a BPF test run,
only loaded. Allow for running them as well so that we can check
the outcome and probe for regressions.

Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: Tiezhu Yang <yangtiezhu@loongson.cn>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
tools/testing/selftests/bpf/test_verifier.c