From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mta1.migadu.com (out-161.mta1.migadu.com [95.215.58.161]) (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 C85653C109A for ; Wed, 30 Sep 2026 10:10:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=95.215.58.161 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790763008; cv=none; b=KONksIzgsOMlm/fpLVLKkwaWZ5HgYdGkzToAIcEHFvw9xopEoUIlesXVfAev70psOD3C7Y51t7udcXrE5OcSIqMZPyYqRBPwugwM90p0Hk828fGrqakkstYS/x53IotpJZHKVbFlBL9tx4FXv7Pgv4wYcHT7ZBhJsuHL0SaKmDY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790763008; c=relaxed/simple; bh=zzHGT2R3BW7k3aO3wSCDgQFJA2FVGOFJd9tzgfsyXjk=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=NlVyWPF12DP3TqaVWmV6Nz5CosFjPGGTWd8lJ8gWt6WV2DesQ8gdpZJRTBphrELEOgVYbR0q65lzKq3UWZ6O8WmWW9Q7kHFBxdvrOsRQK81YW/GyyIZu/w5tQPRqgw/bGDyh9+2PU5CHFBCP9zQWYzPVkvIG+dxTfW0314IDj7M= 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=GGBChICa; arc=none smtp.client-ip=95.215.58.161 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="GGBChICa" X-Envelope-To: netdev@vger.kernel.org DKIM-Signature: a=rsa-sha256; bh=zzHGT2R3BW7k3aO3wSCDgQFJA2FVGOFJd9tzgfsyXjk=; c=simple/simple; d=linux.dev; h=from:to:subject:date:message-id:mime-version:content-type; s=key1; t=1790763002; v=1; x=1791367802; b=GGBChICax6OE2bd0HXEBWdF89BawxIo7jzUZvQpAJa+dnVl+D1X2ytoaIr5zpcR5/c4y4QIF lUTWSlJK2p31Xs683/fg/q/t+2RTpVVCGkIxzrQo0+2JoIls9p9jtt53n+vb5Kt95u21piPj52z F9GJ1VxiFgSXj2VY7IPAEUQc= X-Envelope-To: netdev@vger.kernel.org Received: by smtp.migadu.com with ESMTPS id 31a91eec084b79f3; Wed, 30 Sep 2026 10:10:02 +0000 X-Mizu-Trace-ID: 31a91eec084b79f3 X-Migadu-Flow: FLOW_OUT From: Jiayuan Chen To: netdev@vger.kernel.org Cc: Jiayuan Chen , Eric Dumazet , Neal Cardwell , Kuniyuki Iwashima , "David S. Miller" , Jakub Kicinski , Paolo Abeni , Simon Horman , Stephen Hemminger , linux-kernel@vger.kernel.org Subject: [PATCH net-next 0/3] tcp: fix a few divide-by-zero in congestion control modules Date: Wed, 30 Sep 2026 18:09:29 +0800 Message-ID: <20260930100937.206377-1-jiayuan.chen@linux.dev> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Patch 1 and 2 were reported by VEGA . Patch 3 was found while reviewing the other TCP congestion control modules for the same kind of divide-by-zero on module parameters. 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 | 7 ++++++- net/ipv4/tcp_hybla.c | 16 ++++++++++++++-- 3 files changed, 32 insertions(+), 5 deletions(-) -- 2.43.0