Re: [PATCH net v2] rtnetlink: wait for RCU readers in rtnl_link_unregister()
From: patchwork-bot+netdevbpf
Date: Mon Oct 05 2026 - 18:30:22 EST
Hello:
This patch was applied to netdev/net-next.git (main)
by Jakub Kicinski <kuba@xxxxxxxxxx>:
On Thu, 1 Oct 2026 16:30:39 +0200 you wrote:
> rtnl_link_ops_get() finds ops on link_ops under rcu_read_lock() and only
> then takes ops->srcu. rtnl_link_unregister() unlinks ops, then calls
> synchronize_srcu() and cleanup_srcu_struct() without first waiting for
> RCU readers. A reader that found ops before list_del_rcu() and has not yet
> taken ops->srcu is not waited for.
>
> Such a reader then locks a cleaned-up srcu_struct and keeps using ops
> after the module that owns it is gone. rtnl_newlink() and
> rtnl_dump_ifinfo() both look up ops without RTNL, the latter for any
> user that dumps links filtered by kind.
>
> [...]
Here is the summary with links:
- [net,v2] rtnetlink: wait for RCU readers in rtnl_link_unregister()
https://git.kernel.org/netdev/net-next/c/3b70edea393d
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html