selftests/bpf: Fix flaky verifier_arena_large/big_alloc3
Status from this message: This series was applied to bpf/bpf-next.git (master)
Get series with b4
b4 am [email protected] change-id 20261124-arena_big_alloc3-ddff2d311b40Versions newest first
Patches in v1 All 2 applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | selftests/bpf: Let __skip() report SKIP for a return valuetools/ tools/ | +39 | 0 replies | Applied |
| 2/2 | selftests/bpf: Fix flaky verifier_arena_large/big_alloc3tools/ tools/ | +10 | 0 replies | Applied |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH bpf-next 0/2] selftests/bpf: Fix flaky verifier_arena_large/big_alloc3
big_alloc3 allocates 1025 arena pages in a nonsleepable program. That allocation does not reclaim, so it can fail when memory is low. BPF CI sees this as a FAIL on aarch64. When the allocation fails, the test cannot do its check, so the correct result is SKIP, not OK or FAIL.
Patch 1 lets test_loader report SKIP at run time: __skip() with a __retval() right after it, like __success __retval(0). Patch 2 uses it in big_alloc3 and runs verifier_arena_large serially.
---
Mykyta Yatsenko (2):
selftests/bpf: Let __skip() report SKIP for a return value selftests/bpf: Fix flaky verifier_arena_large/big_alloc3
tools/testing/selftests/bpf/prog_tests/verifier.c | 3 +- tools/testing/selftests/bpf/progs/bpf_misc.h | 6 ++++ .../selftests/bpf/progs/verifier_arena_large.c | 9 +++++- tools/testing/selftests/bpf/test_loader.c | 35 ++++++++++++++++++++-- 4 files changed, 49 insertions(+), 4 deletions(-)
---
base-commit: 966e9d6e515bdd60f401b16eabc10eadca5f7885
change-id: 20261124-arena_big_alloc3-ddff2d311b40
Best regards,
Signature · 1 line
Mykyta Yatsenko <[email protected]>