Page MenuHomeFreeBSD

tcp: increase tcps_sc_recvcookie only in the syncache_expand()
ClosedPublic

Authored by glebius on Jun 17 2025, 4:16 AM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Feb 9, 8:03 AM
Unknown Object (File)
Fri, Jan 30, 9:36 PM
Unknown Object (File)
Fri, Jan 30, 9:24 PM
Unknown Object (File)
Fri, Jan 30, 7:57 PM
Unknown Object (File)
Fri, Jan 30, 7:48 PM
Unknown Object (File)
Fri, Jan 30, 3:34 AM
Unknown Object (File)
Fri, Jan 30, 3:33 AM
Unknown Object (File)
Fri, Jan 30, 3:26 AM
Subscribers

Details

Summary

The syncookie_expand() is called from syncookie_cmp() in INVARIANTS mode
to confirm that values calculated via syncookies mechanism match those
stored in the syncache entry. This creates a counting bug, that with
INVARIANTS every successful use of syncache also counts as use of a
syncookie.

Diff Detail

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