Re: [PATCH net] netlink: Do not call the unbind callback with the table locked

From: patchwork-bot+netdevbpf

Date: Fri Nov 06 2026 - 16:03:00 EST


Hello:

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

On Mon, 2 Nov 2026 12:09:29 +0000 you wrote:
> When netlink_bind() fails to insert the socket, it calls
> netlink_undo_bind() with the table locked. genl_unbind() then takes
> cb_lock, while genl_unregister_family() and genl_register_family() take
> cb_lock for writing and then wait in netlink_table_grab() for the table
> users to go away:
>
> netlink_bind() genl_unregister_family()
> netlink_lock_table() down_write(&cb_lock)
> netlink_insert() fails
> netlink_undo_bind() netlink_table_grab()
> genl_unbind() waits for nl_table_users == 0
> down_read(&cb_lock)
>
> [...]

Here is the summary with links:
- [net] netlink: Do not call the unbind callback with the table locked
https://git.kernel.org/netdev/net/c/a36b9e205cb3

You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html