Re: [PATCH net] net: ibm: emac: mal: fix potential system hang in mal_remove()
From: patchwork-bot+netdevbpf
Date: Mon Jun 08 2026 - 20:46:06 EST
Hello:
This patch was applied to netdev/net-next.git (main)
by Jakub Kicinski <kuba@xxxxxxxxxx>:
On Wed, 3 Jun 2026 16:08:21 -0700 you wrote:
> napi_disable() is not idempotent and calling it on an already-disabled
> or unenabled NAPI context will cause the kernel to spin indefinitely
> waiting for the NAPI_STATE_SCHED bit to clear.
>
> In mal_remove(), napi_disable() is called unconditionally. If no MACs were
> registered, NAPI was never enabled. Also, if they were registered but
> subsequently unregistered, NAPI was already disabled in
> mal_unregister_commac(). In either case, calling napi_disable() causes
> the kernel to hang upon module removal.
>
> [...]
Here is the summary with links:
- [net] net: ibm: emac: mal: fix potential system hang in mal_remove()
https://git.kernel.org/netdev/net-next/c/7c5d41f87f07
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html