diff options
| author | Andrii Nakryiko <[email protected]> | 2023-12-02 17:57:00 +0000 |
|---|---|---|
| committer | Alexei Starovoitov <[email protected]> | 2023-12-02 19:36:50 +0000 |
| commit | c871d0e00f0e8c207ce8ff89025e35cc49a8a3c3 (patch) | |
| tree | c76f08bf825c02b74107045d7e012413ed565936 /tools/testing/selftests/bpf/progs/exceptions_assert.c | |
| parent | selftests/bpf: add selftest validating callback result is enforced (diff) | |
| download | kernel-c871d0e00f0e8c207ce8ff89025e35cc49a8a3c3.tar.gz kernel-c871d0e00f0e8c207ce8ff89025e35cc49a8a3c3.zip | |
bpf: enforce precise retval range on program exit
Similarly to subprog/callback logic, enforce return value of BPF program
using more precise smin/smax range.
We need to adjust a bunch of tests due to a changed format of an error
message.
Acked-by: Eduard Zingerman <[email protected]>
Acked-by: Shung-Hsi Yu <[email protected]>
Signed-off-by: Andrii Nakryiko <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Alexei Starovoitov <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/progs/exceptions_assert.c')
| -rw-r--r-- | tools/testing/selftests/bpf/progs/exceptions_assert.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/selftests/bpf/progs/exceptions_assert.c b/tools/testing/selftests/bpf/progs/exceptions_assert.c index 575e7dd719c4..0ef81040da59 100644 --- a/tools/testing/selftests/bpf/progs/exceptions_assert.c +++ b/tools/testing/selftests/bpf/progs/exceptions_assert.c @@ -125,7 +125,7 @@ int check_assert_generic(struct __sk_buff *ctx) } SEC("?fentry/bpf_check") -__failure __msg("At program exit the register R1 has value (0x40; 0x0)") +__failure __msg("At program exit the register R1 has smin=64 smax=64") int check_assert_with_return(void *ctx) { bpf_assert_with(!ctx, 64); |
