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)
Sat, Sep 5, 12:20 PM
Unknown Object (File)
Thu, Sep 3, 9:33 AM
Unknown Object (File)
Wed, Sep 2, 5:19 PM
Unknown Object (File)
Wed, Sep 2, 11:15 AM
Unknown Object (File)
Wed, Sep 2, 11:12 AM
Unknown Object (File)
Wed, Sep 2, 8:37 AM
Unknown Object (File)
Tue, Sep 1, 8:31 AM
Unknown Object (File)
Mon, Aug 31, 11:05 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