mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: netdev-bot+sashiko@kernel.org
To: dhowells@redhat.com
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
Subject: Re: [PATCH net v3 02/10] rxrpc: Fix time unit conversion truncation
Date: Fri, 27 Nov 2026 10:13:29 +0000	[thread overview]
Message-ID: <179577440967.3135.13515803634362574241@kernel.org> (raw)
In-Reply-To: <20261124161302.4044422-3-dhowells@redhat.com>

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

  reply	other threads:[~2026-11-27 10:13 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-24 16:12 [PATCH net v3 00/10] rxrpc: RACK-TLP fixes David Howells
2026-11-24 16:12 ` [PATCH net v3 01/10] rxrpc: Fix incorrect unit conversion David Howells
2026-11-24 16:12 ` [PATCH net v3 02/10] rxrpc: Fix time unit conversion truncation David Howells
2026-11-27 10:13   ` netdev-bot+sashiko [this message]
2026-11-24 16:12 ` [PATCH net v3 03/10] rxrpc: Fix carrying of in-flight calc over retransmission David Howells
2026-11-27 10:13   ` netdev-bot+sashiko
2026-11-24 16:12 ` [PATCH net v3 04/10] rxrpc: Fix ack parsing to mark reneged ACKs as lost for RACK-TLP David Howells
2026-11-27 10:13   ` netdev-bot+sashiko
2026-11-24 16:12 ` [PATCH net v3 05/10] rxrpc: Fix RTT processing for a presumed lost packet getting ACK'd David Howells
2026-11-27 10:13   ` netdev-bot+sashiko
2026-11-24 16:12 ` [PATCH net v3 06/10] rxrpc: Fix lost driving of congestion management retransmission timeout David Howells
2026-11-27 10:13   ` netdev-bot+sashiko
2026-11-24 16:12 ` [PATCH net v3 07/10] rxrpc: Fix limit on packets to be transmitted in one go David Howells
2026-11-27 10:13   ` netdev-bot+sashiko
2026-11-24 16:12 ` [PATCH net v3 08/10] rxrpc: Fix detection of TLP probe response David Howells
2026-11-27 10:13   ` netdev-bot+sashiko
2026-11-24 16:12 ` [PATCH net v3 09/10] rxrpc: Fix counting of in-flight transmitted packets David Howells
2026-11-27 10:13   ` netdev-bot+sashiko
2026-11-24 16:12 ` [PATCH net v3 10/10] rxrpc: Fix RACK-TLP implementation David Howells
2026-11-27 10:13   ` netdev-bot+sashiko
2026-11-24 16:18 ` [PATCH net v3 00/10] rxrpc: RACK-TLP fixes netdev-bot+sinfo

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=179577440967.3135.13515803634362574241@kernel.org \
    --to=netdev-bot+sashiko@kernel.org \
    --cc=davem@davemloft.net \
    --cc=dhowells@redhat.com \
    --cc=edumazet@google.com \
    --cc=horms@kernel.org \
    --cc=jaltman@auristor.com \
    --cc=kuba@kernel.org \
    --cc=linux-afs@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=marc.dionne@auristor.com \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.com \
    --cc=stable@vger.kernel.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®