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)
Fri, Aug 7, 8:48 PM
Unknown Object (File)
Fri, Aug 7, 4:29 PM
Unknown Object (File)
Thu, Aug 6, 2:55 PM
Unknown Object (File)
Thu, Aug 6, 12:00 PM
Unknown Object (File)
Wed, Aug 5, 9:15 AM
Unknown Object (File)
Sun, Jul 26, 10:08 PM
Unknown Object (File)
Fri, Jul 24, 4:12 PM
Unknown Object (File)
Jul 18 2026, 8:53 PM
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