Article View: linux.kernel.netdev
Article #18641Re: [PATCH net v2 3/5] tcp: reject RTT samples from TSecr above 120 s
From: Eric Dumazet
Date: Wed, 18 Nov 2026 16:35
Date: Wed, 18 Nov 2026 16:35
30 lines
9960 bytes
9960 bytes
Le mer. 18 nov. 2026 ร 16:51, Chris Mason <mason@kernel.org> a รฉcrit :
>
> tcp_rtt_tsopt_us() returns the timestamp clock minus TSecr as an RTT
> sample, and accepts up to 2,147 s. If TSecr echoes an old timestamp,
> the sample is the age of that timestamp, not an RTT.
>
> tcp_ack_update_rtt() takes this sample for an ACK of retransmitted data.
> tcp_rtt_estimator() clamps it to 120 s. The congestion control gets the
> sample unclamped, in rs->rtt_us.
>
> tcp_rcv_rtt_measure_ts() takes the same sample for the RTT estimate of
> the receive side.
>
> The fix used here is to reject a sample from TSecr above 120 s, for both
> callers of tcp_rtt_tsopt_us().
>
> An ACK of retransmitted data whose TSecr is more than 120 s old now
> gives no RTT sample. So it no longer resets the backoff, as on a
> connection without timestamps.
>
> Found by LLM code inspection, and confirmed with LLM generated
> reproducers on an unmodified kernel. Fixed by LLM, and tested with
> the reproducers and existing kernel selftests.
>
> Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2")
> Signed-off-by: Chris Mason <mason@kernel.org>
Reviewed-by: Eric Dumazet <edumazet@kernel.org>
Technical Details
Message-ID:
<CAL4Wiip_ZpcmLTHmO8v_STenwT-UkZQ2VDZcBfT8qztpDKevxQ@mail.gmail.com>Path:
mbox-mo1.pugleaf.net!news-lax.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-366284-linux-kernel-netdev=dewy.ruReferences:
<20261118155144.18393-1-mason@kernel.org> <20261118155144.18393-4-mason@kernel.org>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-366284-linux-kernel-netdev=dewy.ru
From: edumazet@kernel.org (Eric Dumazet)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net v2 3/5] tcp: reject RTT samples from TSecr above 120 s
Date: Wed, 18 Nov 2026 17:35:55 +0100
Organization: Usenet Network
Message-ID: <CAL4Wiip_ZpcmLTHmO8v_STenwT-UkZQ2VDZcBfT8qztpDKevxQ@mail.gmail.com>
References: <20261118155144.18393-1-mason@kernel.org> <20261118155144.18393-4-mason@kernel.org>
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Injection-Info: usenet.network;
logging-data="2641684"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:rRVyfgsNGg9X/RCBKB+rfa5uXB4= sha256:RE9Oc7L77xXvzaz8ihpbkZPc5yebKhLSgzIQk3Jo8Yc=
sha1:cKSUCn/RIXGHq6EzUqGVLuhc9uo= sha256:1RqIyMuONznX7sVw2GuKNhyHdmJLuYm1TsCZgAgPUI8=
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 CEB28115333; Wed, 18 Nov 2026 19:36:27 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.401
X-Spam-Status: No, score=-3.401 tagged_above=-9999 required=6.31
tests=[DCC_REPUT_70_89=0.1, 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 0A1K8YkGj6cG;
Wed, 18 Nov 2026 19:36:25 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=netdev+bounces-366284-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 tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114])
by mail.dewy.ru (Postfix) with ESMTPS id E182D11532A; Wed, 18 Nov 2026 19:36:16 +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 0E90E3BFA1; Wed, 18 Nov 2026 16:36:12 +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=1795019769;
b=fJxD5CfX9Wa6qqRNRsx31awFZsWy/fI2xxgEAmw9trCqGKr0hvXh0n/2LbojDunYy9ik
MreVC0dCzS8m020D14BVRmZCtXLyQI8l5ocAKnQehLhUgVsSH32JU+0N6u1/j1SxEgrTT
C5XAzMtQIFclrVtIfNZbBSW7clPaOmd627CNRWHBpprRk8qh4KsNJXscDN2w3PHlISr65
0HVm0LDLuFzfXrF30BbFpCvrn0Ebl7DLhWMotNn8xczVuUF/Wq53hkFAp86fBoBDsiXqn
3poWqTKFowH8VtUgflOHeLE7Fyr6Gwz6aIR40qhgwMGKOGEjSmQJTwAsc41rMU89lTg==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1795019769;
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=YM/UQz6VCYqxEfn9Z81Oz8xe9Dof0Si1ZSiCOnSX+f0=;
b=PH9EyqH9LBzpzOBD3mczzumKnujK5rGSCygT8+QzLcbQP1DGm/Q2VgwMFyJAwDpzk9CZ
rfp5vmmij+N4LsW8sLV5SgCuWsCCT3Ux634x+b9kCuRwUwgnN/qxeQ8Bm0S+mD3sjfPRM
F9Vb20a8yganqWPLdx3euhK8n5CC0i6wJsNV1mHWR4izwNE9I0THiJfocpMUIWbPMH3L5
ZseTqC9NeazkA2kZ8+gcZyHRt4eicAskrOr+nWHtHUzfua0LMlIFc3GNCNA1XXKPmASwA
LGpHtAbrhGko+zSS8tm1xNRbaAafiSrmnuVVplSxfaZGMyHv8rZBCgLW+PQ5wXcDK4Q==
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=dFgOU3P2;
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 A1BB5606A333;
Wed, 18 Nov 2026 16:36:09 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=dFgOU3P2
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=1795019768;
b=fKbJv25Z+DBlScVF/jp8/LsAu6yC5Jye294MNH2jJVTY229cZ7/WIXrdyeHIlq04NH9r
IU37aLX1egwKHxZZznqYSDjKvYaKfYCpYZ4KJCa228ASZrgtqywxeGwiPE+/kL23W5czn
yMQ3RfgUb0fTaN741fU9sG3b9dVex2of8uRRZ1NKNikBsD+73DvXjVMdkIdgCWLZjIvkE
1EhrBZOlcWU9ol6xXy8ZfPanBPRFffdQYUZDgzyp/3cM/XXkCpIIaZd1FNw83no4xQqc1
Jef28HdbPEovkK1TxzVJJYEO9iNKjxzGkiJEbX/0TVcjw0h82+OruUWjI4Ch8/90gXw==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1795019768;
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=YM/UQz6VCYqxEfn9Z81Oz8xe9Dof0Si1ZSiCOnSX+f0=;
b=Jp7+QzuQsHrmyyMdkBuuB49EvykPjjEPZgzSNQTZwEWR17q2Z7iNq75/qXZoMpNm1hDh
1ZWAZjTBcbyhGM4F/v80SPW3MeeaH4T36S76LLDQBPtdblPhdYoIU+HS+orpSEGt8eXBZ
5qdDc4zOVFb7qg1+qHyw+ENpTtW/dKpVK+DYHAG3xwFuf3XCw0gY/L1rijPhgcqEWEzur
wnMT4lpPd6GI46QWf5/vRIvyJfK5JndlYGB5YxCeyuW2Rhe/1HUC9pGCkwzINBL99cs5C
7mVf6fdheybVaNHphvBNlVpKe5hpo8cjT51T4j/19lo16cplFnSbAJzC+u+M1j1wGuA==
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=dFgOU3P2;
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 BC824606A325
for <netdev@vger.kernel.org>; Wed, 18 Nov 2026 16:36:08 +0000 (UTC)
X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 951801F000CA
for <netdev@vger.kernel.org>; Wed, 18 Nov 2026 16:36:08 +0000 (UTC)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org;
s=k20260515; t=1795019768;
bh=YM/UQz6VCYqxEfn9Z81Oz8xe9Dof0Si1ZSiCOnSX+f0=;
h=References:In-Reply-To:From:Date:Subject:To:Cc;
b=dFgOU3P2I02DekoTCWnJD2yWQahwYhM9B9CltGFSQjoAtZPdEf9KhUpTZctodx3bl
URmZIAluSWgca4iPKYIOuDYv1iINRryv9BN0S1ByrXgWKTze5k3jeurjlDoTnz0jYF
WVs1+x6ly1eiPDgbh+XzSYUnKnX5xqB6INhjpI2Enq6iPNHb9vDxjFWSa/rWj69jMx
L2pkgclxqUSBdDNn/gp1/gpv4SBjDZv9WR9UZVLfPaPsSDilC8lUAV6ZUMm2CCVlGF
D+N5ph1HG+8HnSv0T90SvlnCz5bvNjIDE1n8LMAbrYAsSkg/7rcapfd8ckZs8gaHLe
vT5nAjIWz2JfA==
X-Received: by mail-oo1-f48.google.com with SMTP id 006d021491bc7-716c0217635so1223854eaf.0
for <netdev@vger.kernel.org>; Wed, 18 Nov 2026 08:36:08 -0800 (PST)
X-Forwarded-Encrypted: i=1; AL+hErFruH9VtDgfPrtiJFph0DOR2KCbeKxVxR2iq1ruIDq6LqC10bkfCV6h/Wb92B9d71Sf9qRGFPs=@vger.kernel.org
X-Gm-Message-State: APuU4Z/61FlEJhbLvaOyrlt31K3mhe3UWxd1Fq9czIwfadPc41Z9Avmb
y8kLgzQfFSoGAZ/ZVLaYROGgRV5B05zxhOckKdwNA6ixV7CeCkgcJ16by2Op9OQTWa1QkHTflXP
5uCLzWvOVj+1CBhZF9+pvdlBJHagN5G8=
X-Received: by 2002:a05:6820:1343:b0:719:d9b:d750 with SMTP id
006d021491bc7-71b185e5c40mr1816318eaf.38.1795019767963; Wed, 18 Nov 2026
08:36:07 -0800 (PST)
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: <20261118155144.18393-4-mason@kernel.org>
X-Gmail-Original-Message-ID: <CAL4Wiip_ZpcmLTHmO8v_STenwT-UkZQ2VDZcBfT8qztpDKevxQ@mail.gmail.com>
X-Gm-Features: Aa3M54p2xchpIKodnzexyF-C3oPWKoTba2rDlD6VKVqI4P_L0_jczQx61xKIomg
X-Cc: ncardwell@google.com, kuniyu@google.com, davem@davemloft.net,
kuba@kernel.org, pabeni@redhat.com, horms@kernel.org, willemb@google.com,
josef@toxicpanda.com, netdev@vger.kernel.org