[SRU Bionic 2/2] bpf, selftests: Adjust few selftest result_unpriv outcomes
Thadeu Lima de Souza Cascardo
cascardo at canonical.com
Thu Jun 24 00:19:33 UTC 2021
From: Daniel Borkmann <daniel at iogearbox.net>
BugLink: https://bugs.launchpad.net/bugs/1933385
Given we don't need to simulate the speculative domain for registers with
immediates anymore since the verifier uses direct imm-based rewrites instead
of having to mask, we can also lift a few cases that were previously rejected.
Signed-off-by: Daniel Borkmann <daniel at iogearbox.net>
Acked-by: Alexei Starovoitov <ast at kernel.org>
(backported from commit 1bad6fd52be4ce12d207e2820ceb0f29ab31fc53)
[cascardo: the verifier was split in multiple files, only applied the
ptr_stack one]
Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo at canonical.com>
---
tools/testing/selftests/bpf/test_verifier.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/tools/testing/selftests/bpf/test_verifier.c b/tools/testing/selftests/bpf/test_verifier.c
index 992b5498028d..288ce0e75e78 100644
--- a/tools/testing/selftests/bpf/test_verifier.c
+++ b/tools/testing/selftests/bpf/test_verifier.c
@@ -2534,8 +2534,6 @@ static struct bpf_test tests[] = {
BPF_LDX_MEM(BPF_B, BPF_REG_0, BPF_REG_1, 0),
BPF_EXIT_INSN(),
},
- .result_unpriv = REJECT,
- .errstr_unpriv = "invalid stack off=0 size=1",
.result = ACCEPT,
},
{
--
2.30.2
More information about the kernel-team
mailing list