Re: [PATCH net] xsk: reject TX checksum requests that overflow skb->csum_start
From: patchwork-bot+netdevbpf
Date: Thu Nov 19 2026 - 18:00:17 EST
Hello:
This patch was applied to netdev/net.git (main)
by Jakub Kicinski <kuba@xxxxxxxxxx>:
On Mon, 16 Nov 2026 16:28:34 +0000 you wrote:
> xsk_skb_metadata() sets the u16 skb->csum_start to hr + csum_start. With
> 64K pages, csum_start can be close to U16_MAX, so the sum can overflow.
> The checksum offset then becomes negative. With XDP_UMEM_TX_SW_CSUM,
> skb_checksum_help() triggers a warning. Without it, the device gets a
> CHECKSUM_PARTIAL skb with a negative offset.
>
> Reject this with -EINVAL. Use the limit of skb_partial_csum_set(), which
> also rejects U16_MAX, the "not set" value of transport_header. That
> helper cannot be used here, as the skb built for an IFF_TX_SKB_NO_LINEAR
> device has no linear data.
>
> [...]
Here is the summary with links:
- [net] xsk: reject TX checksum requests that overflow skb->csum_start
https://git.kernel.org/netdev/net/c/4fdfed6d0990
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html