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

From: patchwork-bot+netdevbpf

Date: Thu Aug 06 2026 - 12:58:33 EST


Hello:

This patch was applied to netdev/net.git (main)
by Jakub Kicinski <kuba@xxxxxxxxxx>:

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