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
F156441059: D43797.id134023.diff
Wed, May 13, 5:32 PM
F156441035: D43797.id134847.diff
Wed, May 13, 5:32 PM
F156441026: D43797.id134929.diff
Wed, May 13, 5:31 PM
F156438574: D43797.diff
Wed, May 13, 5:13 PM
Unknown Object (File)
Mon, May 4, 8:43 AM
Unknown Object (File)
Mon, May 4, 6:27 AM
Unknown Object (File)
Sun, May 3, 8:39 AM
Unknown Object (File)
Thu, Apr 30, 6:49 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.