Page MenuHomeFreeBSD

Hung sessions
ClosedPublic

Authored by rrs on May 13 2020, 3:18 PM.
Tags
None
Referenced Files
F103584641: D24826.diff
Tue, Nov 26, 6:51 PM
Unknown Object (File)
Sat, Nov 23, 7:09 AM
Unknown Object (File)
Sat, Nov 23, 6:58 AM
Unknown Object (File)
Oct 25 2024, 11:49 PM
Unknown Object (File)
Oct 11 2024, 3:39 PM
Unknown Object (File)
Oct 10 2024, 12:57 AM
Unknown Object (File)
Oct 7 2024, 11:24 PM
Unknown Object (File)
Sep 25 2024, 4:10 AM
Subscribers

Details

Reviewers
tuexen
Group Reviewers
transport
Summary

Michael Tuexen as came up with a test case where rack ends with a stuck session. It rotates
around the TCP-FO. The problem is a return(0) and not a walk through the normal just-return
path.. special for SYN-Sent/SYN-Rcvd and FO.

This change fixes that. The attached program is a reproducer that Michael sent me. With the
fix the session now is no longer stuck.

Test Plan

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

rrs requested review of this revision.May 13 2020, 3:18 PM

Except for the whitespace issue, I'm fine with it.

FreeBSD/sys/netinet/tcp_stacks/rack.c
12122 ↗(On Diff #71719)

Are the trailing whitespaces intended?

Looks like BBR has the same issue, and we need to strip trailing emacs presents too :)

Opps used the wrong goto label...

This revision is now accepted and ready to land.May 14 2020, 6:09 PM

Let's also fix the accounting panic that skyzaller is finding here too. When we are in a front
state and have a SYN outstanding that should count in the ctf_outstanding size. Also if
we have sent a FIN same thing.

This revision now requires review to proceed.May 15 2020, 4:48 AM

And even yet another issue thanks to skyzaller in bbr.. the rc_lost when doing TCP-FO was incorrect in rxt timers.

One little other niggle that I noticed, we should not do a goto again if the SYN bit is set ...

We should not ever do GP measurements until we are established

This revision is now accepted and ready to land.May 15 2020, 1:07 PM