All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH bpf-next 0/2] selftests/bpf: Fix flaky verifier_arena_large/big_alloc3
@ 2026-11-24 17:08 Mykyta Yatsenko
  2026-11-24 17:08 ` [PATCH bpf-next 1/2] selftests/bpf: Let __skip() report SKIP for a return value Mykyta Yatsenko
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Mykyta Yatsenko @ 2026-11-24 17:08 UTC (permalink / raw)
  To: bpf, ast, andrii, daniel, kernel-team, eddyz87, ihor.solodrai
  Cc: Mykyta Yatsenko

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.

Signed-off-by: Mykyta Yatsenko <yatsenko@meta.com>
---
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,
--  
Mykyta Yatsenko <yatsenko@meta.com>


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2026-12-03  5:00 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-24 17:08 [PATCH bpf-next 0/2] selftests/bpf: Fix flaky verifier_arena_large/big_alloc3 Mykyta Yatsenko
2026-11-24 17:08 ` [PATCH bpf-next 1/2] selftests/bpf: Let __skip() report SKIP for a return value Mykyta Yatsenko
2026-11-24 17:08 ` [PATCH bpf-next 2/2] selftests/bpf: Fix flaky verifier_arena_large/big_alloc3 Mykyta Yatsenko
2026-12-03  5:00 ` [PATCH bpf-next 0/2] " patchwork-bot+netdevbpf

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.