Article View: linux.kernel.netdev
Article #24044Re: [PATCH net 0/3] net: gso: segment length of encapsulated GSO packets
From: Stanislav Fomichev
Date: Sun, 29 Nov 2026 02:32
Date: Sun, 29 Nov 2026 02:32
70 lines
14336 bytes
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
Technical Details
Message-ID:
<awuOY-_d7MECkOTk@devvm16445.scu0.facebook.com>Path:
mbox-mo1.pugleaf.net!news-lon.pugleaf.net!srl.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-373343-linux-kernel-netdev=dewy.ruReferences:
<cover.1795884313.git.julius@bairaktaris.de>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lon.pugleaf.net!srl.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-373343-linux-kernel-netdev=dewy.ru
From: sdf.kernel@gmail.com (Stanislav Fomichev)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net 0/3] net: gso: segment length of encapsulated GSO
packets
Date: Sat, 28 Nov 2026 18:32:07 -0800
Organization: Usenet Network
Message-ID: <awuOY-_d7MECkOTk@devvm16445.scu0.facebook.com>
References: <cover.1795884313.git.julius@bairaktaris.de>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Injection-Info: usenet.network;
logging-data="1084810"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:eNhI7Y4rRrLUzws1WjuZ7bxdNCE= sha256:T1NM1yUWANk7YWYsHzz/a+BGmVjpQAWAZXl4Zkthv+0=
sha1:pOwl3Yp9sPJOp8b7fG5LTvYsDYM= sha256:/KvNvIM1FLH08Py2Z3G+peKO4cXNLUPvtbnQvKgTDCI=
Content-Disposition: inline
List-ID: <netdev.vger.kernel.org>
X-Mailpost-Empty-Hdrs: X-Spam-Level
X-Received: from localhost (localhost [127.0.0.1])
by mail.dewy.ru (Postfix) with ESMTP id 35BAB125F91; Sun, 29 Nov 2026 05:32:35 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.148
X-Spam-Status: No, score=-3.148 tagged_above=-9999 required=6.31
tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,
FREEMAIL_FORGED_FROMDOMAIN=0.001, FREEMAIL_FROM=0.001,
HEADER_FROM_DIFFERENT_DOMAINS=0.249, MAILING_LIST_MULTI=-1,
RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001,
URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key)
header.d=gmail.com
X-Received: from mail.dewy.ru ([127.0.0.1])
by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024)
with ESMTP id B6vgLdVTpjsV;
Sun, 29 Nov 2026 05:32:31 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=netdev+bounces-373343-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN>
X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=gmail.com
X-Received: from tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114])
by mail.dewy.ru (Postfix) with ESMTPS id BDA4C125F90; Sun, 29 Nov 2026 05:32:20 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
by tor.lore.kernel.org (Postfix) with ESMTP id C41BA2731D; Sun, 29 Nov 2026 02:32:16 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass;
t=1795919534;
b=EssjnBDmbRbmGDtRu9Dk5FUI6yOFYUirY49YTxHxFfTm7F/ZyfW4wrqs8fRlj1AWErC4
ZStL+wgvXwEd/ChTaDha0PEqPgQiEgQoG7Aw++NMLsDbrwyK+zOOuD4grk2fZqVLYSs9D
7qMEhR+pKSHQTc9RKAmOrzh+I4q2UhkyQwiDuvZPixc1cURfmELfTHYxMjr9ubj1Za0E6
oxOZx1FqkNPf0EZddVw6QHfkWSXGkEQy1cHyJpDuT2TMRQ/h7e0Wd4XWtCLCOZeqykVKt
gWt0c093z+Q247zUKAS7r2lUmYL/HmzAp3efuTnOtfwXp/XY2knyE7cnGw6LNhfjovg==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1795919534;
h=X-Original-To:Received:DMARC-Filter:Received:DKIM-Signature:
X-Google-DKIM-Signature:X-Gm-Message-State:X-Gm-Gg:X-Received:
Received:Date:From:To:Cc:Subject:Message-ID:References:X-Mailing-List:
List-Id:List-Post:List-Help:List-Subscribe:List-Unsubscribe:
List-Owner:Precedence:MIME-Version:Content-Type:Content-Disposition:
In-Reply-To;
bh=06Xc0ddvGHZawIK4l20RiPzecPgpH/e/8isQcIvJpnA=;
b=5e6GfCXfYdGcXx3/bFW+CNpXQA1871EjcpvGglLL6sKIFV2/XuMPeRGJPKnelUPUpCZi
sRBWNLcdEt4OTszGBe4ZL9TniwbiBitTJhcZhLBxSLnyCxiRTVkq1u9zw7enuqz8QAZxL
lvhxxA74nrgYqVYufyAI8HDthMhzrxicjv7R6/jb2egllLzTPisvQ1vkJ1z8q6sxrckZ4
XIfBdj9breVG2wIO8BAHcB2pmsSuHKQprTFmR74eKdjY3SbQBMgUb7t5uqj3jRIVrwRP9
J9V0YanV0elA4tj/OVHt8sclVkQwdRMLhoAmJRTyWKXmqw6G7RCBszjpRG4P/aFBeIQ==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org;
dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=E2AMXOSn;
dmarc=pass header.from=gmail.com;
spf=pass smtp.mailfrom=gmail.com;
arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-Received: from localhost.localdomain (localhost [127.0.0.1])
by smtp.subspace.kernel.org (Postfix) with ESMTP id 50604606A32A;
Sun, 29 Nov 2026 02:32:14 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=E2AMXOSn
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=74.125.229.8
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
t=1795919533;
b=DqT7CWwshkXLn5OOGKLwxwG28uxshi8b/bJEYaUeCI4zDVrEkGjuKLDUEhIw/U7b+ZeS
LFnFfvPqVLRWppa+Zt0ACAD/0Cg7/8+AioDkMbj0gvaV91miH0h2+US7Wx89qQRSv8cWG
x6LG16AqBmKFmNJqrmT42SJ+PvnPRnwAnGpsSkz4sI1cqauickKYEv8bggDX7ibtCwz4z
kgvKQsFtg79iQIHfwMm+uJLuJM25W7I9ISG+9mbDGKRzqETYTE8XmjNZDOg4XQPSOrGig
k5AWaKNwiseb0kv93GHKjmO3+EIN7r+dwMsx3HkY4hwOezSFQ7VHEb9gyCY6f+OW6NA==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1795919533;
h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature:
X-Gm-Message-State:X-Gm-Gg:X-Received:Received:Date:From:To:Cc:
Subject:Message-ID:References:MIME-Version:Content-Type:
Content-Disposition:In-Reply-To;
bh=06Xc0ddvGHZawIK4l20RiPzecPgpH/e/8isQcIvJpnA=;
b=lxC2lBqlMQjBh1Km/ZzDGKmwfJ+Mv8lmwoPu7fhMREW1iG8IFVhKD1uNF4Fbvxon2i8r
6PC2fpRXL8uSaL7utIXqnm6dnJeC9kLb6knkK6qQGLWJa4RURz2vQTltqDJ5wsrsjlzHg
bFzs1wgCECqU/Mju7nXwTepr0oNB0BroQ5j44HmyUdZjT8ZGx72YTmPwo8wWMgO0Ndopo
7v5VNJJZ9Ha7s/abuDGyCJEr0q0ozbFzDsaATC5yWMTCbevWKWXMIAkgRAH6R8aAACrmN
sUFreNBgpZ5AMSMA4rDf2jYDOkheA0jFnG++T3QOEwLwJGpYTXs4C1Fjv/FTPsXNh1Q==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org;
dmarc=pass header.from=gmail.com;
spf=pass smtp.mailfrom=gmail.com;
dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=E2AMXOSn;
arc=none smtp.remote-ip=74.125.229.8
X-Received: from mail-dy2-f8.google.com (mail-dy2-f8.google.com [74.125.229.8])
(using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)
key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256)
(No client certificate requested)
by smtp.subspace.kernel.org (Postfix) with ESMTPS id 24233606A323
for <netdev@vger.kernel.org>; Sun, 29 Nov 2026 02:32:12 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 24233606A323
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com
X-Received: by mail-dy2-f8.google.com with SMTP id 5a478bee46e88-382afece6d8so2020067eec.1
for <netdev@vger.kernel.org>; Sat, 28 Nov 2026 18:32:12 -0800 (PST)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20260707; t=1795919532; x=1796524332; darn=vger.kernel.org;
h=in-reply-to:content-disposition:content-type:mime-version
:references:message-id:subject:cc:to:from:date:from:to:cc:subject
:date:message-id:reply-to:content-type;
bh=06Xc0ddvGHZawIK4l20RiPzecPgpH/e/8isQcIvJpnA=;
b=E2AMXOSnavtkHdu3iGWSsTzxAgfeZdJnrNY07O133Wtty39SFZHaXPPJuCIqGaZLre
jew00hoY2NKkLMFwOFBXsv7u68APJJE7oK8ydo+6sP8Y63SElq8xSKa5/HpeZ9DU4zxu
ZXCoRYQATCceIt1YrliN7XQoRzfOpCL4PTFepw8oDThOXw04qHdMs+Jvxydg+8IP+FJ5
ceT3y20orUywvxWSO8EFPluvpGohW+h4p+MR3IkMGZdjgbaZa1ROXZbbB4gYIB3EKHX3
ylfnGTtPBMoMjrGSQ9604VQpG6l712xJ1zhESF9465KmO+CrUiOs2rxJZYKbtmIsFlPm
M7dQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20260707; t=1795919532; x=1796524332;
h=in-reply-to:content-disposition:content-type:mime-version
:references:message-id:subject:cc:to:from:date:x-gm-gg
:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to
:content-type;
bh=06Xc0ddvGHZawIK4l20RiPzecPgpH/e/8isQcIvJpnA=;
b=jtblHUQVL8I5pAeTs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E
r352c40fhhtScxkV64UTCsQ=
X-Received: by 2002:a05:701b:4659:b0:1ae:b906:7733 with SMTP id a92af1059eb24-1b57cd0bb75mr15200878c88.23.1795919531795;
Sat, 28 Nov 2026 18:32:11 -0800 (PST)
X-Received: from localhost ([2a03:2880:9ff:6e::])
by smtp.gmail.com with ESMTPSA id a92af1059eb24-1b562a82b3fsm81884275c88.5.2026.11.28.18.32.11
(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
Sat, 28 Nov 2026 18:32:11 -0800 (PST)
X-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
X-Mailing-List: netdev@vger.kernel.org
X-List-Post: <mailto:netdev@vger.kernel.org>
X-List-Help: <mailto:netdev+help@vger.kernel.org>
X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org>
X-List-Owner: <mailto:netdev+owner@vger.kernel.org>
X-Precedence: list
X-In-Reply-To: <cover.1795884313.git.julius@bairaktaris.de>