Thread (2 messages) flat view 2 messages, 2 authors, 2026-08-06

Re: [PATCH net] net: avoid theoretical races with ref drain

From: patchwork-bot+netdevbpf@kernel.org
Date: 2026-08-06 16:51:07

Hello:

This patch was applied to netdev/net.git (main)
by Jakub Kicinski [off-list ref]:

On Wed,  5 Aug 2026 19:28:21 -0700 you wrote:
Technically, it's illegal to take a ref on a netdev just because
we have a pointer on which we already hold a ref, with no other
protection. This is because our simple per-cpu refcount
implementation cannot atomically read the count.

Let's make sure we cancel outstanding work and never queue more
work for a device we know is dead. This way taking a ref on
a dev we know is on the netdev_work_list is always going to be safe.

[...]
Here is the summary with links:
  - [net] net: avoid theoretical races with ref drain
    https://git.kernel.org/netdev/net/c/d31c14e56a4f

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

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help