Page MenuHomeFreeBSD

tcp: close two minor races with debug messages
ClosedPublic

Authored by jtl on Oct 2 2025, 5:33 PM.
Tags
None
Referenced Files
F135170608: D52868.id163385.diff
Fri, Nov 7, 3:23 AM
Unknown Object (File)
Tue, Nov 4, 10:00 PM
Unknown Object (File)
Wed, Oct 29, 8:39 AM
Unknown Object (File)
Wed, Oct 29, 7:31 AM
Unknown Object (File)
Wed, Oct 29, 7:19 AM
Unknown Object (File)
Sun, Oct 12, 4:19 PM
Unknown Object (File)
Thu, Oct 9, 1:07 PM
Unknown Object (File)
Thu, Oct 9, 1:07 PM

Details

Summary

The syncache entry is locked by the hash bucket lock. After running
SCH_UNLOCK(), we have no guarantee that that the syncache entry still
exists.

Resolve the race by moving SCH_UNLOCK() after the log() call which
reads variables from the syncache entry.

Sponsored by: Netflix

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable