Article View: linux.kernel.netdev
Article #13593Re: [PATCH net] net: mvpp2: fix double free of the replaced rule in mvpp2_ethtool_cls_rule_ins()
From: patchwork-bot+netdevbpf
Date: Tue, 10 Nov 2026 02:55
Date: Tue, 10 Nov 2026 02:55
25 lines
8756 bytes
8756 bytes
Hello:
This patch was applied to netdev/net-next.git (main)
by Jakub Kicinski <kuba@kernel.org>:
On Wed, 4 Nov 2026 13:02:23 +0100 you wrote:
> When a rule already exists at the requested location,
> mvpp2_ethtool_cls_rule_ins() removes it from the hardware and frees it,
> but leaves port->rfs_rules[loc] pointing at the freed structure. If
> inserting the new rule then fails, the next rule insertion will free the
> rule once again.
>
> Clear the slot as soon as the old rule has been freed.
>
> [...]
Here is the summary with links:
- [net] net: mvpp2: fix double free of the replaced rule in mvpp2_ethtool_cls_rule_ins()
https://git.kernel.org/netdev/net-next/c/d26955e57475
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
Technical Details
Message-ID:
<179427931767.3612825.5572628668959345425.git-patchwork-notify@kernel.org>Path:
mbox-mo1.pugleaf.net!news-lax.pugleaf.net!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-359803-linux-kernel-netdev=dewy.ruReferences:
<20261104120225.28377-2-fourier.thomas@gmail.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!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-359803-linux-kernel-netdev=dewy.ru From: patchwork-bot+netdevbpf@kernel.org Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net] net: mvpp2: fix double free of the replaced rule in mvpp2_ethtool_cls_rule_ins() Date: Tue, 10 Nov 2026 02:55:17 +0000 Organization: Usenet Network Message-ID: <179427931767.3612825.5572628668959345425.git-patchwork-notify@kernel.org> References: <20261104120225.28377-2-fourier.thomas@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Injection-Info: usenet.network; logging-data="507008"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:LvB1lTipK9gmm5RmicjvntngaBk= sha256:1i9wVwtOeeBOq9y4Xn7ZGe4tIjSXNXC8KvnWmtN2Hkk= sha1:iN4ND7WvfrU9j/8Sfvmor865NXY= sha256:UGNMWAoGzWUHcZdh4pMgXgbW4tm8ncGb4nd/zpdZQNM= 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 375A51139FF; Tue, 10 Nov 2026 06:03:09 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.501 X-Spam-Status: No, score=-3.501 tagged_above=-9999 required=6.31 tests=[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 xGvmaPpxKcGn; Tue, 10 Nov 2026 06:03:05 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.232.135.74; helo=sto.lore.kernel.org; envelope-from=netdev+bounces-359803-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 265571139E6; Tue, 10 Nov 2026 06:02:57 +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 DEAF2640A95; Tue, 10 Nov 2026 02:57:56 +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=1794279325; b=Q0vWXeDyv8HkNb1pTj82xtegBKguhETGz+45vsM7vd7m+SrQON78bu7hYaEfgb/4ZGSo wb37yOcozn9sUBHnqdq9dZvhP+HjOa0mzqGG7BV8BO0SPf8msQCE8NYWBYXF5XK0Viu+0 SBBt/abj9NLeqe4OD3WbZdGkCLRqkdyYDilzrhorDphRa7Uo1vO5vRJmar5nqg2xZizkl /RAS9uVqNB+5O/s8kgQtV84W3pJ2v2nUY4vSQJ7+BM0EF7mutbp9ZPIY6coFAkqO2fZht evZLLRgBxRr4fBqNsw4dNnhZvmhz8rxcO+wo5n6037N3VYSzxjvjfkypYYonV3XhG4A== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794279325; 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=1fxCtwQTd6ybLLHw7FRW0GtCuwc3+kDiS0LRiRdpFYk=; b=HmT5Y2rwvc9BCCRkPw7MZBCRoLaKOW9cYZ0nVDTcM3kEVqfM7y0jokcPTRifHV0Uzad2 eMV7LVCbRW26So/a2dpPUQy3//Vcc3B8sIK9AGD/m8ijbvQiqSLRcPCQvmXqLKRRzRtXX nKP93l+UHyvvlObLnm2ejPV6eU0q9SQxKiUd/0dTuSBMHX/3y87h1uBDAHZBTEe8+d5pN z2TWCtLCOheUk+sQtNMeOX0GG81fkiSUKcQW6/jCfgYsrab8TIKgi1kMTk9ZTbtxEX+cW 42ef61Ru3MKuPxcadRRDLo/yCQBzhmqYz/UJuXx0ugwh+3vunTKgBLmDve3fI8gRDWg== 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=LDuhEJLA; 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 6DE89606C6FA; Tue, 10 Nov 2026 02:55:25 +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=LDuhEJLA 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=1794279319; b=VlJi/QulnN/PXsYWrxxJjayi9M2wxoY4vVNIBD0cGAyClMMIwvs99+2xtN20xl9sA8S2 0q3odIxat2AqvRwRsmm0eRahB2XwcOEhae427+3oARM0oEsC6gOGAiI7SxBZSLWPtWE/t CRGidDctWT1mESdVWfnV3tgVHfNyT8KnvrgSGx+4m4Z2XLgrncColq9CSGweuBjtB19tX ImV1FcgsZ6BanEUHg/f14sOQUS9d+3wDfwz6sEqd/UGgb3r4NqBagbV8m8ON9S3rRVh8b 8e7dX/ZRTzh80r82F6IXyHplLZwtTjIMMU1RUq1bWEq2FPjrp9QSqCmcTgQw7LIptSA== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794279319; h=Received:DKIM-Signature:Received:Content-Type:MIME-Version: Content-Transfer-Encoding:Subject:From:Message-Id:Date:References: In-Reply-To:To:Cc; bh=1fxCtwQTd6ybLLHw7FRW0GtCuwc3+kDiS0LRiRdpFYk=; b=DCj7bWUHVxRd0+nRgt3Tm+qUeLBhQnXXVeOFKLwq6M+639Oj5d6QruVTKR9eVrDra5sv To1tYT9RLyUCypmJ/g10cVmfUX9Fu2sx6D+wHEHHISz5RW0umRycDoT9WR0rEM/QLOQsM Iqi9lRgPAF/56IKP3UFMtNCI2rDrJYIACcvYQmk7J9ChAm5V72rZbWUleFrlD8WkkTLGS B7Lh2ewtPZIXR97rsq+r3URDwc2Eg8ivkOPW4lLbospDoZUlPAxYodSM7/1KU5I12fGQP xXvnYbMcHvUVqadHgNjdulFDw2PDcFAnStMrzaBTeQsfvM7XFfaJOGHRltTowSYZ6Hg== 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=LDuhEJLA; 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 4FC3F606BAE6; Tue, 10 Nov 2026 02:55:19 +0000 (UTC) X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 297011F008A3; Tue, 10 Nov 2026 02:55:19 +0000 (UTC) X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1794279319; bh=1fxCtwQTd6ybLLHw7FRW0GtCuwc3+kDiS0LRiRdpFYk=; h=Subject:From:Date:References:In-Reply-To:To:Cc; b=LDuhEJLA3Oh2FDg0+hrlMusVmWjNti0kjWi/a0hzL/7bB6bOSZx6dgbn0bh8uu4tD lk9uV2UYQrxFA3uPHwU+25UoVKoXIb/Ub/3g8vHk1qR/fJEEbKvmGJnq7toVBphgrv IR6aVuUYikVCBXdNSkIw/kYB91cgCFHZcOarm1c+PpxMenhZVzspa0LKOCFUixRGuk R+GNfh9hMbDWTGN3Hv7W5AFGF3dUx607A+HSHXjFR0WfGMcEmccwTFB5USTIwK9uZp Hu25ysOw/2ezCsmysPX8MfAPYbvDPYfivtjAJqzHq+IKqqOtsGGqmOpQ/DuQ6dmY1H 2ctUD+DMrRSvw== 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 20FAB391AFCB; Tue, 10 Nov 2026 02:55:19 +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: <20261104120225.28377-2-fourier.thomas@gmail.com> X-Cc: marcin.s.wojtas@gmail.com, linux@armlinux.org.uk, andrew+netdev@lunn.ch, davem@davemloft.net, edumazet@kernel.org, kuba@kernel.org, pabeni@redhat.com, maxime.chevallier@bootlin.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org