]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
bpf: Allow bpf_for/bpf_repeat calls while holding a spinlock
authorEmil Tsalapatis <emil@etsalapatis.com>
Sat, 4 Jan 2025 20:25:27 +0000 (15:25 -0500)
committerAlexei Starovoitov <ast@kernel.org>
Mon, 6 Jan 2025 18:59:49 +0000 (10:59 -0800)
commit512816403ece6cbb67de3af359643384111a9647
treedfa79743b38112ebd8ed921fc0bf863a03fe8c52
parent2532608530eab68207e384053fae7db7f35256ee
bpf: Allow bpf_for/bpf_repeat calls while holding a spinlock

Add the bpf_iter_num_* kfuncs called by bpf_for in special_kfunc_list,
 and allow the calls even while holding a spin lock.

Signed-off-by: Emil Tsalapatis (Meta) <emil@etsalapatis.com>
Reviewed-by: Eduard Zingerman <eddyz87@gmail.com>
Link: https://lore.kernel.org/r/20250104202528.882482-2-emil@etsalapatis.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
kernel/bpf/verifier.c