Re: [PATCH net v2] net: Defer netdev KOBJ_ADD uevent until the device is published

[email protected]
Newsgroups gmane.linux.kernel,gmane.linux.network
Message-ID <178603502963.1375455.13217677789461225888.git-patchwork-notify@kernel.org>
Hello:

This patch was applied to netdev/net.git (main)
by Jakub Kicinski <[email protected]>:

On Thu, 6 Aug 2026 11:07:58 +0300 you wrote:
> netdev_register_kobject() calls device_add(), which emits KOBJ_ADD and
> wakes udev, but register_netdevice() only makes the device findable by
> name later, in list_netdevice().  A udev worker that reacts to the uevent
> can therefore run against a device that no lookup can find yet.
> 
> This used to be harmless because the ethtool ioctl took the rtnl_lock
> when looking the device up, and register_netdevice() runs under rtnl, so
> the worker simply blocked until registration finished. The commit in the
> fixes tag moved the lookup out from under rtnl for ops-locked drivers.
> Now there is a short window in register_netdevice() between
> netdev_register_kobject() until list_netdevice() when the device is not
> findable by name.
> 
> [...]

Here is the summary with links:
  - [net,v2] net: Defer netdev KOBJ_ADD uevent until the device is published
    https://git.kernel.org/netdev/net/c/8e63c9e6179a

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.