Page MenuHomeFreeBSD

tcp: improve credential handling in syncache
ClosedPublic

Authored by tuexen on Oct 27 2025, 6:01 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Apr 23, 10:58 PM
Unknown Object (File)
Tue, Apr 21, 2:55 AM
Unknown Object (File)
Mon, Apr 20, 6:45 PM
Unknown Object (File)
Mon, Apr 6, 6:25 PM
Unknown Object (File)
Mon, Apr 6, 3:25 PM
Unknown Object (File)
Sun, Apr 5, 3:02 AM
Unknown Object (File)
Sat, Apr 4, 11:48 AM
Unknown Object (File)
Mon, Mar 30, 4:23 PM

Details

Summary

When adding a syncache entry, take a reference count of the credentials while the inp is still locked.
This fixes an issue introduced in D46793.
Thanks to markj@ to providing a hint to the root cause and to David Marker for reporting the issue.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable