Re: [PATCH net] net: sgi: ioc3-eth: unregister netdev before freeing DMA rings

From: patchwork-bot+netdevbpf

Date: Tue Jun 30 2026 - 20:23:11 EST


Hello:

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

On Mon, 29 Jun 2026 16:50:53 +0800 you wrote:
> From: Xu Rao <raoxu@xxxxxxxxxxxxx>
>
> ioc3eth_remove() frees the coherent RX and TX descriptor rings before
> unregistering the netdev. If the interface is running,
> unregister_netdev() invokes ioc3_close() through ndo_stop.
>
> ioc3_close() stops the device and then calls ioc3_free_rx_bufs() and
> ioc3_clean_tx_ring(). Both cleanup functions access descriptors in the
> rings, so the current ordering causes CPU accesses to freed coherent
> memory. Until ioc3_stop() disables RX and TX DMA, the device may also
> continue using the freed ring addresses.
>
> [...]

Here is the summary with links:
- [net] net: sgi: ioc3-eth: unregister netdev before freeing DMA rings
https://git.kernel.org/netdev/net-next/c/18a28f3e107e

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