]> Gentwo Git Trees - linux/.git/commit
bpf: Remove preempt_disable in bpf_try_get_buffers
authorTao Chen <chen.dylane@linux.dev>
Tue, 19 Aug 2025 12:56:38 +0000 (20:56 +0800)
committerAndrii Nakryiko <andrii@kernel.org>
Fri, 22 Aug 2025 18:44:09 +0000 (11:44 -0700)
commit4223bf833c8495e40ae2886acbc0ecbe88fa6306
tree3d743837bdbb12100da12e0be14165fc449cc226
parentd47cc4dea17391c99b943fa8d70a279e906b2843
bpf: Remove preempt_disable in bpf_try_get_buffers

Now BPF program will run with migration disabled, so it is safe
to access this_cpu_inc_return(bpf_bprintf_nest_level).

Fixes: d9c9e4db186a ("bpf: Factorize bpf_trace_printk and bpf_seq_printf")
Signed-off-by: Tao Chen <chen.dylane@linux.dev>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20250819125638.2544715-1-chen.dylane@linux.dev
kernel/bpf/helpers.c