diff options
author | Andrei Matei <andreimatei1@gmail.com> | 2021-02-06 20:10:25 -0500 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2021-02-10 10:44:19 -0800 |
commit | a680cb3d8e3f4f84205720b90c926579d04eedb6 (patch) | |
tree | 188871999a147071d840bd74f261e59004e06888 /tools/testing/selftests/bpf/verifier/const_or.c | |
parent | bpf: Allow variable-offset stack access (diff) | |
download | linux-dev-a680cb3d8e3f4f84205720b90c926579d04eedb6.tar.xz linux-dev-a680cb3d8e3f4f84205720b90c926579d04eedb6.zip |
selftest/bpf: Adjust expected verifier errors
The verifier errors around stack accesses have changed slightly in the
previous commit (generally for the better).
Signed-off-by: Andrei Matei <andreimatei1@gmail.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20210207011027.676572-3-andreimatei1@gmail.com
Diffstat (limited to 'tools/testing/selftests/bpf/verifier/const_or.c')
-rw-r--r-- | tools/testing/selftests/bpf/verifier/const_or.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/testing/selftests/bpf/verifier/const_or.c b/tools/testing/selftests/bpf/verifier/const_or.c index 6c214c58e8d4..0719b0ddec04 100644 --- a/tools/testing/selftests/bpf/verifier/const_or.c +++ b/tools/testing/selftests/bpf/verifier/const_or.c @@ -23,7 +23,7 @@ BPF_EMIT_CALL(BPF_FUNC_probe_read_kernel), BPF_EXIT_INSN(), }, - .errstr = "invalid stack type R1 off=-48 access_size=58", + .errstr = "invalid indirect access to stack R1 off=-48 size=58", .result = REJECT, .prog_type = BPF_PROG_TYPE_TRACEPOINT, }, @@ -54,7 +54,7 @@ BPF_EMIT_CALL(BPF_FUNC_probe_read_kernel), BPF_EXIT_INSN(), }, - .errstr = "invalid stack type R1 off=-48 access_size=58", + .errstr = "invalid indirect access to stack R1 off=-48 size=58", .result = REJECT, .prog_type = BPF_PROG_TYPE_TRACEPOINT, }, |