Page MenuHomeFreeBSD

tcp: a more proper fix for the previous ack-wark
ClosedPublic

Authored by rrs on Jun 3 2021, 3:24 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Apr 11, 7:40 PM
Unknown Object (File)
Sun, Mar 24, 5:30 AM
Unknown Object (File)
Feb 5 2024, 12:35 PM
Unknown Object (File)
Dec 20 2023, 1:59 AM
Unknown Object (File)
Nov 22 2023, 2:09 PM
Unknown Object (File)
Nov 22 2023, 1:39 PM
Unknown Object (File)
Nov 16 2023, 8:06 AM
Unknown Object (File)
Nov 14 2023, 8:13 AM
Subscribers

Details

Summary

So it turns out that my fix before was not correct. It ended with us failing
some of the "improved" SYN tests, since we are not in the correct states.
With more digging I have figured out the root of the problem is that when
we receive a SYN|FIN the reassembly code made it so we create a segq entry
to hold the FIN. In the established state where we were not in order this
would be correct i.e. a 0 len with a FIN would need to be accepted. But
if you are in a front state we need to strip the FIN so we correctly handle
the ACK but ignore the FIN. This gets us into the proper states
and avoids the previous ack war.

I back out some of the previous changes but then add a new change
here in tcp_reass() that fixes the root cause of the issue. We still
leave the rack panic fixes in place however.

Test Plan

Make sure the improved RCV-SYN tests pass (the ones that check state) and also
make sure the syscaller reproducer does not cause an ack war.

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped