Skip to content

selftests/bpf: Fix flaky verifier_arena_large/big_alloc3

Mykyta Yatsenko bpf 1 version Applied

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-ddff2d311b40

Versions newest first

  1. v1 Latest2 patches 0 repliesApplied 2/2

Patches in v1 All 2 applied

#Subject and filesSizeRepliesApplied
1/2selftests/bpf: Let __skip() report SKIP for a return valuetools/testing/selftests/bpf/progs/bpf_misc.h tools/testing/selftests/bpf/test_loader.c+39 -20 repliesApplied
2/2selftests/bpf: Fix flaky verifier_arena_large/big_alloc3tools/testing/selftests/bpf/prog_tests/verifier.c tools/testing/selftests/bpf/progs/verifier_arena_large.c+10 -20 repliesApplied

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

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]>