Page MenuHomeFreeBSD

tcp: fix handling of TCP RST segments missing timestamps
ClosedPublic

Authored by tuexen on Jan 13 2021, 10:50 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Apr 18, 1:09 PM
Unknown Object (File)
Thu, Apr 18, 1:13 AM
Unknown Object (File)
Thu, Mar 28, 10:11 AM
Unknown Object (File)
Jan 31 2024, 10:36 AM
Unknown Object (File)
Jan 31 2024, 10:36 AM
Unknown Object (File)
Jan 30 2024, 2:49 AM
Unknown Object (File)
Dec 22 2023, 9:59 PM
Unknown Object (File)
Dec 12 2023, 9:10 AM
Subscribers

Details

Summary

A TCP RST segment should be processed even it is missing TCP timestamps.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

With this patch applied, the Go test suite passes on both current (818390ce0ca) and stable/12 (49038d1723a). Thanks!

I'm afraid that I can't provide much better input than dmgk already has, but this does conform to my interpretation of RFC7323 from a brief read at the referenced section.

Functionally, I concur that this is the right way to handle RST packets.

From an implementation, perhaps having the check for TH_RST and the V_tcp_tolerate_missing_ts sysctl of D28142 in a combined || check, rather than two fully independent branches (which is likely if D28142 and D28143 are applied independently).

This revision is now accepted and ready to land.Jan 14 2021, 8:29 AM

Functionally, I concur that this is the right way to handle RST packets.

From an implementation, perhaps having the check for TH_RST and the V_tcp_tolerate_missing_ts sysctl of D28142 in a combined || check, rather than two fully independent branches (which is likely if D28142 and D28143 are applied independently).

I will apply this patch first, then update the D28142 using an ||. I want to keep them separate, since this is a fix of a bug, D28142 is adding a sysctl.