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, Jan 16, 1:52 AM
Unknown Object (File)
Wed, Jan 14, 2:23 AM
Unknown Object (File)
Tue, Jan 6, 1:22 PM
Unknown Object (File)
Sun, Dec 28, 5:05 AM
Unknown Object (File)
Dec 9 2025, 6:05 PM
Unknown Object (File)
Dec 4 2025, 5:42 AM
Unknown Object (File)
Nov 26 2025, 3:50 AM
Unknown Object (File)
Nov 24 2025, 4:21 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