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
F162631452: D52868.diff
Wed, Jul 15, 6:47 AM
F162631451: D52868.diff
Wed, Jul 15, 6:47 AM
Unknown Object (File)
Sat, Jul 11, 11:56 AM
Unknown Object (File)
Mon, Jul 6, 3:18 AM
Unknown Object (File)
Sat, Jul 4, 11:32 AM
Unknown Object (File)
Sat, Jun 27, 3:32 AM
Unknown Object (File)
Mon, Jun 22, 6:00 PM
Unknown Object (File)
Sun, Jun 21, 10:06 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