Page MenuHomeFreeBSD

tcp: prevent div by zero in cc_htcp
ClosedPublic

Authored by rscheff on Feb 8 2024, 7:47 PM.
Tags
None
Referenced Files
Unknown Object (File)
Jun 28 2025, 6:07 AM
Unknown Object (File)
Jun 27 2025, 12:25 PM
Unknown Object (File)
Jun 25 2025, 5:30 PM
Unknown Object (File)
Jun 21 2025, 10:03 PM
Unknown Object (File)
Jun 18 2025, 6:15 PM
Unknown Object (File)
Jun 15 2025, 3:58 AM
Unknown Object (File)
Jun 13 2025, 7:03 PM
Unknown Object (File)
Jun 5 2025, 1:37 PM

Details

Summary

Make sure the divident is at least mss. While this
prevents subsequent division by zero, cwnd should
never be smaller than smss.

Bug: 276674

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

This patch is not fixing the root cause, but mitigating the consequences. I think I have an idea what the root cause is. Let me do some testing tomorrow....

max(div, 1) prior of outer division.

  • do max(1, div) instead max(maxseg, cwnd)/div
This revision is now accepted and ready to land.Feb 22 2024, 5:08 PM
This revision was automatically updated to reflect the committed changes.