Re: [PATCH net v3] linkwatch: use __dev_put() in callers to prevent UAF
From: patchwork-bot+netdevbpf
Date: Mon Feb 02 2026 - 20:11:08 EST
Hello:
This patch was applied to netdev/net.git (main)
by Jakub Kicinski <kuba@xxxxxxxxxx>:
On Sun, 1 Feb 2026 21:59:10 +0800 you wrote:
> From: Jiayuan Chen <jiayuan.chen@xxxxxxxxxx>
>
> After linkwatch_do_dev() calls __dev_put() to release the linkwatch
> reference, the device refcount may drop to 1. At this point,
> netdev_run_todo() can proceed (since linkwatch_sync_dev() sees an
> empty list and returns without blocking), wait for the refcount to
> become 1 via netdev_wait_allrefs_any(), and then free the device
> via kobject_put().
>
> [...]
Here is the summary with links:
- [net,v3] linkwatch: use __dev_put() in callers to prevent UAF
https://git.kernel.org/netdev/net/c/83b67cc9be92
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html