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
F159434560: D50897.diff
Sun, Jun 14, 1:25 AM
Unknown Object (File)
Fri, Jun 5, 5:00 AM
Unknown Object (File)
Tue, May 19, 7:04 AM
Unknown Object (File)
Mon, May 18, 2:31 AM
Unknown Object (File)
Mon, May 18, 2:30 AM
Unknown Object (File)
Mon, May 18, 2:30 AM
Unknown Object (File)
Mon, May 18, 2:24 AM
Unknown Object (File)
May 10 2026, 3:59 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