Re: [PATCH net] rxrpc: Fix missing lower bound in rxrpc_resend_tlp()
From: Lin Ma
Date: Mon Nov 23 2026 - 20:43:34 EST
Hi,
Thanks for the review. Both points are valid.
The High issue is correct: the new lower-bound check only covers the TLP
fast path, while the root cause is that rxrpc_transmit_fresh_data()
commits tx_qtail and tx_top before rxrpc_send_data_packet() has
succeeded. If the wire header allocation fails, tx_transmitted lags
behind, and the next iteration can index a new segment with a stale seq;
the LAST-packet case can also leave the remaining range unsent. I will
fix the tx window state update/rollback rather than only guarding one
consumer.
The Critical issue is also real: ACKALL rotates the Tx window and frees
txbuf slots up to tx_transmitted while tx_qtail still covers them, and it
does not update acks_hard_ack, so TLP can still select a freed slot even
with the new check. I will cover that path as well, either by keeping
the Tx window state consistent on ACKALL or by making
rxrpc_retransmit_data() tolerate a missing txbuf, and will send a v2
series.
pw-bot: cr