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)
Mon, Feb 23, 9:54 PM
Unknown Object (File)
Mon, Feb 23, 9:54 PM
Unknown Object (File)
Mon, Feb 23, 9:54 PM
Unknown Object (File)
Wed, Feb 18, 9:30 AM
Unknown Object (File)
Wed, Feb 18, 7:57 AM
Unknown Object (File)
Tue, Feb 17, 11:05 AM
Unknown Object (File)
Sat, Jan 31, 3:24 PM
Unknown Object (File)
Jan 26 2026, 12:49 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