🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: linux.kernel.netdev
2 messages
2 total messages Started by Stanislav Fomichev Sun, 29 Nov 2026 02:32
Re: [PATCH net 0/3] net: gso: segment length of encapsulated GSO packets
#24044
Author: Stanislav Fomichev
Date: Sun, 29 Nov 2026 02:32
70 lines
14336 bytes
On 11/28, Julius Bairaktaris wrote:
> skb_gso_transport_seglen() returns the length of one segment of a GSO
> packet, which the MTU checks of IPv4 and IPv6 forwarding and output
> compare with the MTU. For an encapsulated packet it counts from the
> inner transport header and adds the inner L4 header: fraglist GRO
> leaves the inner transport header unset for the inner flow of a tunnel,
> and the inner UDP and SCTP headers are not counted.
> 
> Patch 1 sets the inner transport header in the fraglist completion of
> TCP and UDP GRO, IPv4 and IPv6.
> Patch 2 counts the inner UDP header of encapsulated UDP GSO packets.
> Patch 3 counts the SCTP header of encapsulated SCTP GSO packets.
> 
> Per issue:
> - Trigger: patch 1, tunnel traffic from the network (VXLAN, FOU/GUE,
>   GRE, IPIP, SIT) forwarded by a host whose ingress has rx-gro-list on;
>   patch 2, UDP GSO packets in a UDP tunnel (UDP GRO behind a tunnel
>   socket, UDP_SEGMENT over VXLAN) forwarded or sent over a smaller MTU;
>   patch 3, SCTP over UDP (net.sctp.udp_port and encap_port set)
>   forwarded over a smaller MTU.
> - Impact: patch 1, the forwarded aggregates are dropped or their
>   segments checked against the MTU with a wrong length; patches 2 and
>   3, segments of up to 8 or 12 bytes over the MTU leave whole and are
>   lost further on. No memory safety issue. CVSS 3.1: 3.7
>   (AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L).
> - Until the fix lands: patch 1, ethtool -K <ingress> rx-gro-list off;
>   patches 2 and 3, nothing short of the fix.
> - Found: by Sashiko reviews of earlier versions of "ipmr: forward GSO
>   multicast packets".
> 
> Tested in QEMU (KVM) with network namespaces, on net (28a371228d4e):
> - VXLAN with an inner UDP or TCP flow over IPv4 or IPv6, outer UDP
>   checksum zero or set, rx-gro-list on the router, forwarded unicast
>   over a 1400-byte route, 1000 packets per case: net delivers 35 to 195
>   per case (2 runs of 12 cases); with this series all 1000 arrive with
>   valid outer and inner checksums, also with checksum offload on the
>   egress (5 runs, one with KASAN).
> - An SCTP association over UDP with a 1500-byte path MTU through a
>   router whose egress MTU is 1496 bytes: on net the router hands the
>   egress 20 (IPv4) and 28 (IPv6) GSO packets with segments of up to 1500
>   bytes (2 runs); with this series none (5 runs, one with KASAN).
> 
> Changes since "ipmr: forward GSO multicast packets" v6, whose patches 1
> and 3 are patches 1 and 2 here:
> - Split out of the ipmr series (Willem de Bruijn).
> - Patch 3 (new): count the SCTP header in the encapsulated branch of
>   skb_gso_transport_seglen() (Sashiko on v6 patch 3).
> - Patches 1 and 2: name the IPv6 users of the segment length in the
>   commit message.
> - Rebase onto net.
> - ipmr v6: https://lore.kernel.org/netdev/cover.1795295554.git.julius@bairaktaris.de/
> 
> I used Claude (Anthropic) to help write these patches.
> 
> Julius Bairaktaris (3):
>   net: gro: set the inner transport header of encapsulated fraglist
>     packets
>   net: gso: count the inner UDP header of encapsulated UDP GSO packets
>   net: gso: count the SCTP header of encapsulated SCTP GSO packets
> 

This seems to be making gre tests unhappy? Can you check?

https://netdev.bots.linux.dev/branch_deltas/net-next-2026-11-28--18-00.html

Or is it the ipmr series? Dropping from the PW for now..

---
pw-bot: cr
Re: [PATCH net 0/3] net: gso: segment length of encapsulated GSO packets
#24225
Author: Stanislav Fomichev
Date: Sun, 29 Nov 2026 18:25
25 lines
12086 bytes
On 11/29, Julius Bairaktaris wrote:
> On 11/28, Stanislav Fomichev wrote:
> > This seems to be making gre tests unhappy? Can you check?
> 
> It is "netfilter: ipv6: fix out-of-bounds write in fragment
> reassembly", which was in the same branch and left it in the same run.
> Its new check in ip6_frag_queue(),
> payload_len + sizeof(struct ipv6hdr) > skb->len, runs after
> ip6_protocol_deliver_rcu() has pulled the skb to the transport header,
> so it is true for every fragment and IPv6 reassembly fails. The case that
> fails in the six ip6gre_{flat,hier}* tests is "ping GRE IPv6, packet
> size 1800 after MTU change", whose ping is fragmented.
> 
> > Or is it the ipmr series? Dropping from the PW for now..
> 
> Neither. ipmr v7 stayed in net-next-2026-11-29--03-00, where every
> ip6gre test passes. In QEMU on net 28a371228d4e, ip6gre_flat.sh and
> ip6gre_hier.sh three times each, the case passes 6/6 with this series
> and ipmr v7 (Ip6ReasmFails 0), and fails 6/6 with the netfilter patch
> alone (Ip6ReasmOKs 0, Ip6ReasmFails 589).
> 
> Could the series go back to patchwork?

Ah, sorry, you'll have to repost as a v2.
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