Article View: linux.kernel.netdev
Article #19111Re: [PATCH net-next v3] net/sched: cls_flow: avoid integer overflow in perturb_period
From: patchwork-bot+netdevbpf
Date: Thu, 19 Nov 2026 11:00
Date: Thu, 19 Nov 2026 11:00
27 lines
8802 bytes
8802 bytes
Hello:
This patch was applied to netdev/net-next.git (main)
by Paolo Abeni <pabeni@redhat.com>:
On Fri, 13 Nov 2026 10:48:02 +0800 you wrote:
> flow_change() calculates perturb_period by directly multiplying
> nla_get_u32(tb[TCA_FLOW_PERTURB]) by HZ, without any overflow
> protection. Since perturb_period is a u32, the multiplication
> overflows when the value from netlink exceeds UINT_MAX / HZ.
> The result can be an unexpectedly short period or even zero.
>
> # tc qdisc add dev lo clsact
> # tc filter add dev lo ingress protocol ip pref 1 handle 1 flow \
> hash keys src perturb 42949673 baseclass 1:10
>
> [...]
Here is the summary with links:
- [net-next,v3] net/sched: cls_flow: avoid integer overflow in perturb_period
https://git.kernel.org/netdev/net-next/c/042ca0604cbb
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
Technical Details
Message-ID:
<179508600902.3017313.12997293213535292238.git-patchwork-notify@kernel.org>Path:
mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-366962-linux-kernel-netdev=dewy.ruReferences:
<20261113024802.71680-1-taowei@kylinos.cn>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-366962-linux-kernel-netdev=dewy.ru From: patchwork-bot+netdevbpf@kernel.org Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net-next v3] net/sched: cls_flow: avoid integer overflow in perturb_period Date: Thu, 19 Nov 2026 11:00:09 +0000 Organization: Usenet Network Message-ID: <179508600902.3017313.12997293213535292238.git-patchwork-notify@kernel.org> References: <20261113024802.71680-1-taowei@kylinos.cn> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Injection-Info: usenet.network; logging-data="2854964"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:EKcRsU0Wva8lrX46W30gNWlE2q8= sha256:e3Fxr0awq3b+fvl+nvYSytm1akMIuX73ZNxOUrSw0NM= sha1:oHzG7OMjhCiAfM5uZ/rWrGWOzD0= sha256:i2Qh3DYgGuV/gQ/St+Rs+sJNcMb6P3mIhK27S4YoXjM= 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 8660C1155D9; Thu, 19 Nov 2026 14:00:52 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.401 X-Spam-Status: No, score=-3.401 tagged_above=-9999 required=6.31 tests=[DCC_REPUT_70_89=0.1, DKIMWL_WL_HIGH=-0.001, 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 QxbNSfLFhujf; Thu, 19 Nov 2026 14:00:48 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-366962-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 sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10]) by mail.dewy.ru (Postfix) with ESMTPS id 3F3A7115558; Thu, 19 Nov 2026 14:00:31 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by sea.lore.kernel.org (Postfix) with ESMTP id 1E0EF2A9F0B; Thu, 19 Nov 2026 11:00:17 +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=1795086017; b=GAjhHttl9c80vlC0RswY9hFuhm47Y6TBvqZusyx8/11CJSzMSAMbYNTfRw/XfMIm+6k5 gcSCr6ggivn3zBb5orwPzBp10YQ4crNT24hr8zqIHZBDzaVEJoA9HLrlyBBQcasQy1mpq Twzmy2oIT36xSTGr3KU/ODolmGw2PGw0y6M4Y5WohaM5kOAYpqxxdki9dYkpdm/y+Ki3v M2iUP6kMk5OFV0l1dto85aJz+r8jjF29miTx+EVShnJbtUbxnY3aQHTePNq5taCpQPRXa zHTWcxkuhenT4+xDU1rKfdAuLrsL5LXXNGvKpeVdcK/vAwbxhpnvUbh8g6payucMfeg== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795086017; 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=EOAIY6Mo48SyMkRcHZAR8iSPX2Jzj60lb3VnvqePsD4=; b=UEnAk6K8EwvjM93yJpbHC6BpQ8XULBTZw1Ih5qIOE25JV13CirqaQnUGygidtDVCQWuy CUn1UFLqblWGthYAeg9QBA4QqncciCst27CEr1/g098Th6cOMwQprp13pwZI5SkphiRr8 GrVDp7+Q1iid/AfITXR11FjkDDO5DCiAu2ytvVh1P9Dm62gjIl5y9WIdQngdGF4fXXfOT Qc2X6Xs+B+KIxkvu/yvEp8FIolXBgLs6OERozZbp9k+eduaxCB+mJ3/Mo81kxaHXuhT+a s6VyrA1pAHKy2i31HmE48g2sVZr7uR2OYRouWyGxPa+K+lt+TR6yiNsA8ihg3WD0V6Q== 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=SYBv1w5Q; 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 E9545606A326; Thu, 19 Nov 2026 11:00:16 +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=SYBv1w5Q 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=1795086011; b=kC0O0HOuJoY1RqAvz6MP2tBe88EyhsZB/gb8kGx9QsicuA2KkIDzDfKkQ3sN5L8SHUMQ oNOfmexwxI57yFmA5ZXAE6a61CmPk8qKrj4DybaeSjq0a5kr9r5dRGRaVNCRFYwJHYjFa ttbqsnacNLmX69K4YKQIhpJpsRzWE5TFtAQPvrUTezr/EzMsVGK5Z0GlsKNUZ8mWk5Ocv 2smFJfB7DKtjLN0JLakLP1dBsjtZh4J23WniSoDPC7mciUwYDBPl3E7qRyVovu4wGznGn Oi27lf66EtGngkymYa/RVmJqEbXy6SGkj8vgPot5IMtVlswFfVjUQGCo7X8kZJ084xg== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795086011; h=Received:DKIM-Signature:Received:Content-Type:MIME-Version: Content-Transfer-Encoding:Subject:From:Message-Id:Date:References: In-Reply-To:To:Cc; bh=EOAIY6Mo48SyMkRcHZAR8iSPX2Jzj60lb3VnvqePsD4=; b=DkKgJ72wXKatWV+BjV/Tdt33DLFrQzyhDqmbWQ7jkd3ihTe7/A2xXPzttRClXAXvBR+E kCNn8GmaHRji/tLh0foG22aJTB4j5/3JOKHlybAQS0y5FrJZfeMf5F1Luk7XsxPxrKTd4 lb1fFGykFer6x8Y45ybvhnqv18QXTCuNWgXElEx0hwA+wo1yyNqeSahLEyKijIFkO5XnN o2IVW/zPS/nyv5JI99vbCAkcgz+RhLYwwzgfcPsv+nlFIGYKzvH7UpMN7BKE3/B1EFPPR goNXemYaEwMW9YYgUKhg/jnA0cefXY0dueJiDCuC6JezqVuGD80o57RvO17M+ftlhFg== 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=SYBv1w5Q; 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 12CB4606A336; Thu, 19 Nov 2026 11:00:10 +0000 (UTC) X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8587A1F000C4; Thu, 19 Nov 2026 11:00:10 +0000 (UTC) X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1795086010; bh=EOAIY6Mo48SyMkRcHZAR8iSPX2Jzj60lb3VnvqePsD4=; h=Subject:From:Date:References:In-Reply-To:To:Cc; b=SYBv1w5QFWaru3fDGklHdAoXezEFJwHPUqB0DZxhOhpLF7cpX0e3HemuMJ30CQezR +24aTNmfHNFcDYWnnX/WspuYkOSBFRg4KSv40GgciG7Ne/yVPBtQZSmnCToYwysBZs zG79wqsi0KQZD7rwLLd3zIi4wb7NtDz1AyL9TlEVhZMIhfLB4y3XVTPK9qlfiGlMYD LdLZEqS539N2aN1YKlmyng/eUm1dezdNu73/Q0oAPhegMcsXa4+4im9SZNl1v3/QRK Kf1JZiYVpl4BQi8N2j7VztSQp6K0cLL9h+d/y2esr6E6BQ2XkcYCs5PsQIQdgmdLsT s1lw1VHz5Appg== 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 772553808210; Thu, 19 Nov 2026 11:00:10 +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: <20261113024802.71680-1-taowei@kylinos.cn> X-Cc: jhs@mojatatu.com, jiri@resnulli.us, davem@davemloft.net, edumazet@kernel.org, kuba@kernel.org, pabeni@redhat.com, horms@kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org