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

From: netdev-bot+sashiko

Date: Fri Nov 27 2026 - 05:13:56 EST


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@xxxxxxxxxx>

[ ... ]

> cc: stable@xxxxxxxxxxxxxxx

[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