aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/scripts/Makefile.thinlto
diff options
context:
space:
mode:
authorJiayuan Chen <jiayuan.chen@linux.dev>2026-10-08 17:26:36 +0800
committerPaolo Abeni <pabeni@redhat.com>2026-10-13 15:17:55 +0200
commit7d52b5d16afc1cf8484ae321658e217a80e3ff4d (patch)
treeeb39790e4c7b5a13750633418c9cb44f6b077a26 /scripts/Makefile.thinlto
parenttcp_hybla: fix divide by zero on rtt0 == 0 (diff)
tcp_cubic: fix divide by zero and endless loop on bad module params
beta_scale and cube_factor are computed once at module init, and beta == 1024 or bic_scale == 0 is a divide by zero right there. Other out of range values give garbage: negative beta can make beta_scale 0, and bic_scale * 10 can overflow. Reject them. Read beta once, as it can be written through sysfs before the init function runs. A small beta also gives a small beta_scale, and (cwnd * beta_scale) >> 3 truncates to 0 for a tiny cwnd, so the TCP friendliness loop never ends. Rather than testing delta on every ACK, make sure beta_scale is at least 8 at init, so delta is >= 1 within the cwnd < 1 million packets limit this code is designed for. This slows the TCP friendly estimate for beta < 512, a backoff harder than Reno's 0.5, which is not a setting anyone should use. Fixes: df3271f3361b ("[TCP] BIC: CUBIC window growth (2.0)") Suggested-by: Eric Dumazet <edumazet@kernel.org> Reviewed-by: Eric Dumazet <edumazet@kernel.org> Signed-off-by: Jiayuan Chen <jiayuan.chen@linux.dev> Link: https://patch.msgid.link/20261008092641.140777-4-jiayuan.chen@linux.dev Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions