1
0
Fork 0

bpf: fix segfault in test_verifier selftest

Minor fallout from merge resolution, test_verifier was segfaulting
because the REJECT result was correct, but errstr was NULL. Properly
fix it as in 339bbff2d6.

Fixes: 339bbff2d6 ("Merge git://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next")
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
hifive-unleashed-5.1
Daniel Borkmann 2018-12-21 14:04:46 +01:00 committed by David S. Miller
parent 3715917408
commit 7fa4bd739f
1 changed files with 2 additions and 1 deletions

View File

@ -14194,7 +14194,8 @@ static struct bpf_test tests[] = {
},
.prog_type = BPF_PROG_TYPE_SOCKET_FILTER,
.errstr_unpriv = "function calls to other bpf functions are allowed for root only",
.result = REJECT,
.errstr = "!read_ok",
.result = REJECT,
},
{
"jset: functional",