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)
Wed, Apr 15, 10:12 PM
Unknown Object (File)
Wed, Apr 15, 3:39 PM
Unknown Object (File)
Sun, Apr 5, 8:33 AM
Unknown Object (File)
Sat, Apr 4, 7:38 PM
Unknown Object (File)
Sat, Apr 4, 3:21 PM
Unknown Object (File)
Fri, Apr 3, 11:45 PM
Unknown Object (File)
Wed, Apr 1, 7:17 PM
Unknown Object (File)
Wed, Apr 1, 5:04 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