All of lore.kernel.org
 help / color / mirror / Atom feed
From: Stanislav Fomichev <sdf.kernel@gmail.com>
To: Julius Bairaktaris <julius@bairaktaris.de>
Cc: netdev@vger.kernel.org, davem@davemloft.net, edumazet@kernel.org,
	 kuba@kernel.org, pabeni@redhat.com, horms@kernel.org,
	willemb@google.com,  willemdebruijn.kernel@gmail.com,
	ncardwell@google.com, kuniyu@google.com,
	 alice.kernel@fastmail.im, wang.zhan@smartx.com,
	marcelo.leitner@gmail.com,  lucien.xin@gmail.com,
	linux-sctp@vger.kernel.org, dsahern@kernel.org,
	 steffen.klassert@secunet.com, nbd@nbd.name
Subject: Re: [PATCH net 0/3] net: gso: segment length of encapsulated GSO packets
Date: Sat, 28 Nov 2026 18:32:07 -0800	[thread overview]
Message-ID: <awuOY-_d7MECkOTk@devvm16445.scu0.facebook.com> (raw)
In-Reply-To: <cover.1795884313.git.julius@bairaktaris.de>

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

  parent reply	other threads:[~2026-11-29  2:32 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-28 16:47 [PATCH net 0/3] net: gso: segment length of encapsulated GSO packets Julius Bairaktaris
2026-11-28 16:47 ` [PATCH net 1/3] net: gro: set the inner transport header of encapsulated fraglist packets Julius Bairaktaris
2026-11-28 16:47 ` [PATCH net 2/3] net: gso: count the inner UDP header of encapsulated UDP GSO packets Julius Bairaktaris
2026-11-28 16:47 ` [PATCH net 3/3] net: gso: count the SCTP header of encapsulated SCTP " Julius Bairaktaris
2026-11-29  2:32 ` Stanislav Fomichev [this message]
2026-11-29 11:29   ` [PATCH net 0/3] net: gso: segment length of encapsulated " Julius Bairaktaris
2026-11-29 18:25     ` Stanislav Fomichev
2026-11-29 21:23       ` Julius Bairaktaris

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=awuOY-_d7MECkOTk@devvm16445.scu0.facebook.com \
    --to=sdf.kernel@gmail.com \
    --cc=alice.kernel@fastmail.im \
    --cc=davem@davemloft.net \
    --cc=dsahern@kernel.org \
    --cc=edumazet@kernel.org \
    --cc=horms@kernel.org \
    --cc=julius@bairaktaris.de \
    --cc=kuba@kernel.org \
    --cc=kuniyu@google.com \
    --cc=linux-sctp@vger.kernel.org \
    --cc=lucien.xin@gmail.com \
    --cc=marcelo.leitner@gmail.com \
    --cc=nbd@nbd.name \
    --cc=ncardwell@google.com \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.com \
    --cc=steffen.klassert@secunet.com \
    --cc=wang.zhan@smartx.com \
    --cc=willemb@google.com \
    --cc=willemdebruijn.kernel@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.