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)
Thu, May 14, 1:31 PM
Unknown Object (File)
Thu, May 14, 9:38 AM
Unknown Object (File)
Wed, May 13, 8:42 PM
Unknown Object (File)
Wed, May 13, 8:42 PM
Unknown Object (File)
Wed, May 13, 7:38 PM
Unknown Object (File)
Mon, May 11, 10:55 PM
Unknown Object (File)
Mon, May 11, 9:30 AM
Unknown Object (File)
Sat, May 9, 9:57 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