summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorPuranjay Mohan <puranjay@kernel.org>2025-12-22 22:50:19 +0300
committerAlexei Starovoitov <ast@kernel.org>2025-12-23 22:30:00 +0300
commitefecc9e825f4aa3fe616236152604a066a3e776d (patch)
tree8cd00595092219b41495ed300923593d4a651cff /include/linux
parentb8467290edab4bafae352bf3f317055669a1a458 (diff)
downloadlinux-efecc9e825f4aa3fe616236152604a066a3e776d.tar.xz
selftests: bpf: test non-sleepable arena allocations
As arena kfuncs can now be called from non-sleepable contexts, test this by adding non-sleepable copies of tests in verifier_arena, this is done by using a socket program instead of syscall. Add a new test case in verifier_arena_large to check that the bpf_arena_alloc_pages() works for more than 1024 pages. 1024 * sizeof(struct page *) is the upper limit of kmalloc_nolock() but bpf_arena_alloc_pages() should still succeed because it re-uses this array in a loop. Augment the arena_list selftest to also run in non-sleepable context by taking rcu_read_lock. Signed-off-by: Puranjay Mohan <puranjay@kernel.org> Link: https://lore.kernel.org/r/20251222195022.431211-5-puranjay@kernel.org Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions