Skip to content

tcp: 3 fixes for retrans_stamp and undo logic

Neal Cardwell netdev 1 version Applied

Status from this message: This series was applied to netdev/net.git (main)

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 0 repliesApplied 3/3

Patches in v1 All 3 applied

#Subject and filesSizeRepliesApplied
1/3tcp: fix to allow timestamp undo if no retransmits were sentnet/ipv4/tcp_input.c+16 -20 repliesApplied
2/3tcp: fix tcp_enter_recovery() to zero retrans_stamp when it's safenet/ipv4/tcp_input.c+13 -00 repliesApplied
3/3tcp: fix TFO SYN_RECV to not zero retrans_stamp with retransmits outnet/ipv4/tcp_input.c+9 -20 repliesApplied

Reviews trailers per patch

None of the 3 patches has a Reviewed-by or Acked-by.

PatchGeumhwan Yu
1/3Diagnosed-by
2/3
3/3

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH net 0/3] tcp: 3 fixes for retrans_stamp and undo logic

From: Neal Cardwell <[email protected]>

Geumhwan Yu <[email protected]> recently reported and diagnosed a regression in TCP loss recovery undo logic in the case where a TCP connection enters fast recovery, is unable to retransmit anything due to TSQ, and then receives an ACK allowing forward progress. The sender should be able to undo the spurious loss recovery in this case, but was not doing so. The first patch fixes this regression.

Running our suite of packetdrill tests with the first fix, the tests highlighted two other small bugs in the way retrans_stamp is updated in some rare corner cases. The second two patches fix those other two small bugs.

Thanks to Geumhwan Yu for the bug report!

Neal Cardwell (3):
tcp: fix to allow timestamp undo if no retransmits were sent
tcp: fix tcp_enter_recovery() to zero retrans_stamp when it's safe
tcp: fix TFO SYN_RECV to not zero retrans_stamp with retransmits out

 net/ipv4/tcp_input.c | 42 ++++++++++++++++++++++++++++++++++++++----
 1 file changed, 38 insertions(+), 4 deletions(-)
Signature · 1 line
2.46.1.824.gd892dcdcdd-goog