Re: [PATCH net] net: atl1c: cancel the common_task work in atl1c_remove()
From: patchwork-bot+netdevbpf
Date: Thu Dec 03 2026 - 06:00:15 EST
Hello:
This patch was applied to netdev/net-next.git (main)
by Paolo Abeni <pabeni@xxxxxxxxxx>:
On Wed, 25 Nov 2026 12:31:41 +0100 you wrote:
> atl1c_remove() frees everything the common_task work item needs - the
> register window, the netdev and with it the adapter - without ever
> cancelling the work. A link-change interrupt can queue it right up
> until unregister_netdev() runs atl1c_close(), and even the
> cancel_work_sync() there is not the last word: it runs before
> atl1c_down() frees the IRQ, so an interrupt in between queues the work
> again. Nothing then prevents the queued work from running after
> iounmap() and free_netdev(): atl1c_common_task() dereferences the freed
> netdev and reaches the unmapped register window through the link
> handler and atl1c_irq_enable().
>
> [...]
Here is the summary with links:
- [net] net: atl1c: cancel the common_task work in atl1c_remove()
https://git.kernel.org/netdev/net-next/c/3b4d7f44a61b
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html