Thread (2 messages) 2 messages, 2 authors, 2026-08-28

Re: [PATCH net] net: stmmac: fix dma mapping leak in stmmac_tso_xmit()

flat view

From: patchwork-bot+netdevbpf@kernel.org
Date: 2026-08-28 23:01:26
Also in: linux-arm-kernel

Hello:

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

On Wed, 26 Aug 2026 15:03:15 +0200 you wrote:
In stmmac_tso_xmit(), if the DMA mapping of an skb fragment fails, the
frame is dropped but the DMA mappings already created for the linear
part and for the fragments mapped before the failure are never
unmapped, leaking DMA mappings.

Fix the leak by walking back over the descriptors used by the frame and
releasing each of them with stmmac_free_tx_buffer(). Moreover, release
the descriptors with stmmac_release_tx_desc() unmapping the DMA buffers.

[...]
Here is the summary with links:
  - [net] net: stmmac: fix dma mapping leak in stmmac_tso_xmit()
    https://git.kernel.org/netdev/net/c/a5d946466a95

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