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
F171367728: D52868.id163375.diff
Thu, Sep 10, 5:40 PM
Unknown Object (File)
Tue, Sep 8, 7:18 AM
Unknown Object (File)
Sun, Sep 6, 7:36 AM
Unknown Object (File)
Sun, Sep 6, 2:16 AM
Unknown Object (File)
Fri, Sep 4, 6:58 AM
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

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