Article View: linux.kernel.netdev
Article #583[PATCH net-next v3 0/3] tcp: fix a few divide-by-zero in congestion control modules
From: Jiayuan Chen
Date: Thu, 08 Oct 2026 09:26
Date: Thu, 08 Oct 2026 09:26
30 lines
6657 bytes
6657 bytes
Patch 1 and 2 were reported by VEGA <vega@nebusec.ai>. 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/ 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/ 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
Technical Details
Message-ID:
<20261008092641.140777-1-jiayuan.chen@linux.dev>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-342859-linux-kernel-netdev=dewy.ruShow Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-342859-linux-kernel-netdev=dewy.ru From: jiayuan.chen@linux.dev (Jiayuan Chen) Newsgroups: linux.kernel.netdev Subject: [PATCH net-next v3 0/3] tcp: fix a few divide-by-zero in congestion control modules Date: Thu, 8 Oct 2026 17:26:33 +0800 Organization: Usenet Network Message-ID: <20261008092641.140777-1-jiayuan.chen@linux.dev> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Injection-Info: usenet.network; logging-data="845975"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:DriHEwWETO8I8pRrAZyvsFOzk3M= sha256:ZFEkPmnk0grDkfcYmF0afeP+fvrOp5ORIJxc8iawsw8= sha1:4XgXf32M9QHuxZ2CzBCtCPljTm4= sha256:IEmVpxRBiHyyl/mie6FmMofEm/we8GxOKjdzAIv+OUk= List-ID: <netdev.vger.kernel.org> X-Mailpost-Empty-Hdrs: X-Spam-Level X-Received: from localhost (localhost [127.0.0.1]) by mail.dewy.ru (Postfix) with ESMTP id 6CD4510F371; Thu, 8 Oct 2026 12:38:33 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -2.05 X-Spam-Status: No, score=-2.05 tagged_above=-9999 required=6.31 tests=[DCC_REPUT_70_89=0.1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.249, HK_RANDOM_FROM=1, MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (1024-bit key) header.d=linux.dev X-Received: from mail.dewy.ru ([127.0.0.1]) by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ElZSarERs2qp; Thu, 8 Oct 2026 12:38:29 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-342859-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=linux.dev X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10]) by mail.dewy.ru (Postfix) with ESMTPS id E041310F338; Thu, 8 Oct 2026 12:38:23 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.90.174.1]) by sea.lore.kernel.org (Postfix) with ESMTP id 9550B3F155; Thu, 8 Oct 2026 09:26:59 +0000 (UTC) X-Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1DCF93E0255; Thu, 8 Oct 2026 09:26:59 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="whPFHCmE" X-Received: from mta1.migadu.com (out-115.mta1.migadu.com [95.215.58.115]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3BB554772BE for <netdev@vger.kernel.org>; Thu, 8 Oct 2026 09:26:52 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=95.215.58.115 X-ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791451619; cv=none; b=bPHGpSc/Gi5ewmoA25Jvz/DrMhCTvklR/z1TvyzJplaq7ZS3q4BSLs0KQggb5HYyt9lcsD86+enPpskVC804CXtDv5D2qX7L4qnATyEyKZw9iLxnVyqt6pit3/yQpjSscEeRLEvy2tdHwVBt//b9BPHwQaiOv4lF2qeDKgZ1evE= X-ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791451619; c=relaxed/simple; bh=Y1rf2j04YK4K3tregMLbbNu8jvv63q8HotPNJjCj6lQ=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=dU/naK52KmlzKMciaslOclTteZT5ml9ieHWRpTU4G1NBWXPe3xjv0zmAc+X5uG1fFSRFdw4P1bLrIspRuWhLri2WhXIEJfPG1/ZqnrIFhQ4+ybRVZLpsjOaIt7saKsv6YSvRXk7dpDMTM6fSkQIrf5JY69N2cPWo14Z+o5OnAcM= X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=whPFHCmE; arc=none smtp.client-ip=95.215.58.115 X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev X-Envelope-To: netdev@vger.kernel.org X-DKIM-Signature: a=rsa-sha256; bh=Y1rf2j04YK4K3tregMLbbNu8jvv63q8HotPNJjCj6lQ=; c=simple/simple; d=linux.dev; h=from:to:subject:date:message-id:mime-version:content-type; s=key1; t=1791451611; v=1; x=1792056411; b=whPFHCmEUwetvzBe7QSNGl3M/wiBvESnD4K2d/ZWz0ZIIRb/W1kJEeU0n4y+5h92aiUyaa5L +gT2/hU0DqfdzXM6WEmDzusi6BhmYUiu8w4w/+Sfzt7Y7zEk8447SnFnEUK3VypGtEo8fdSkhay xMc76MG0pt3dh9iTQzQhO+RU= X-Envelope-To: netdev@vger.kernel.org X-Received: by smtp.migadu.com with ESMTPS id 71b16418b4e1fdce; Thu, 08 Oct 2026 09:26:51 +0000 X-Mizu-Trace-ID: 71b16418b4e1fdce X-Migadu-Flow: FLOW_OUT X-Cc: Jiayuan Chen <jiayuan.chen@linux.dev>, Eric Dumazet <edumazet@google.com>, Neal Cardwell <ncardwell@google.com>, Kuniyuki Iwashima <kuniyu@google.com>, "David S. Miller" <davem@davemloft.net>, Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>, Simon Horman <horms@kernel.org>, Stephen Hemminger <stephen@networkplumber.org>, linux-kernel@vger.kernel.org X-Mailer: git-send-email 2.43.0 X-Precedence: bulk X-Mailing-List: netdev@vger.kernel.org X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org> X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org>