Thread View: linux.kernel.netdev
1 messages
1 total messages
Started by patchwork-bot+netdevbpf
Mon, 09 Nov 2026 23:20
Re: [PATCH] ipv4: keep XFRM headers out of corked skb lengths
Author: patchwork-bot+netdevbpf
Date: Mon, 09 Nov 2026 23:20
Date: Mon, 09 Nov 2026 23:20
29 lines
8866 bytes
8866 bytes
Hello:
This patch was applied to netdev/net.git (main)
by Jakub Kicinski <kuba@kernel.org>:
On Thu, 29 Oct 2026 21:22:29 -0700 you wrote:
> __ip_append_data() allocates space for dst.header_len in the first skb,
> but includes that space in skb->len until __ip_make_skb() pulls it.
> Fragment accounting uses an MTU that already excludes the XFRM headers.
> As a result, the next skb can have a fraggap larger than its capped
> datalen, and skb_copy_and_csum_bits() can overwrite its shared info.
>
> For example, five AH tunnel states can reserve 500 bytes while leaving
> an effective MTU of 348. With 40 bytes of IPv4 options, the second skb
> has room for 288 bytes of fragment data but receives a 500-byte gap
> copy. The overwritten shared info is subsequently consumed by the skb
> release paths.
>
> [...]
Here is the summary with links:
- ipv4: keep XFRM headers out of corked skb lengths
https://git.kernel.org/netdev/net/c/0f47fce51a98
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