๐Ÿš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #23460

Re: [PATCH net v3 02/10] rxrpc: Fix time unit conversion truncation

#23460
From: netdev-bot+sashiko
Date: Fri, 27 Nov 2026 10:13
63 lines
10207 bytes
Thank you for your contribution! Sashiko AI review found more severe
issue(s) in other patches of this series. This mail is only an FYI, in case
you want to address the nit picks below when you respin.

Low priority / nit picks for your consideration:

- [Low] The Fixes tag is incomplete, so stable backports of this fix will
  miss some LTS trees.

--

rxrpc: Fix time unit conversion truncation

This commit adds u64 casts to the srtt_us conversions in
rxrpc_propose_delay_ACK(), rxrpc_congestion_degrade() and
rxrpc_tlp_calc_pto(). Without the cast, the multiply by an NSEC_PER_USEC
factor truncates on 32-bit arches.

Link: https://netdev-ai.bots.linux.dev/sashiko/#/patchset/20261020201258.290827-1-dhowells%40redhat.com

> Fixes: 7c482665931b ("rxrpc: Implement RACK/TLP to deal with transmission stalls [RFC8985]")
> Link: https://netdev-ai.bots.linux.dev/sashiko/#/patchset/20261020201258.290827-1-dhowells%40redhat.com
> Signed-off-by: David Howells <dhowells@redhat.com>

[ ... ]

> cc: stable@vger.kernel.org

[Severity: Low]
Should this patch carry more Fixes tags? Of the three hunks, only the
rxrpc_tlp_calc_pto() one in net/rxrpc/input_rack.c seems to come from
7c482665931b:

    pto = ns_to_ktime(call->srtt_us * NSEC_PER_USEC / 4);

The conversion in rxrpc_congestion_degrade() in net/rxrpc/input.c seems
to go back to 5086d9a9dfec (v6.2), where it read:

    rtt = ns_to_ktime(call->peer->srtt_us * (1000 / 8));

That multiply is u32 * int, so it truncates on 64-bit arches as well.
b40ef2b85a7d ("Manage RTT per-call rather than per-peer") later changed
it to the current form, which fixed 64-bit builds as a side effect.

The conversion in rxrpc_propose_delay_ACK() in net/rxrpc/call_event.c
seems to come from 153f90a066dd (v6.9):

    delay = (call->peer->srtt_us >> 3) * NSEC_PER_USEC;

The patch is marked for stable but only names 7c482665931b. Will the
stable tooling then skip trees that have the older truncations but not
the RACK/TLP commit? For example, 6.12 has both of the older ones. 6.6
has the input.c one, which is broken on all arches there.

Those trees also use call->peer->srtt_us, so they would need a tailored
backport.

Could Fixes tags for 5086d9a9dfec and 153f90a066dd be added? If not,
could the commit message say what the older trees need?

-- 
Sashiko AI review ยท https://netdev-ai.bots.linux.dev/sashiko/#/patchset/20261124161302.4044422-1-dhowells%40redhat.com
Technical Details
Message-ID: <179577440967.3135.13515803634362574241@kernel.org>
Path: mbox-mo1.pugleaf.net!srv.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-372635-linux-kernel-netdev=dewy.ru
References: <20261124161302.4044422-3-dhowells@redhat.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.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-372635-linux-kernel-netdev=dewy.ru
From: netdev-bot+sashiko@kernel.org
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net v3 02/10] rxrpc: Fix time unit conversion truncation
Date: Fri, 27 Nov 2026 10:13:29 +0000
Organization: Usenet Network
Message-ID: <179577440967.3135.13515803634362574241@kernel.org>
References: <20261124161302.4044422-3-dhowells@redhat.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
	logging-data="704035"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:re2UK8PlYROuvWe9tQN/r2KRTGg= sha256:aXPNMEwPPj++NeFgJcJ/+b01QR63L76cj3Y5pF0hWQM=
	sha1:wYLwys/XmbjFMzKz/1KT2UXHZnI= sha256:W5753geY7iY/UVArNzaPKNGNw2WByOlEUYy6yaxdfGg=
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 BDD46125F51; Fri, 27 Nov 2026 13:13:52 +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 rdkwaMbt9bPO;
	Fri, 27 Nov 2026 13:13:45 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-372635-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 sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])
	by mail.dewy.ru (Postfix) with ESMTPS id 12CB4125F4E; Fri, 27 Nov 2026 13:13:36 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by sea.lore.kernel.org (Postfix) with ESMTP id D338664E70; Fri, 27 Nov 2026 10:13:32 +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=1795774412;
	b=acZp15FRRdUQ0Y0QNWa/kPD7lEs8+j3emt6f0+hFll3kQy4Q/MjM83IydsCvA3aWgcI6
	 Ru8TnqOHUvCsVwNd0af6g/YE1fflk76sWYqPI1ZruD8ir+q5QRHqgHxtLIGuV3GUzitLG
	 JG3rI593Ami1dPWap/s0eQG12beFJWlsTIxFeUZ6EEJ+U146Aa0UJfyK65PkC571K8bcA
	 wEc2RAhCy9NDYM5Pd13r+SKUdXdat4vUVNWBnXiGj66TWEV10VCEnWR0uBJdt0EDMjZsS
	 t84PcEZIiAk+X64eAxTpAKrEnIhsdXNP27sOEVpWuvLx8trF9RHdLLNG61iLW3ibncg==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1795774412;
	h=X-Original-To:Received:Received:DKIM-Signature:Subject:From:To:Cc:
	 Date:Message-ID:In-Reply-To:References:X-sashiko-severity:
	 Content-Type:Content-Transfer-Encoding:X-Mailing-List:List-Id:
	 List-Post:List-Help:List-Subscribe:List-Unsubscribe:List-Owner:
	 Precedence:MIME-Version;
	bh=5EEtXQ2PrPKow39VsKQpKiA8DKM12Edkw0WjIixiSrM=;
	b=3MORNCuilIG5KI93fV/C7DZ8OKtYmAOVy2H90MZXOkjaV33+25ux+zWJIksCjjP8SW6v
	 h1ZfEkAFZ/zZnUa5tNY5RwePR1/aO1l+79FX7YABFoQ8wa09CDqNSAE4az3YIgih1sL27
	 fsbYMxSoeIkTAKGlS5G1IyTwFBgNRRrt1lMD5UA2czCI7nZzSJAgrilk3w6x4gVarTif/
	 T9CLQ300BK6nM3Mst47VVn64g+jrqu0DGKsl5Dp/IKT6QHEOFExZDS+pS/pw3SF7KdMQZ
	 ej0zjIvVvZpX/fcwC3wtQbnZBvFkAGGW3I+V3HrjxDt8V7gNfKsTh33eMGsLoWVS8Lg==
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=njOFpL7V;
	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 505A5606A32C;
	Fri, 27 Nov 2026 10:13:32 +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=njOFpL7V
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=1795774411;
	b=tGbFIshWIEmgjCXwP2xc/QzGqU2DjbnTCBnCMN/YtcPGkMjaD9ZUFLBkqeO+rlXqByNo
	 dnrp69EpqT6bRjyPueybF2WRd7qzl828MhbQ9WeKo/MPEUApjqUqdZ04O6MBk4pwJmuEN
	 hFCh1ZkAg+tN8fZHnQzDn1Ms2Vqo/P4WIkLCPD1S0ig0ULGH64u+7408lEcJE3JOqcSUa
	 +YlrwpjtQJX1lCZjetKzPakz+Hjp6XnZiBiHpQX4dFqvqXaIOBjZkx7KNixS5yZVs+aL2
	 XZi2Jt0y9Wgb7e2iAROGVl52I5DJhfnVGr1NPGB+BM0X1FNm5kIA+VZL4apiAgVBzfQ==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1795774411;
	h=Received:DKIM-Signature:Subject:From:To:Cc:Date:Message-ID:
	 In-Reply-To:References:X-sashiko-severity:Content-Type:
	 Content-Transfer-Encoding:MIME-Version;
	bh=5EEtXQ2PrPKow39VsKQpKiA8DKM12Edkw0WjIixiSrM=;
	b=aRL7PERxHCVGhUFLKkd1Ka9Hy++Wjdcwxm8sXkAAcICBbS2HaBlOIBK7G3UkIbHPaP/d
	 Yl/U0pUtf6cH1OZ1D33CYPILUXEuieV4O7EMFqaKjPf6Y01fsIxLlHJ2zkS8aVsXfBShk
	 fIhuADWtTX6fFB5HSbuHRoOH12Kv6D4X2vlNvji5Hw5L5b9OA+GuoVsIHefwGSKLi76nk
	 /XecKkU43Fj/UoOfuHn7VckRJ8fSLrR2QwFz8K7azbEAD1CWODGDIs7MNF3oIVBjRhlJR
	 XNU0SsZb67C28Ji4rdMC0MMluZ8XhXCXMhP1K1FRoY2Xt5EUBtoA6JJLe7yDXIlS9oQ==
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=njOFpL7V;
	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 6C12B606A31C;
	Fri, 27 Nov 2026 10:13:31 +0000 (UTC)
X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2A9531F00897;
	Fri, 27 Nov 2026 10:13:30 +0000 (UTC)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org;
	s=k20260515; t=1795774410;
	bh=5EEtXQ2PrPKow39VsKQpKiA8DKM12Edkw0WjIixiSrM=;
	h=Subject:From:To:Cc:Date:In-Reply-To:References;
	b=njOFpL7VVZGSzLW5gfrvWVnQwvafApz9JVxQQ+pxEXUZmWiEE3FJUeDF31np/+k9j
	 /i3+gFrVuh6n/rbjKO8s995C1dh8tG0jco8QAY4hpmBeVrPSrxGJVj81FP4ilHhbL3
	 LezGJkTPDAnItsxna6MRqAaVG8kU98zNWUwoy9YtevwV9CHlHXOnkIjF48g0NKm8Pp
	 od2mSYlExrmWhKhilC+A74LDrSH5evptlD2h8ntMDUNWAVAsswOoeNIJoHm02HEmh3
	 v71rTlWd4ES6sb5JoFVm66hjoEXrcAbc3erDoKJvfyp6zDCIEVTuLaZTOk0vACU4n3
	 Zmvq2IirOdbdA==
X-Cc: netdev@vger.kernel.org, marc.dionne@auristor.com, kuba@kernel.org,
 davem@davemloft.net, edumazet@google.com, pabeni@redhat.com, horms@kernel.org,
 linux-afs@lists.infradead.org, linux-kernel@vger.kernel.org,
 jaltman@auristor.com, stable@vger.kernel.org
X-In-Reply-To: <20261124161302.4044422-3-dhowells@redhat.com>
X-sashiko-severity: Low
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