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)
Sat, Jun 13, 8:47 PM
Unknown Object (File)
Fri, Jun 5, 12:11 AM
Unknown Object (File)
Thu, Jun 4, 10:41 AM
Unknown Object (File)
Mon, May 18, 6:47 PM
Unknown Object (File)
Sun, May 17, 11:55 AM
Unknown Object (File)
Sun, May 17, 3:38 AM
Unknown Object (File)
May 14 2026, 1:31 PM
Unknown Object (File)
May 14 2026, 9: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