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 23, 4:12 AM
Unknown Object (File)
Feb 9 2026, 8:03 AM
Unknown Object (File)
Jan 30 2026, 9:36 PM
Unknown Object (File)
Jan 30 2026, 9:24 PM
Unknown Object (File)
Jan 30 2026, 7:57 PM
Unknown Object (File)
Jan 30 2026, 7:48 PM
Unknown Object (File)
Jan 30 2026, 3:34 AM
Unknown Object (File)
Jan 30 2026, 3:33 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