Page MenuHomeFreeBSD

tcp: When we have an out-of-order FIN we do want to strip off the FIN bit.
ClosedPublic

Authored by rrs on May 27 2021, 12:12 PM.
Tags
None
Referenced Files
F137929003: D30497.diff
Thu, Nov 27, 8:50 AM
Unknown Object (File)
Sat, Nov 15, 1:24 AM
Unknown Object (File)
Sat, Nov 15, 1:23 AM
Unknown Object (File)
Wed, Nov 12, 1:05 AM
Unknown Object (File)
Tue, Nov 4, 10:28 PM
Unknown Object (File)
Sat, Nov 1, 7:51 AM
Unknown Object (File)
Fri, Oct 31, 7:19 AM
Unknown Object (File)
Fri, Oct 31, 4:27 AM
Subscribers

Details

Summary

The last set of commits fixed both a panic (in rack) and an ACK-war (in freebsd and bbr).
However there was a missing case, i.e. where we get an out-of-order FIN by itself.
In such a case we don't want to leave the FIN bit set, otherwise we will do the
wrong thing and ack the FIN incorrectly. Instead we need to go through the
tcp_reasm() code and that way the FIN will be stripped and all will be well.

Test Plan

We can use the tcp-test-suite with reorder_5F4321.pkt to test this case.

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped