Re: [PATCH net v6] usbnet: fix smp_processor_id() use in preemptible context
From: patchwork-bot+netdevbpf
Date: Fri Oct 16 2026 - 11:58:07 EST
Hello:
This patch was applied to netdev/net-next.git (main)
by Jakub Kicinski <kuba@xxxxxxxxxx>:
On Mon, 5 Oct 2026 00:59:25 +0300 you wrote:
> tx_complete() calls this_cpu_ptr() before disabling preemption, which
> triggers a BUG when running with CONFIG_DEBUG_PREEMPT:
>
> BUG: using smp_processor_id() in preemptible code in tx_complete
>
> Fix by using get_cpu_ptr()/put_cpu_ptr() which disable preemption and
> return the per-CPU pointer atomically. The usbnet_skb_return() hunk
> is a hardening change: that path runs in softirq context so no warning
> fires there, but the same fix is applied for consistency.
>
> [...]
Here is the summary with links:
- [net,v6] usbnet: fix smp_processor_id() use in preemptible context
https://git.kernel.org/netdev/net-next/c/95a5c641fc7b
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html