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
F160772275: D50897.diff
Sat, Jun 27, 4:32 PM
Unknown Object (File)
Sun, Jun 21, 9:15 PM
Unknown Object (File)
Sun, Jun 14, 1:25 AM
Unknown Object (File)
Fri, Jun 5, 5:00 AM
Unknown Object (File)
May 19 2026, 7:04 AM
Unknown Object (File)
May 18 2026, 2:31 AM
Unknown Object (File)
May 18 2026, 2:30 AM
Unknown Object (File)
May 18 2026, 2:30 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