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 30, 4:50 AM
Unknown Object (File)
Mon, Sep 28, 10:40 PM
Unknown Object (File)
Sun, Sep 27, 9:38 PM
Unknown Object (File)
Sun, Sep 20, 6:51 AM
Unknown Object (File)
Thu, Sep 17, 3:37 AM
Unknown Object (File)
Mon, Sep 14, 8:57 PM
Unknown Object (File)
Thu, Sep 10, 5:40 PM
Unknown Object (File)
Tue, Sep 8, 7:18 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