aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/scripts/Makefile.thinlto
diff options
context:
space:
mode:
authorJiayuan Chen <jiayuan.chen@linux.dev>2026-10-08 17:26:35 +0800
committerPaolo Abeni <pabeni@redhat.com>2026-10-13 15:17:55 +0200
commitf09eb97322b16a6f709a47599c95b62f786905f9 (patch)
treed27b0995a6a6a816579aeaa509bc25ea6f49dc06 /scripts/Makefile.thinlto
parenttcp_bic: fix divide by zero on max_increment == 0 (diff)
tcp_hybla: fix divide by zero on rtt0 == 0
rtt0 is the reference RTT in ms, so 0 makes no sense, and hybla_recalc_param() divides by it right from hybla_init(). Reject values below 1 when the parameter is written. Also cap it at U32_MAX / USEC_PER_MSEC, since rtt0 * USEC_PER_MSEC can wrap to 0 on 32-bit. An rtt0 above that (about 71 minutes) makes no sense anyway. Fixes: 835b3f0c0d7e ("[TCP]: Add TCP Hybla congestion control module.") Fixes: 740b0f1841f6 ("tcp: switch rtt estimations to usec resolution") Reported-by: VEGA <vega@nebusec.ai> Signed-off-by: Jiayuan Chen <jiayuan.chen@linux.dev> Reviewed-by: Eric Dumazet <edumazet@kernel.org> Link: https://patch.msgid.link/20261008092641.140777-3-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