🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #26903

Re: [PATCH net v2] tcp: fix division by zero in tcp_cong_avoid_ai()

#26903
From: patchwork-bot+netdevbpf
Date: Fri, 04 Dec 2026 11:20
25 lines
8634 bytes
Hello:

This patch was applied to netdev/net.git (main)
by Paolo Abeni <pabeni@redhat.com>:

On Thu, 26 Nov 2026 22:11:50 +0530 you wrote:
> From: Mohammad Shahid <mdshahid03@gmail.com>
> 
> The tcp_cong_avoid_ai() function divides tp->snd_cwnd_cnt by
> the argument w without checking whether w is zero.
> 
> Since w is an unsigned value, the condition tp->snd_cwnd_cnt
> >= w does not prevent division by zero when w is zero.
> 
> [...]

Here is the summary with links:
  - [net,v2] tcp: fix division by zero in tcp_cong_avoid_ai()
    https://git.kernel.org/netdev/net/c/19727ac1afda

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
Technical Details
Message-ID: <179638320490.1029369.16489851508912917080.git-patchwork-notify@kernel.org>
Path: mbox-mo1.pugleaf.net!feed-eu-txt.newsdeef.eu!feed-eu-ch.newsdeef.eu!srl.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-377302-linux-kernel-netdev=dewy.ru
References: <20261126164150.8838-1-mdshahid03@gmail.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!feed-eu-txt.newsdeef.eu!feed-eu-ch.newsdeef.eu!srl.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-377302-linux-kernel-netdev=dewy.ru
From: patchwork-bot+netdevbpf@kernel.org
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net v2] tcp: fix division by zero in tcp_cong_avoid_ai()
Date: Fri, 04 Dec 2026 11:20:04 +0000
Organization: Usenet Network
Message-ID: <179638320490.1029369.16489851508912917080.git-patchwork-notify@kernel.org>
References: <20261126164150.8838-1-mdshahid03@gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
	logging-data="2749872"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:rAYFUV+8iDtG6d/JBq2WDPXDMUU= sha256:li9AJ0Jo/fy8m5moTXrhkW9zQcOAy1GJx+jVLGeCyBM=
	sha1:erztURgKrRjIhqLTLXuv7vwByUg= sha256:CZWwWfaWRHUqSGXBo1osohCbcVVShInkb0CxRt3UJeE=
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 1A876117BC7; Fri,  4 Dec 2026 14:20:22 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.642
X-Spam-Status: No, score=-3.642 tagged_above=-9999 required=6.31
	tests=[DKIMWL_WL_HIGH=-0.142, DKIM_SIGNED=0.1, DKIM_VALID=-0.1,
	DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, MAILING_LIST_MULTI=-1,
	RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001]
	autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key)
	header.d=kernel.org
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 JQn_4f9KqzuM;
	Fri,  4 Dec 2026 14:20:19 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.232.135.74; helo=sto.lore.kernel.org; envelope-from=netdev+bounces-377302-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=pass (p=quarantine dis=none) header.from=kernel.org
X-Received: from sto.lore.kernel.org (sto.lore.kernel.org [172.232.135.74])
	by mail.dewy.ru (Postfix) with ESMTPS id 108C2117BC5; Fri,  4 Dec 2026 14:20:11 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by sto.lore.kernel.org (Postfix) with ESMTP id 76E55603010; Fri,  4 Dec 2026 11:20:10 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass;
	t=1796383207;
	b=WzRVMAh2srYaTGiuU3M0hq+ExfwYRlRIgYZqyxa92ADiHcLug7jq8d+oXdqAzuQChyXT
	 gJEZd3XEeXK6IBQ+wb5s74e/UXfEXI3kjwU6nnZIwWuB0r1etyE/ReTnrRPFIAZgtniEA
	 nlc/EC+unhGORM/zTvpnt5T495GrieVFIiW8MkqQgpzUloDvRI9yuj5fremd6nj7Kg+1/
	 uGZIs6VuXFIxylZFGZ1ZkjSfuTLs4YLmWBXZ9Uk3thK7ZO8o9TBLlBSjhOTtEASXKEgLW
	 B8jUJwJL4ahHIAy6xnOiCwwHvMGFvXSKJ+4aE9YnktNchBaLXdMuWQVp6O/1anFe9vQ==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1796383207;
	h=X-Original-To:Received:Received:DKIM-Signature:Received:Content-Type:
	 X-Mailing-List:List-Id:List-Post:List-Help:List-Subscribe:
	 List-Unsubscribe:List-Owner:Precedence:MIME-Version:
	 Content-Transfer-Encoding:Subject:From:Message-Id:Date:References:
	 In-Reply-To:To:Cc;
	bh=gf+XXHiDvAYsxWwIyyIzgJhd25xvzQnB0DsbiOo15xE=;
	b=3AGBBqhQ2JnVvjbEM442PNwKS1AebOADXxNpqiBciWjw+BkjSuhpUp3MM1SGZ6bfr2Ld
	 P8klCxRHYNu0eX0q9wpt0RPoDmr5dKtidjtcGegdJ+x1GXrQ67L+Adycpp3uelsbHyJzC
	 ES1rpXPij98u30uhjtMh76eh+7Rkf5c0jsry51cv8wEBPwdPDz4eHe8HK6pt/kBUQQrNg
	 iAAPNEYA+ZzvBcoArWZSIrfTnp6mvStpo5Q3SmP7SosDkBOz6lkwEe98nRySyFGbsqMoc
	 LK+7Ou1HFbYvCKXWQWxTsg/pA5yvDsoYXSazYowa5xtMdLEK109gpPFHoC6txplQQuA==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=g4DsaiFI;
	arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-Received: from localhost.localdomain (localhost [127.0.0.1])
	by smtp.subspace.kernel.org (Postfix) with ESMTP id 6F457606A682;
	Fri,  4 Dec 2026 11:20:07 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=g4DsaiFI
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1796383206;
	b=QaPR/4x1tT8QYZwl2ssDaXk+BKEQqCNdKCu5Son25RfXuoRANc3YK4fWOlcQWtM7p85I
	 TFYj3vp4/tZEZhgw5if3q4iRXdshmI5j8t2PptqhmrDo1lS8eaYFs56QLOXQwIlNrDeAA
	 BiB5ar2xDGdt13fSQZQuhy4QAWW3MVWPH8GHwxm838pGfCM4KSsSukAJAZjF4933U6Mzk
	 wZ/ApjotJxrQpTN6YAuEDh5a26MLkEj/ST4PRhHMlsG6+KEARWa/atVLNPHpF6ptQ6RIM
	 hNvzOD2hSwyNta8ccBjLSg04+fznGx9AOmIug5D6HKsg1h4SxI7aJO/+HkZMe/PBP/A==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1796383206;
	h=Received:DKIM-Signature:Received:Content-Type:MIME-Version:
	 Content-Transfer-Encoding:Subject:From:Message-Id:Date:References:
	 In-Reply-To:To:Cc;
	bh=gf+XXHiDvAYsxWwIyyIzgJhd25xvzQnB0DsbiOo15xE=;
	b=aGI5+uVGOFRz1Se12PyuKBkxHQGZMe68JJ5Bk9ozIIkCb2SxNxHcGrhXPfQnOaDRFEs+
	 k4JiTfRusOAJGF0ssOcL5aHFHMuinv9fAT4ee8x8JtPUESDQ2vx8e46+M++Ymrc8yddoI
	 pej1baA0XBGzA1Q/7SVU1VRhY2M0BoXxlHNT6dVhkO0sIyxEEmkyABkg+gGmqEhtFdaeC
	 TMC0gjMqUEC+YVekgs2qp3SgGJYkoz40JnvRamj9MbYd3Ikciu5kQdvETcPJsJcZ1tZbg
	 Xa5dDZ6qRH+0/dcVS8uqT6IlaWGJeUDZc0sapqxtcT7yqL1qtLlqSrMPMkIP/AHAxsA==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; 
	dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=g4DsaiFI;
	arc=none smtp.remote-ip=100.103.45.18
X-Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature ECDSA (prime256v1))
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8DF83606A32F;
	Fri,  4 Dec 2026 11:20:06 +0000 (UTC)
X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 288FE1F000C2;
	Fri,  4 Dec 2026 11:20:06 +0000 (UTC)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org;
	s=k20260515; t=1796383206;
	bh=gf+XXHiDvAYsxWwIyyIzgJhd25xvzQnB0DsbiOo15xE=;
	h=Subject:From:Date:References:In-Reply-To:To:Cc;
	b=g4DsaiFIqMqRPMzmS8aRfPc/kh07aEuGdz5daK/kLWSQhp+Y1nc4uVfQlGeCs+r4Y
	 6vh/RnqczRP71P6rpCKJS84uA7ErPU2eKxFI8+vw23OG9NqjO2vwXakc4Z0R3vrDMU
	 ziJXnybijeNNtemS5th+u5UWL2qTWNWnn5XKlz/phEOMBL+0xuIdBuswqj22d4ZOV/
	 A8XjVVlbePkx8iBGdA7hqbRIrcukFYbwhbe8sOjbSIK1nfioxm8xJKhGgo36T+94w2
	 ZW/Dwqg/U72R/OTbdmBmFoimm1bpwaOkotO4uZaXbb5Lz8myiHLmoN4Y3fz827i+kr
	 MlJNe72zCqTHA==
X-Received: from [10.30.226.235] (localhost [IPv6:::1])
	by aws-us-west-2-korg-oddjob-rhel9-1.codeaurora.org (Postfix) with ESMTP id 1CAC23808236;
	Fri,  4 Dec 2026 11:20:06 +0000 (UTC)
X-Mailing-List: netdev@vger.kernel.org
X-List-Post: <mailto:netdev@vger.kernel.org>
X-List-Help: <mailto:netdev+help@vger.kernel.org>
X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org>
X-List-Owner: <mailto:netdev+owner@vger.kernel.org>
X-Precedence: list
X-In-Reply-To: <20261126164150.8838-1-mdshahid03@gmail.com>
X-Cc: netdev@vger.kernel.org, edumazet@kernel.org, ncardwell@google.com,
 kuniyu@google.com, davem@davemloft.net, kuba@kernel.org, pabeni@redhat.com,
 horms@kernel.org, linux-kernel@vger.kernel.org, bpf@vger.kernel.org,
 willemb@google.com