🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: linux.kernel.netdev
1 messages
1 total messages Started by Fernando Fernandez Mancera Tue, 24 Nov 2026 10:06
Re: [PATCH ipsec v2] xfrm: iptfs: make room before copying a continuation in reassembly
#21685
Author: Fernando Fernandez Mancera
Date: Tue, 24 Nov 2026 10:06
34 lines
14491 bytes
On 11/22/26 2:09 PM, Andrii Tereshchenko wrote:
> When iptfs_reassem_cont() cannot share a continuation as page frags, it
> linearizes the in-progress skb and copies the data in with skb_put(),
> without checking the tailroom. An skb started by iptfs_pskb_add_frags()
> has little room after linearizing, so a larger continuation panics the
> kernel in softirq:
> 
>    skbuff: skb_over_panic: ... len:2884 put:1442 ... end:0x6c0 dev:eth1
>    kernel BUG at net/core/skbuff.c:215!
>    Call Trace:
>     <IRQ>
>     skb_put.cold+0x1f/0x1f
>     iptfs_reassem_cont+0x242/0x760
>     iptfs_input_ordered+0x382/0x3e0
>     iptfs_input+0x24d/0x630
>     xfrm_input+0x12a5/0x29f0
> 
> After linearizing, grow the head if the rest of the inner packet does
> not fit, and abandon the reassembly if that fails.
> 
> Made with an AI coding assistant, reviewed by the submitter.
> 
> Fixes: 5f2b6a909574 ("xfrm: iptfs: add skb-fragment sharing code")
> Fixes: 0b352f83cabf ("xfrm: iptfs: fix skb_put() panic on non-linear skb during reassembly")
> Reported-by: Piyus Kedia <piyus@iiitd.ac.in>
> Closes: https://lore.kernel.org/all/20261119142308.3272570-1-piyus@iiitd.ac.in/
> Link: https://lore.kernel.org/all/20260908224855.1591147-1-kuba@kernel.org/
> Cc: stable@vger.kernel.org
> Signed-off-by: Andrii Tereshchenko <opensource@andrii.net>

Reviewed-by: Fernando Fernandez Mancera <fmancera@suse.de>

Thanks!
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