Article View: linux.kernel.netdev
Article #5675Re: [PATCH v1] octeontx2: Fix use-after-free of qos node in delete path
From: patchwork-bot+netdevbpf
Date: Tue, 20 Oct 2026 19:40
Date: Tue, 20 Oct 2026 19:40
26 lines
8808 bytes
8808 bytes
Hello:
This patch was applied to netdev/net-next.git (main)
by Jakub Kicinski <kuba@kernel.org>:
On Wed, 14 Oct 2026 14:42:04 +0800 you wrote:
> hash_del_rcu() only unlinks the node; a reader that already holds the
> bucket iterator still uses the node. The immediate kfree() has no
> grace period, so a concurrent transmit on a socket whose skb priority
> carries the deleted classid reads node->classid / node->qid from freed
> memory (use-after-free in the softirq transmit path).
>
> Fix this by calling synchronize_net() before the node is freed, as
> mlx5e does.
>
> [...]
Here is the summary with links:
- [v1] octeontx2: Fix use-after-free of qos node in delete path
https://git.kernel.org/netdev/net-next/c/dcaa62196489
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
Technical Details
Message-ID:
<179252522352.176933.11656341625613809683.git-patchwork-notify@kernel.org>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-349521-linux-kernel-netdev=dewy.ruReferences:
<20261014064204.291688-1-18983559317@163.com>Show 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-349521-linux-kernel-netdev=dewy.ru From: patchwork-bot+netdevbpf@kernel.org Newsgroups: linux.kernel.netdev Subject: Re: [PATCH v1] octeontx2: Fix use-after-free of qos node in delete path Date: Tue, 20 Oct 2026 19:40:23 +0000 Organization: Usenet Network Message-ID: <179252522352.176933.11656341625613809683.git-patchwork-notify@kernel.org> References: <20261014064204.291688-1-18983559317@163.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Injection-Info: usenet.network; logging-data="3939230"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:+XE2OkhuobEZATUq5JH1u8mwE4E= sha256:UWvE04wXvVU1MKnMupoWB2e+Ve6eiW2PJ4B7lYQZUzs= sha1:2G+mxhJtqR3m4RnhA5skfif4hnQ= sha256:nOSnBXBU/NK46AgE5Ck2qOzFAboiv7sG6flgBkSc8SY= 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 E1625110E13; Tue, 20 Oct 2026 22:41:54 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.729 X-Spam-Status: No, score=-3.729 tagged_above=-9999 required=6.31 tests=[DCC_REPUT_70_89=0.1, DKIMWL_WL_HIGH=-0.329, 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 Sd6RZbvlJ5zr; Tue, 20 Oct 2026 22:41:52 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=netdev+bounces-349521-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 tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114]) by mail.dewy.ru (Postfix) with ESMTPS id B5CCC110E0F; Tue, 20 Oct 2026 22:41:43 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by tor.lore.kernel.org (Postfix) with ESMTP id CBDAF36283; Tue, 20 Oct 2026 19:40:36 +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=1792525236; b=VirusFcN0ledDpmmMj9xB3Y/8l5H0ZLnhYvuP+6yAVMpXlrk13dbTjVKDCaa14/o8um1 ertlvPzUIC1uh7o6b5oClisQTdf8WNO9DgbkyRx6gObO2bymB4B0X14sGB7fENn6ZAiNY HjnG4IqMM83CN4ULkErC+u+2G34reYqPFT/DH4OnmIUDuBY7A0hMCg5Z+RXobn/i7vbet FgEYlmstmv1IwBmRu87AkM6UnMnmOg7Cg/7737qFm8VtzjfoQwLxowuRI/PuCaQ6gBPHT KR0mDZIBqbSqpkhbA97Yx9VJDPlEKyqv4pPaPAqG9J/7aQgrkrcELYB7AE/YP3hJfTQ== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1792525236; 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=VjkIoPeWPAXMhlvnnZV1gfCgw2epxC03CL7v+ulw3n0=; b=y9VJDT0zhevf7pJtAKj+1LRHhwF+NDz5wZdOnj8nhhBkk7nyEVaw1eHeEEWfkgdfHVoF CR19R4vThajdKerH2ubn1d6GE79NFGruuYmbsd1V9IzpX0yOTxvFHdKVYERa4xtm1XxzR muc6P65YkkXS2crcUjbdchexYL3n+fFKKC7QP/M3GpNKEttpcMloV3ra8a1q/VVQGZqsh J+j+Af8eFnYhBznpJ8W9BVv+M32Wy8KJ5jKHzTcPnwwlRvMjxW/bBsN5K3jTZFzxrrUjz D+1IG4pqBdTJxXNmjPSdhhfQgp41c9/tHNWl+HvnkHN0P78ptbLQk7LLSGhcON1wLfw== 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=Y5TejP4a; 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 9164B606A31C; Tue, 20 Oct 2026 19:40:36 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=Y5TejP4a 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=1792525225; b=tLUzmIsCaftFC39YWjqlzGdGTMg4FJmVTG/PMhgXs6EnrG2xCkGp3Sh7t/2n0m5geuuw a7+gmRLv2HSUoEEXEo/H8kyyESRTg42lWGlfZ1HbDUER49V4dytDn3A/mtTlfPVKgB1OA M48UL0aNf1gipiaE56B4UvrX+8x9VRfEHwa0vH7pEC7ZQ5pVTLXXi+DQnZZB64CSvhYsB 4QLxMyaR1uvNVLVvM8OIiv87uS9unNYZctluAWT8ivBl6zkbNOXQbdS4gxObDApvsI2oe ZvxZ9o4Bjq8mO/Skivvzy+Ei6vkG0oS83fo58FuL0KAzV3Kq7NTq64Eq74clkcxG9iw== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1792525225; h=Received:DKIM-Signature:Received:Content-Type:MIME-Version: Content-Transfer-Encoding:Subject:From:Message-Id:Date:References: In-Reply-To:To:Cc; bh=VjkIoPeWPAXMhlvnnZV1gfCgw2epxC03CL7v+ulw3n0=; b=l879ypP5alkq0+DIJ7nX+VvfIzbQk31S7U0xpxLOYbHymx9FhyIlUhVlFfexJTWKiC2c +a34mnxLlQ5g65YK7GovjBVbIpRsocoFPYzz8RTQoECAGh6dKh4mtXQC7G43RY950CFoB SYh6gpGHN5Yg1ODaWLNr9h6DyD+GM1d+NBauj4KBwrCEe9t7DWMepY/f6MZxLqgiU1JvS nux9MSyMyKN4geUSWrhM567yCKqntby1E0O/IdkXC4EL8vXbSFD0FLRnlGkzZxorf/l5h mc3+1qyciXDAg0DoL3nhmHFtdsfKAl/unBJGPl6HGdiYTrqUg4O1ZGMXuR0XI4uVcww== 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=Y5TejP4a; 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 713FA606A31A; Tue, 20 Oct 2026 19:40:25 +0000 (UTC) X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 09ABB1F000CA; Tue, 20 Oct 2026 19:40:25 +0000 (UTC) X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1792525225; bh=VjkIoPeWPAXMhlvnnZV1gfCgw2epxC03CL7v+ulw3n0=; h=Subject:From:Date:References:In-Reply-To:To:Cc; b=Y5TejP4arY9F7E60DNfOwhIbrAemzQ4MbTxmQ1nctzA5IFTpbwHlfmGbdN5z9Jk60 uW/HyexkrBc0Tfd8Vn1EW8Zdx/3iOuVVr5c3jJvTTSCHa8mCbLsemS9CSt99l2BWRr CVIVM0wiGOLxMjaEEqrX5zkz3UDsdP3JgHhVbND6xB6pJB/HcfFsSJa6jzFqlzBqsC XjMzCLsZSBIMet32auHucRn187rGFjE91NOr73Qt4KirkFqSg48UGk9Bf2nkMiWbHI 1SgC3NwMOy8mNOEscu24ZOBK/O/3gpjo8WhIb4QUdIV1oFquvtvTb9iv+jiHb13pqW /lMHXnvtFNeGw== 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 F14B43809A09; Tue, 20 Oct 2026 19:40:24 +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: <20261014064204.291688-1-18983559317@163.com> X-Cc: sgoutham@marvell.com, gakula@marvell.com, rkannoth@marvell.com, sbhatta@marvell.com, bbhushan2@marvell.com, andrew+netdev@lunn.ch, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org