Article View: linux.kernel.netdev
Article #6246Re: [PATCH net v2 0/2] ionic: fix port_info lifetime bugs
From: patchwork-bot+netdevbpf
Date: Thu, 22 Oct 2026 00:30
Date: Thu, 22 Oct 2026 00:30
29 lines
9007 bytes
9007 bytes
Hello:
This series was applied to netdev/net-next.git (main)
by Jakub Kicinski <kuba@kernel.org>:
On Thu, 15 Oct 2026 16:03:29 -0700 you wrote:
> Two fixes for the lifetime of the ionic port_info DMA buffer.
>
> Patch 1 fixes a use-after-free. ionic_port_init() allocates port_info
> only when the pointer is NULL, but its error path frees the buffer
> unconditionally. On the firmware recovery paths,
> ionic_lif_handle_fw_up() and ionic_reset_done(), the buffer belongs to
> an earlier successful init, so a failed PORT_INIT frees it under any
> ethtool op that is already reading it. The error path now frees only
> what the same call allocated.
>
> [...]
Here is the summary with links:
- [net,v2,1/2] ionic: fix port_info use-after-free on firmware recovery
https://git.kernel.org/netdev/net-next/c/d90d1a768b3b
- [net,v2,2/2] ionic: free port_info when probe fails after the port is set up
https://git.kernel.org/netdev/net-next/c/4e15e0a941ce
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
Technical Details
Message-ID:
<179262902262.1378903.17959804366477138316.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-350325-linux-kernel-netdev=dewy.ruReferences:
<20261015-ionic-port-info-lifetime-v2-0-57232013fd79@amd.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-350325-linux-kernel-netdev=dewy.ru From: patchwork-bot+netdevbpf@kernel.org Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net v2 0/2] ionic: fix port_info lifetime bugs Date: Thu, 22 Oct 2026 00:30:22 +0000 Organization: Usenet Network Message-ID: <179262902262.1378903.17959804366477138316.git-patchwork-notify@kernel.org> References: <20261015-ionic-port-info-lifetime-v2-0-57232013fd79@amd.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Injection-Info: usenet.network; logging-data="94924"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:MLPAibdOXueYP5oDUltR5TOfm5I= sha256:6g+jU8kmEMg6oTyxP/l1Bhp8YIJmlllgUZczjGFvUfc= sha1:/wDQ9TOTneQAoZreuHo2Wj2quKE= sha256:agpBF/v3sHfxRKT4T38zYDW6nEcun48eS/82/gT/fXg= 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 78A7A111167; Thu, 22 Oct 2026 03:32:01 +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 6iBwKIc1qIYe; Thu, 22 Oct 2026 03:31:58 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.232.135.74; helo=sto.lore.kernel.org; envelope-from=netdev+bounces-350325-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 998D911112C; Thu, 22 Oct 2026 03:31:50 +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 76B5C60E0B1; Thu, 22 Oct 2026 00:30:38 +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=1792629035; b=DKG4+IDWPNRLkXPEJSpbSp5zpOlJIuUwu7I76O7PUpqMUyHUMkLTeiAMwj6hwqjR9aPZ JxMZbt9AoFKfAX5W0Xm2ZZJ2vVt8l3nkYLYeR0d2t7ndTagSsQD2dpVUa2SV2Yhfhe3mu Fb3f7/GRIL3gGsUSETbKfWGLfuN9M2uM8Eh3ceZy4uHHQbMW4ZdF7RzNrLnXFqYBNS3zv K2rvuXDqWSOXeLx+auYORxIbAsu11p07P9gvzBDzw8nzu61HA9eHPObn/ySeD9xlER3Uq KPDy4OwPt5PE+SEtslxqF+XHEqf3l852+X5/UNnbh+LXkGB9c4enSHNRhowMs5foBLA== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1792629035; 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=em8Yw734Aiee0fgKvAc61E0pqQSrkUSzNQGy5AB+nfQ=; b=dGJdIvMkPW/WPFyre1FVopGrtUt6gaZJ/hORicZkcLJeLBiFYb6LKdiTbdfgrMdvcDkc 4VJUDovm0+ts4PbtLQNz16YSvK61OtKxvPkYfvrhV4yJmBEM69snh3M1jH0wlyTZd/KXU 6F47EiWgriQod1QP4YB5/6TTrImXAW2moxjIJW5b0iv3vAoh6LURlpZMjZ+9KE+8pcDCy vtEZKJlOkAIvG9LFAElkwriWND7FQX58Uh3ui71H0IYPEVwWYyTT55WlHqYzrg6y8Zi/v wQCZ83QkMoFKmdtkdWzbXPzV20Mj0Xbxq4LQKds/FVkC3/0+5HH+TqkkCRF5+OMHKHQ== 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=XYcJ1ZpF; 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 806B7606A31D; Thu, 22 Oct 2026 00:30:35 +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=XYcJ1ZpF 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=1792629024; b=hiNCsLT5TYzdAKGlzhGAEHgP84efU6IKgL4+yxeyPuZXWVg3jCpWvn0A1VbCRcc161ja ktzvVk2fu4ktEtJjwDhY9JdsRSwN/9OyvVNcUzHSNUokjcHyG4wvLM+yl7FUPXmeB4kde na8CimsyhgL405baBleAkbw5NLdkKI0D0VwgDYdTyCjk8tTJV5pQQuqwJdwLYPlW7yE5z qK1odOhYInWqfuPFW6vUkpMHe8KBx3w/oBwYOXx+CDf6vEbbTT2FC28GuNAbIT8GHImVS SHsoLWh4mjHiMvaZvUPLNbjMXPCU9GqSqvpsqsPuA5IYoMqYhdhFfyFqGZ9wcbQxXpw== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1792629024; h=Received:DKIM-Signature:Received:Content-Type:MIME-Version: Content-Transfer-Encoding:Subject:From:Message-Id:Date:References: In-Reply-To:To:Cc; bh=em8Yw734Aiee0fgKvAc61E0pqQSrkUSzNQGy5AB+nfQ=; b=qGLJ7HhYY9FGxtACNPQRVOsiFWoe9DD+d3+ysvRjE79eZkU4p+I3zeBJcc7AbYsFJpbu BZE8dLbT29wg6Z9OOUUSqdftqZqsw8SLM035ZHpe3/7y2+zDBF1L3UOPcQJzpIFhBWU5h k502tkcYG2fqi9q70hJaazX6QtSB6d1suIqVd2hKCPcxk3FRqfERQC+stJnQy5u3Af7BT x5lmkjSL0o15BU4PFu7VEW5IvqLOKrdytKl3jMbQBjCICHpgt16NtoETbBnm8TqZVVPnu CH8Jxnu6UOYC4ues+0EDDT3yrRjuBzeMovSnaBCll4NEkK4FVpZc1+M+lzwAPNGePVA== 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=XYcJ1ZpF; 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 628A9606A326 for <netdev@vger.kernel.org>; Thu, 22 Oct 2026 00:30:24 +0000 (UTC) X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 07B8B1F000C5; Thu, 22 Oct 2026 00:30:24 +0000 (UTC) X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1792629024; bh=em8Yw734Aiee0fgKvAc61E0pqQSrkUSzNQGy5AB+nfQ=; h=Subject:From:Date:References:In-Reply-To:To:Cc; b=XYcJ1ZpFIKflKFDHxFJYgFXTZb/gSpe1c/YAwBK1TqO7FzRGZOl6zIP+Czh1DpHQh N+6f6jt2s7XR9/nRY6SbbrQ6H/DptdXFMe6DpEBpzxGE7b3IcQXsBD1JsAd8XlKX+V 36ZY2CVZWPjl93bVHA57D4paMyFohzodn9xdXA75bdXHSwSsk8921svw/qwEj0of6h WFL7c3RtnzROkKx2sm9WdTI9YXgGjaXH48QGr1vDd4w6dCg646QFyV4zlfjYToS1AV EZwVEE7AoSEXAfn/yFL/uB1PNPl3CedgR4ABYrI12vqWsKvsBSwXG2iBSf6j+rTe7i FXLw8fp2FPArw== 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 F13F4380A963; Thu, 22 Oct 2026 00:30:23 +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: <20261015-ionic-port-info-lifetime-v2-0-57232013fd79@amd.com> X-Cc: netdev@vger.kernel.org, brett.creeley@amd.com, andrew+netdev@lunn.ch, davem@davemloft.net, kuba@kernel.org, pabeni@redhat.com, horms@kernel.org, nikhil.rao@amd.com, vadim.fedorenko@linux.dev, edumazet@kernel.org