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)
Tue, Sep 30, 3:31 AM
Unknown Object (File)
Sun, Sep 14, 12:11 AM
Unknown Object (File)
Sep 12 2025, 7:00 AM
Unknown Object (File)
Sep 8 2025, 7:19 PM
Unknown Object (File)
Aug 31 2025, 8:18 AM
Unknown Object (File)
Aug 29 2025, 6:32 AM
Unknown Object (File)
Aug 12 2025, 10:32 PM
Unknown Object (File)
Aug 5 2025, 8:36 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