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
F165809263: D52868.diff
Sun, Aug 9, 10:33 PM
Unknown Object (File)
Sat, Aug 8, 7:20 PM
Unknown Object (File)
Fri, Aug 7, 9:11 PM
Unknown Object (File)
Thu, Aug 6, 8:36 PM
Unknown Object (File)
Thu, Aug 6, 8:36 PM
Unknown Object (File)
Thu, Aug 6, 8:36 PM
Unknown Object (File)
Thu, Aug 6, 8:35 PM
Unknown Object (File)
Wed, Aug 5, 11:38 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