]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
bpf: Allow calls to arena functions while holding spinlocks
authorEmil Tsalapatis <emil@etsalapatis.com>
Tue, 6 Jan 2026 23:36:44 +0000 (18:36 -0500)
committerAlexei Starovoitov <ast@kernel.org>
Wed, 7 Jan 2026 01:44:00 +0000 (17:44 -0800)
commit39f77533b6c16e7fbd72e2560e13c9435d2602f5
treed3abb9a371fbe09fa6802c5ce37b7a2856f43c8a
parentb25b48c7d37617601ebc8cf2633bee95aa82c697
bpf: Allow calls to arena functions while holding spinlocks

The bpf_arena_*_pages() kfuncs can be called from sleepable contexts,
but the verifier still prevents BPF programs from calling them while
holding a spinlock. Amend the verifier to allow for BPF programs
calling arena page management functions while holding a lock.

Signed-off-by: Emil Tsalapatis <emil@etsalapatis.com>
Link: https://lore.kernel.org/r/20260106-arena-under-lock-v2-2-378e9eab3066@etsalapatis.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
kernel/bpf/verifier.c