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, Sep 2, 7:10 AM
Unknown Object (File)
Tue, Sep 1, 10:37 PM
Unknown Object (File)
Mon, Aug 31, 7:15 AM
Unknown Object (File)
Sat, Aug 29, 10:27 PM
Unknown Object (File)
Sat, Aug 29, 10:25 PM
Unknown Object (File)
Fri, Aug 21, 3:32 PM
Unknown Object (File)
Fri, Aug 21, 3:16 PM
Unknown Object (File)
Sun, Aug 9, 10:33 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