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
F103070446: D43797.diff
Wed, Nov 20, 1:17 PM
Unknown Object (File)
Thu, Nov 7, 9:21 AM
Unknown Object (File)
Tue, Nov 5, 9:51 AM
Unknown Object (File)
Thu, Oct 24, 4:17 AM
Unknown Object (File)
Oct 16 2024, 1:45 AM
Unknown Object (File)
Oct 14 2024, 5:30 PM
Unknown Object (File)
Oct 13 2024, 10:38 AM
Unknown Object (File)
Oct 13 2024, 1:33 AM

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 55870
Build 52759: 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.