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
Unknown Object (File)
Sun, Nov 30, 1:09 PM
Unknown Object (File)
Mon, Nov 24, 8:22 PM
Unknown Object (File)
Mon, Nov 24, 3:51 AM
Unknown Object (File)
Thu, Nov 20, 4:45 PM
Unknown Object (File)
Thu, Nov 20, 9:11 AM
Unknown Object (File)
Tue, Nov 18, 3:03 PM
Unknown Object (File)
Tue, Nov 11, 8:18 PM
Unknown Object (File)
Tue, Nov 11, 3:06 AM

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