Re: [PATCH net] net: Avoid checksumming unreadable skb tail on trim

From: patchwork-bot+netdevbpf

Date: Tue May 26 2026 - 09:40:47 EST


Hello:

This patch was applied to netdev/net.git (main)
by Paolo Abeni <pabeni@xxxxxxxxxx>:

On Fri, 22 May 2026 14:06:40 +0200 you wrote:
> pskb_trim_rcsum_slow() keeps CHECKSUM_COMPLETE valid by subtracting
> the checksum of the bytes removed from the skb tail. That assumes the
> removed bytes can be read.
>
> io_uring zcrx skbs may contain unreadable net_iov frags. With fbnic
> header/data split, small TCP/IPv4 packets can carry Ethernet padding
> in such a frag. ip_rcv_core() trims the skb to iph->tot_len before TCP
> sees it, and the CHECKSUM_COMPLETE adjustment then calls
> skb_checksum() on the padding.
>
> [...]

Here is the summary with links:
- [net] net: Avoid checksumming unreadable skb tail on trim
https://git.kernel.org/netdev/net/c/2e357f002c61

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