diff options
| author | Andrii Nakryiko <[email protected]> | 2023-12-08 23:30:28 +0000 |
|---|---|---|
| committer | Alexei Starovoitov <[email protected]> | 2023-12-09 00:50:50 +0000 |
| commit | 1720c42b90c8f14ffcb2f2f39a1abafc82a5b22e (patch) | |
| tree | 95c5a7d05e387c553ca5c09fd35be2478baaee16 /tools/lib/bpf/linker.c | |
| parent | Merge branch 'bpf-fix-accesses-to-uninit-stack-slots' (diff) | |
| download | kernel-1720c42b90c8f14ffcb2f2f39a1abafc82a5b22e.tar.gz kernel-1720c42b90c8f14ffcb2f2f39a1abafc82a5b22e.zip | |
selftests/bpf: fix timer/test_bad_ret subtest on test_progs-cpuv4 flavor
Because test_bad_ret main program is not written in assembly, we don't
control instruction indices in timer_cb_ret_bad() subprog. This bites us
in timer/test_bad_ret subtest, where we see difference between cpuv4 and
other flavors.
For now, make __msg() expectations not rely on instruction indices by
anchoring them around bpf_get_prandom_u32 call. Once we have regex/glob
support for __msg(), this can be expressed a bit more nicely, but for
now just mitigating the problem with available means.
Fixes: e02dea158dda ("selftests/bpf: validate async callback return value check correctness")
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/lib/bpf/linker.c')
0 files changed, 0 insertions, 0 deletions
