mirror of https://gitee.com/openkylin/linux.git
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 in339bbff2d6
. 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>
This commit is contained in:
parent
3715917408
commit
7fa4bd739f
|
@ -14194,7 +14194,8 @@ static struct bpf_test tests[] = {
|
||||||
},
|
},
|
||||||
.prog_type = BPF_PROG_TYPE_SOCKET_FILTER,
|
.prog_type = BPF_PROG_TYPE_SOCKET_FILTER,
|
||||||
.errstr_unpriv = "function calls to other bpf functions are allowed for root only",
|
.errstr_unpriv = "function calls to other bpf functions are allowed for root only",
|
||||||
.result = REJECT,
|
.errstr = "!read_ok",
|
||||||
|
.result = REJECT,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"jset: functional",
|
"jset: functional",
|
||||||
|
|
Loading…
Reference in New Issue