Page MenuHomeFreeBSD

tcp: close two minor races with debug messages
ClosedPublic

Authored by jtl on Thu, Oct 2, 5:33 PM.
Tags
None
Referenced Files
F131978642: D52868.diff
Sun, Oct 12, 4:19 PM
Unknown Object (File)
Thu, Oct 9, 1:07 PM
Unknown Object (File)
Thu, Oct 9, 1:07 PM
Unknown Object (File)
Thu, Oct 9, 1:07 PM
Unknown Object (File)
Thu, Oct 9, 12:24 PM
Unknown Object (File)
Mon, Oct 6, 9:55 AM
Unknown Object (File)
Sat, Oct 4, 12:21 AM
Unknown Object (File)
Fri, Oct 3, 4:48 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