Re: [PATCH net] net: pktgen: hold if_lock across pktgen_find_dev() in __pktgen_NN_threads()
From: patchwork-bot+netdevbpf
Date: Fri Dec 04 2026 - 09:40:15 EST
Hello:
This patch was applied to netdev/net-next.git (main)
by Paolo Abeni <pabeni@xxxxxxxxxx>:
On Thu, 26 Nov 2026 17:04:45 +0800 you wrote:
> In __pktgen_NN_threads(), pktgen_find_dev() looks up a pktgen_dev on
> t->if_list under rcu_read_lock(), drops rcu_read_unlock(), and returns
> the raw pkt_dev pointer without holding t->if_lock. When called from
> pktgen_mark_device() on NETDEV_UNREGISTER, __pktgen_NN_threads() holds
> pktgen_thread_lock and writes pkt_dev->removal_mark = 1 outside both
> RCU and t->if_lock.
>
> [...]
Here is the summary with links:
- [net] net: pktgen: hold if_lock across pktgen_find_dev() in __pktgen_NN_threads()
https://git.kernel.org/netdev/net-next/c/d5cf954cebe4
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html