Re: [PATCH net-next] net: usb: ax88179_178a: fix skb leak in ax88179_tx_fixup()

[email protected] Tue, 04 Aug 2026 01:00:06 +0000
Newsgroups org.kernel.vger.linux-usb,org.kernel.vger.netdev,org.kernel.vger.stable
Message-ID <178580520614.2899965.8757939088248761753.git-patchwork-notify@kernel.org>
Hello:

This patch was applied to netdev/net.git (main)
by Jakub Kicinski <[email protected]>:

On Wed, 29 Jul 2026 11:04:36 +0800 you wrote:
> From: Yi Cong <[email protected]>
> 
> When the interface has NETIF_F_SG enabled and skb_linearize() fails in
> ax88179_tx_fixup(), the function returns NULL without freeing the skb.
> 
> usbnet_start_xmit() treats a NULL return from tx_fixup() as a drop
> (info->flags does not set FLAG_MULTI_PACKET for this driver), jumping
> to the "drop" label where it does `if (skb) dev_kfree_skb_any(skb)`.
> Because tx_fixup() returned NULL, the local skb variable in
> usbnet_start_xmit() is NULL, so the original skb is never freed — a
> memory leak on every TX frame whose linearization fails (i.e. under
> memory pressure).
> 
> [...]

Here is the summary with links:
  - [net-next] net: usb: ax88179_178a: fix skb leak in ax88179_tx_fixup()
    https://git.kernel.org/netdev/net/c/1f428e309473

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