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