selftests: bpf: fix verifier_arena_large: big_alloc3
Subsystems (3)
PATCH 1/1 selftests: bpf: fix verifier_arena_large: big_alloc3
The big_alloc3() test tries to allocate 2051 pages at once in non-sleepable context and this can fail sporadically on resource contrained systems, so skip this test in case of such failures.
Signed-off-by Puranjay Mohan <[email protected]>
--- tools/testing/selftests/bpf/progs/verifier_arena_large.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
tools/testing/selftests/bpf/progs/verifier_arena_large.c +1 -1
@@ -300,7 +300,7 @@ int big_alloc3(void *ctx)*/ pages =bpf_arena_alloc_pages (&arena,NULL ,2051 ,NUMA_NO_NODE ,0 );if (!pages) -return -1 ; +return 0 ;bpf_for (i,0 ,2051 ) pages[i * PAGE_SIZE] = 123;
base-commit: 600605853f87a4b1c3530a63f78a3541633402b0
Signature · 1 line
2.47.3
This patch was applied to bpf/bpf-next.git (master) by Alexei Starovoitov <[email protected]>:
Hello:
This patch was applied to bpf/bpf-next.git (master) by Alexei Starovoitov <[email protected]>:
Quoted 10 lines · On Tue, 30 Dec 2025 11:51:32 -0800 you wrote:
The
big_alloc3()test tries to allocate 2051 pages at once in non-sleepable context and this can fail sporadically on resource contrained systems, so skip this test in case of such failures.Signed-off-by Puranjay Mohan <[email protected]>--- tools/testing/selftests/bpf/progs/verifier_arena_large.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)[...]
Here is the summary with links:
- [bpf-next] selftests: bpf: fix verifier_arena_large: big_alloc3
https://git.kernel.org/bpf/bpf-next/c/317a5df78f24
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html