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
F115415604: D43797.diff
Wed, Apr 23, 2:06 PM
Unknown Object (File)
Tue, Apr 1, 10:43 AM
Unknown Object (File)
Feb 22 2025, 3:07 PM
Unknown Object (File)
Feb 12 2025, 9:38 AM
Unknown Object (File)
Feb 6 2025, 8:19 PM
Unknown Object (File)
Jan 28 2025, 11:47 PM
Unknown Object (File)
Jan 28 2025, 9:19 AM
Unknown Object (File)
Jan 13 2025, 4:31 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 Passed
Unit
No Test Coverage
Build Status
Buildable 56170
Build 53058: arc lint + arc unit

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.