Re: [PATCH bpf v4 0/2] bpf: cpumap/devmap: fix per-CPU bulk queue races on PREEMPT_RT
From: patchwork-bot+netdevbpf
Date: Fri Feb 27 2026 - 19:20:17 EST
Hello:
This series was applied to bpf/bpf.git (master)
by Alexei Starovoitov <ast@xxxxxxxxxx>:
On Wed, 25 Feb 2026 20:14:54 +0800 you wrote:
> On PREEMPT_RT kernels, local_bh_disable() only calls migrate_disable()
> (when PREEMPT_RT_NEEDS_BH_LOCK is not set) and does not disable
> preemption. This means CFS scheduling can preempt a task inside the
> per-CPU bulk queue (bq) operations in cpumap and devmap, allowing
> another task on the same CPU to concurrently access the same bq,
> leading to use-after-free, list corruption, and kernel panics.
>
> [...]
Here is the summary with links:
- [bpf,v4,1/2] bpf: cpumap: fix race in bq_flush_to_queue on PREEMPT_RT
https://git.kernel.org/bpf/bpf/c/869c63d5975d
- [bpf,v4,2/2] bpf: devmap: fix race in bq_xmit_all on PREEMPT_RT
https://git.kernel.org/bpf/bpf/c/1872e75375c4
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html