Article View: linux.kernel.netdev
Article #7909Re: [PATCH net 2/2] Revert "net: advertise TCP MSS from the configured MTU, not the learned PMTU"
From: Eric Dumazet
Date: Tue, 27 Oct 2026 13:02
Date: Tue, 27 Oct 2026 13:02
77 lines
12511 bytes
12511 bytes
Le mar. 27 oct. 2026 ร 13:45, Jiayuan Chen <jiayuan.chen@linux.dev> a รฉcrit :
>
>
> On 10/26/26 3:23 PM, Esko Mobius via B4 Relay wrote:
> > From: Esko Mobius <echoowall@gmail.com>
> >
> > This reverts commit 2640e6419594 ("net: advertise TCP MSS from the
> > configured MTU, not the learned PMTU").
> >
> > That commit stopped the learned PMTU from lowering the MSS we advertise
> > in SYN and SYN-ACK. For symmetric paths it argued that "the peer runs
> > its own PMTU discovery and usually already knows the real path MTU".
> > That only holds if ICMP "fragmentation needed" can reach the peer. When
> > the peer sits behind a firewall that drops inbound ICMP, its PMTU
> > discovery is a black hole (RFC 2923, section 2.1), and the smaller MSS
> > we advertised was the only thing keeping its full-size segments off the
> > narrow hop.
>
>
> A client that cannot receive ICMP is broken beyond this: QUIC's DPLPMTUD
> hits the same black hole, and nothing the server advertises can help it.
>
>
> >
> > Inbound ICMP filtering is very common in enterprise and carrier
> > networks, and it is pervasive in mainland China. We hit this in
> > production after the commit was backported to 6.12.111: TCP connections
> > that reach a server through a relay with a smaller-MTU hop complete the
> > handshake, then stall as soon as the client sends full-size segments.
>
>
>
> The learned PMTU is keyed per destination address. If your relay
> masquerades the clients, the server sees a single address, and one
> client's download seeds the entry for everyone behind it. That is why
> this looked reliable. Once the clients are spread over their own
> addresses, each one needs its own fresh entry and it falls apart. The
> old behaviour was never a mechanism for this.
Hi Jiayuan
You are right on the technical side, and your patch was correct
from an RFC point of view. The old behavior was a side effect,
not a designed mechanism, and the reporter setup only works
because the masquerading relay keeps the exception fresh.
But it did work for them, for years, and it stopped working after
a stable update. That is the part we have to fix first, even if the
setup relies on an accident. MSS clamping on the relay is the proper
long term answer for them.
This is partly my fault: I reviewed the patch and did not object to
the Fixes: 1da177e4c3f4 + Cc: stable tags. A behavior change like this
one should have stayed in net-next.
> Maybe a better way out than a plain revert:
>
> Revert in stable, and in net-next add a sysctl, something like
> net.ipv4.tcp_advmss_use_pmtu,
> that decides whether an endpoint uses the PMTU it learned on its send
> side for the MSS it advertises (even though these are two opposite
> directions). Default on keeps your setup working, DSR-style setups turn
> it off
I think we mus take the revert in net as well, so that
mainline and stable trees behave the same, and the stable
backports do not diverge.
Then a net-next patch is welcome, keeping the historical behavior
as the default. Before adding a new sysctl, please check if the
existing per-route advmss metric is enough for the DSR case,
as Esko showed in the changelog. If it is not (for instance because
it is too hard to deploy on many routes), a sysctl sounds fine to me.
Thanks!
Technical Details
Message-ID:
<CAL4Wiip=TkP2hmOFR-1Y-CU4rYHY_q=TBDhK6RmTj9UEMQ95Gw@mail.gmail.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-352444-linux-kernel-netdev=dewy.ruReferences:
<20261026-advmss-revert-v1-0-272fa4b7ecb6@gmail.com> <20261026-advmss-revert-v1-2-272fa4b7ecb6@gmail.com> <e25fd292-5391-41fc-a324-0ec260828415@linux.dev>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-352444-linux-kernel-netdev=dewy.ru
From: edumazet@kernel.org (Eric Dumazet)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net 2/2] Revert "net: advertise TCP MSS from the
configured MTU, not the learned PMTU"
Date: Tue, 27 Oct 2026 14:02:58 +0100
Organization: Usenet Network
Message-ID: <CAL4Wiip=TkP2hmOFR-1Y-CU4rYHY_q=TBDhK6RmTj9UEMQ95Gw@mail.gmail.com>
References: <20261026-advmss-revert-v1-0-272fa4b7ecb6@gmail.com>
<20261026-advmss-revert-v1-2-272fa4b7ecb6@gmail.com> <e25fd292-5391-41fc-a324-0ec260828415@linux.dev>
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Injection-Info: usenet.network;
logging-data="1540661"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:eQiWSSXBj7sGeaiU4/3xYgjNT2Q= sha256:ImVoNHreFozJrXpvb0+81okVwqgBTd26BlQRpvd2Y/c=
sha1:j8XvCNf50jOGG76LNwAlKSNXuwM= sha256:IKUgVSgcsGMMa170DfqlocJUaWT0D7L5xFYFPWSAMSE=
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 A482C125BFD; Tue, 27 Oct 2026 16:03:49 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.501
X-Spam-Status: No, score=-3.501 tagged_above=-9999 required=6.31
tests=[DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1,
DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, MAILING_LIST_MULTI=-1,
RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001]
autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key)
header.d=kernel.org
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 ww42mI1Qz53P;
Tue, 27 Oct 2026 16:03:45 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.232.135.74; helo=sto.lore.kernel.org; envelope-from=netdev+bounces-352444-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN>
X-Authentication-Results: OpenDMARC; dmarc=pass (p=quarantine dis=none) header.from=kernel.org
X-Received: from sto.lore.kernel.org (sto.lore.kernel.org [172.232.135.74])
by mail.dewy.ru (Postfix) with ESMTPS id 7BD53125BFC; Tue, 27 Oct 2026 16:03:32 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
by sto.lore.kernel.org (Postfix) with ESMTP id C0067600F75; Tue, 27 Oct 2026 13:03:17 +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=1793106196;
b=uiL3sWcUCQmpyFTmCMJbIAoGODMF87zksnR2GxPXDxyRJKdrX7+F8foaUdRDaind+K7i
m35aYp182xHEPGfzMzhaMY+77cJpifTDMNjWjUpb444WARIj7BsQ1KIO6ZbFP0Eni01W2
JiOqgJYtvvg2VTXn57Hd2FJFiUB0hxEg8wc4o32rLMBP6nf0UZplnVdhCoCbKvemPA1eO
gn8j6CU2WBAA7KjCSFV3XzMOLiIJE+NZG9QgcwZEgHgza8QwSHhDwF8AnQxbYMQ0jxb6I
Nbx+iV3rSFHXUVdsIjJA4X7XapzVmQy0qO351Y43pNgp7Eaqy4wJx62Qw7/0V5DMnfQ==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1793106196;
h=X-Original-To:Received:Received:DKIM-Signature:Received:
X-Forwarded-Encrypted:X-Gm-Message-State:X-Received:X-Mailing-List:
List-Id:List-Post:List-Help:List-Subscribe:List-Unsubscribe:
List-Owner:Precedence:MIME-Version:References:In-Reply-To:From:Date:
X-Gmail-Original-Message-ID:X-Gm-Features:Message-ID:Subject:To:Cc:
Content-Type:Content-Transfer-Encoding;
bh=gmp1+598YRgh8xV6vRtgePkT+IRpuCg0m/DIj26GqFI=;
b=of1dK38Ps1Fs5yTa7KuuMVeiGqcHJJZanY8zXVVDDZJFg2Sy56Ne4ZV1b5seM5U/OwfO
oufyJmHKCRhENYFHPDnFLiZKxsOXonaZxwhhF6LythFF0HH7kryTPwD5VX2r3AOsClY1m
0KIWzD33uUc4l8D7iTRO3FgHlC5T4WOPKs6mbB/sm9Ihvd1yyaT+vNL2Aw+BX3q4/iS29
NPRF6Vhyjo90RSx58UH0JXY9dYIA1S3V8W4TjeH+DhtaYj43r0CFy1u74xHoIUWuLREkW
5sl/5Xf5GIczROA8dHty6XGmVYZvDvST2OLL1TC6f4FdLOgdkZNfN1H+yWfr0H/piCw==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org;
dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=Zb0+D6Hm;
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 0CC03606A32E;
Tue, 27 Oct 2026 13:03:16 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
dkim=pass (2048-bit key, unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=Zb0+D6Hm
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
t=1793106195;
b=Ts1IdEywT7OqIHn3ASIT8zzlzL+wYTQSeN5BQafN+RdXzEr7C9a+xLW5O+Fhsc1i5CvG
PO5hUlXIm5dE3LsXd2jPppaJrduliQ0opto3A9fZ619FuXBdFISdKaHg2+ftPC89aSWP5
qUCS8kTZ7smimiyQqCb1zyTdEI32JNxWCYHEm60KqnECy79DXH1iSgyAj8lyCyHGA08Wc
lRgQkafXKsoYVpKVBBpMBXzkMX68WWgPsvTXPWKu9yE98INA0w95aWV+nccegTFWftySw
N6B3j9ZFL8poVjMGYPTssrFWPIOVp1AgaNkY8i+Kxr+8p5xSFX4yOJ42vPpDkUts7kw==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1793106195;
h=Received:DKIM-Signature:Received:X-Forwarded-Encrypted:
X-Gm-Message-State:X-Received:MIME-Version:References:In-Reply-To:
From:Date:X-Gmail-Original-Message-ID:X-Gm-Features:Message-ID:
Subject:To:Cc:Content-Type:Content-Transfer-Encoding;
bh=gmp1+598YRgh8xV6vRtgePkT+IRpuCg0m/DIj26GqFI=;
b=RbERtMoyF56D2Qz6H7UEsXi4gqOUvEVhGrerv/jZfi/nqLvAH3iKOT36Gs7D42Iji+0M
YFIyBXZF6Y/ad1QsqYQ3LsvGtRyhvNTbHMc552YiwtjtufTb+NjxNHDB+GWKQLmqrWZn7
VN8YqkuglVVHJjQIvxJfi+JxbA24F5PdPFW5aa+rGNxa0LXXCrmC9mXBGkvyNbcUYcL8q
+dJARxRcLmz27a7hSuQ29rPSqAjiBu6RQgEDCxoitOa9sCMhsQpjV2Oi73Qj7iy2YroYV
PFQIxtieMcxBex6AakcVo/qpmd+iByIBzXwj0qm7fxIZagMcW8URoAVErVswSgkMmeg==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org;
dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=Zb0+D6Hm;
arc=none smtp.remote-ip=100.103.45.18
X-Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18])
(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
key-exchange X25519 server-signature ECDSA (prime256v1))
(No client certificate requested)
by smtp.subspace.kernel.org (Postfix) with ESMTPS id E1A6F606A321
for <netdev@vger.kernel.org>; Tue, 27 Oct 2026 13:03:14 +0000 (UTC)
X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 426751F01825
for <netdev@vger.kernel.org>; Tue, 27 Oct 2026 13:03:14 +0000 (UTC)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org;
s=k20260515; t=1793106194;
bh=gmp1+598YRgh8xV6vRtgePkT+IRpuCg0m/DIj26GqFI=;
h=References:In-Reply-To:From:Date:Subject:To:Cc;
b=Zb0+D6HmPiKSpTqonVpxXsiXeOTH+oqCk7Iio8ruOww1rFr+CxM/ODGBvWpPShKKD
pwjhdNOVMw2TkdrfC52ZMGS4M5aUkXRAn6pqS0bUi8kZi1KBBQRHI9SpBahgNb4vVb
BVaoij/PjwaH265ov6Fg9UIteyUiAhqj3Wl5HieRgALSFvnInFjy2iXjg74p76ioCq
mcVn/yDAQ5hGXbmWasSqWpRo8SGZKkF4cj7oGNovdscP5UFxl/I5iYUIKZQrG0l/Pi
+qcccqgFa/b1Fj9IdD1r1HD+Rp0ViROdkJqHhWSFd/Wsu4MRdcNphCVJ4aGhO1Kf+h
cbcIJISxCLX3A==
X-Received: by mail-lj1-f173.google.com with SMTP id 38308e7fff4ca-3ac65e845a8so10346701fa.1
for <netdev@vger.kernel.org>; Tue, 27 Oct 2026 06:03:14 -0700 (PDT)
X-Forwarded-Encrypted: i=1; AKwUvBw2ty8Iof3r5jKrN+o6kSINJajDlLEkNzuJlCQMSWPIZcoEzElXyaNeiM/f4JXeLB/lp4Uzmpg=@vger.kernel.org
X-Gm-Message-State: AFq9FYJQO+3hBL6KeX4jWtq6E6t9bUzg2nMB/jes5J1QOUC8tCbjD9mp
0uaW/w2yV9UPOXu15v32xXK+qjd4VWjb5G8iQCZQSlsLBvJcko+EwsyH9xCrP5ep8dU39VcPVWT
Dx7u8AHQleDw1lJ7YIrYTSlJTwZr70I0=
X-Received: by 2002:a2e:be90:0:b0:3ab:1dcd:934c with SMTP id
38308e7fff4ca-3ac9085cd16mr5034811fa.1.1793106193067; Tue, 27 Oct 2026
06:03:13 -0700 (PDT)
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: <e25fd292-5391-41fc-a324-0ec260828415@linux.dev>
X-Gmail-Original-Message-ID: <CAL4Wiip=TkP2hmOFR-1Y-CU4rYHY_q=TBDhK6RmTj9UEMQ95Gw@mail.gmail.com>
X-Gm-Features: AclHuK9rU7oOToqigMxIaaqt9b1_ic_1sOzFF6P0HJqOg7YsuT6ZI5h9HNYfk2s
X-Cc: echoowall@gmail.com, netdev@vger.kernel.org,
Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
"David S. Miller" <davem@davemloft.net>, Simon Horman <horms@kernel.org>, David Ahern <dsahern@kernel.org>,
Ido Schimmel <idosch@nvidia.com>, Shuah Khan <shuah@kernel.org>,
Thorsten Leemhuis <regressions@leemhuis.info>, regressions@lists.linux.dev,
linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org,
stable@vger.kernel.org