Thread View: linux.kernel.netdev
1 messages
1 total messages
Started by patchwork-bot+netdevbpf
Sun, 29 Nov 2026 18:00
Re: [PATCH net v2] net: marvell: prestera: Fix skb leak on error in prestera_rxtx_xmit()
Author: patchwork-bot+netdevbpf
Date: Sun, 29 Nov 2026 18:00
Date: Sun, 29 Nov 2026 18:00
26 lines
8816 bytes
8816 bytes
Hello:
This patch was applied to netdev/net.git (main)
by Willem de Bruijn <willemb@google.com>:
On Sat, 21 Nov 2026 20:53:05 -0800 you wrote:
> prestera_rxtx_xmit() is invoked directly from prestera_port_xmit(), the
> driver's .ndo_start_xmit() callback, whose return type is netdev_tx_t.
> When skb_cow_head() or prestera_dsa_build() fails, prestera_rxtx_xmit()
> returns NET_XMIT_DROP (0x01) without freeing skb.
>
> Because NET_XMIT_DROP (0x01) is less than NET_XMIT_MASK (0x0f),
> dev_xmit_complete() returns true and dev_hard_start_xmit() assumes the
> driver has already consumed or freed the skb, leaking the packet buffer.
>
> [...]
Here is the summary with links:
- [net,v2] net: marvell: prestera: Fix skb leak on error in prestera_rxtx_xmit()
https://git.kernel.org/netdev/net/c/ab65bae7b4d7
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads