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, Nov 10, 12:26 AM
Unknown Object (File)
Sun, Nov 2, 7:43 PM
Unknown Object (File)
Sun, Oct 26, 1:24 PM
Unknown Object (File)
Sat, Oct 25, 1:35 AM
Unknown Object (File)
Fri, Oct 17, 7:25 PM
Unknown Object (File)
Fri, Oct 17, 5:25 AM
Unknown Object (File)
Sep 30 2025, 3:31 AM
Unknown Object (File)
Sep 14 2025, 12:11 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