Thread (5 messages) 5 messages, 2 authors, 2d ago

[PATCH net-next v3 0/3] tcp: fix a few divide-by-zero in congestion control modules

flat view
WARM2d

From: Jiayuan Chen <jiayuan.chen@linux.dev>
Date: 2026-10-08 09:26:52
Also in: lkml

Revision v3 of 3 in this series.

Revisions (3)
  1. v1 [diff vs current]
  2. v2 [diff vs current]
  3. v3 current
Patch 1 and 2 were reported by VEGA [off-list ref].

Patch 3 was found while reviewing the other TCP congestion control
modules for the same kind of divide-by-zero on module parameters.

Target net-next since it is not a big problem.

v2 -> v3:
- Patch 3: spell out the divide by zero in the commit message (Kuba,
  Neal), read beta once with READ_ONCE() (Eric).
v2: https://lore.kernel.org/netdev/20261001112948.322463-1-jiayuan.chen@linux.dev/ (local)

v1 -> v2:
- Patch 3: rework as suggested by Eric.
- Patch 1 and 2: add Eric's Reviewed-by.
v1: https://lore.kernel.org/netdev/20260930100937.206377-1-jiayuan.chen@linux.dev/ (local)

Jiayuan Chen (3):
  tcp_bic: fix divide by zero on max_increment == 0
  tcp_hybla: fix divide by zero on rtt0 == 0
  tcp_cubic: fix divide by zero and endless loop on bad module params

 net/ipv4/tcp_bic.c   | 14 ++++++++++++--
 net/ipv4/tcp_cubic.c | 14 ++++++++++++--
 net/ipv4/tcp_hybla.c | 16 ++++++++++++++--
 3 files changed, 38 insertions(+), 6 deletions(-)

-- 
2.43.0
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help