Thread (4 messages) 4 messages, 2 authors, 2026-02-28

Re: [PATCH bpf v4 0/2] bpf: cpumap/devmap: fix per-CPU bulk queue races on PREEMPT_RT

From: patchwork-bot+netdevbpf@kernel.org
Date: 2026-02-28 00:20:06
Also in: bpf, linux-rt-devel, lkml

Hello:

This series was applied to bpf/bpf.git (master)
by Alexei Starovoitov [off-list ref]:

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

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help