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)
Mon, Mar 30, 4:23 PM
Unknown Object (File)
Mon, Mar 30, 11:02 AM
Unknown Object (File)
Sun, Mar 29, 5:59 PM
Unknown Object (File)
Wed, Mar 25, 8:20 AM
Unknown Object (File)
Thu, Mar 19, 7:13 AM
Unknown Object (File)
Mar 3 2026, 11:21 PM
Unknown Object (File)
Mar 2 2026, 8:27 PM
Unknown Object (File)
Mar 2 2026, 8:27 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