🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #12806

Re: [PATCH] net: ixgbe: drop the SA reference if secpath_set() fails

#12806
From: Simon Horman
Date: Sun, 08 Nov 2026 17:28
40 lines
9527 bytes
On Sun, Nov 08, 2026 at 05:25:04PM +0000, Simon Horman wrote:
> On Sat, Nov 07, 2026 at 11:15:45AM +0000, netdev-bot+sashiko@kernel.org wrote:
> > Thank you for your contribution! Sashiko AI review found 1 potential
> > issue(s) to consider.
> > 
> > Critical: 0 · High: 0 (2) · Medium: 1 · Low: 0
> > 
> > If you believe none of the issues are legitimate, please reply to each
> > issue of Medium severity or higher and explain why the AI is wrong.
> > If any of them are legitimate and you plan to respin, please let patchwork
> > know by including "pw-bot: cr" as a separate line at the end of your reply
> > (one such reply per series is enough).
> > 
> > - [Medium] This patch fixes the SA reference leak in only one of the two
> >   copies of this Rx code.
> 
> I lean towards this being a pre-existing issue that can be handled
> separately from this patch. But I do note that taken at face-value
> it severely impacts the reliability of the  teardown path and the
> usefulness of this patch in practice.

Sorry! I responded to the wrong patch.

The correct response to the issue above is that yes, that is true,
but the requested patch has been posted already. It should have been
part of this patch-set. And the author should keep that in mind for
future patches.

> 
> > 
> > Pre-existing issues:
> > - [High] ixgbe_ipsec_del_sa() unlinks the rx_sa from the RCU hash table
> >   with hash_del_rcu(&rsa->hlist) (line 783) and then zeroes the same…
> > - [High] ixgbe_ipsec_find_rx_state() finds rsa->xs only under
> >   rcu_read_lock() and takes its reference with xfrm_state_hold(), which…
> > 
> > --
> 
> ...
Technical Details
Message-ID: <20261108172813.GI18859@horms.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-358813-linux-kernel-netdev=dewy.ru
References: <20261103100534.1310039-1-vulab@iscas.ac.cn> <179405014554.994134.10719290719575125531@kernel.org> <20261108172504.GH18859@horms.kernel.org>

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-358813-linux-kernel-netdev=dewy.ru
From: horms@kernel.org (Simon Horman)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH] net: ixgbe: drop the SA reference if secpath_set() fails
Date: Sun, 8 Nov 2026 17:28:13 +0000
Organization: Usenet Network
Message-ID: <20261108172813.GI18859@horms.kernel.org>
References: <20261103100534.1310039-1-vulab@iscas.ac.cn>
 <179405014554.994134.10719290719575125531@kernel.org>
 <20261108172504.GH18859@horms.kernel.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
	logging-data="166959"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:IwoVIZ9Xs7olS38jPcSgJ2zOniw= sha256:JL9e1DkMiiM3nuB5NB+6HaonXk8hmZ7FaJHiLViUsUo=
	sha1:IN+qzhXko1M1FctCMTxt4gGKGlM= sha256:vR7qiCya3KoeodIEEDpTaOEVIFUdBw5Lzh8rEJn/6P4=
Content-Disposition: inline
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 A2C351135CE; Sun,  8 Nov 2026 20:31:31 +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 jJb6WnKIAsMm;
	Sun,  8 Nov 2026 20:31:28 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-358813-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 59C4411356D; Sun,  8 Nov 2026 20:31:19 +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 C212068935; Sun,  8 Nov 2026 17:28:24 +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=1794158904;
	b=c4th85dZqj5iqVTXdy1JJDXMqYJdBHFWc8xMkHAbPKG+XLw9Pu39NH9gcejaLPtrhBNQ
	 SyO2/dnZFkPanfELd3oIsMZ6Tcahk8PpnLt20PqYvx4ZaY+Nhd4Caa+pjo0Z+DpfWKjhZ
	 WL9vfH44RxdS4xVQNTCvGfKKDbrvg3LF1hC7SueHDkfPaLlx8fCzq6eadgCO/DzEW+hrz
	 c3DTmH3IZ3FpOfe2ct9xrikqCvg/LGQQF6B89zNqkDbczu2vOFDmewR1mSN7JYvzBycJW
	 rc1ULgaM4nQMjW9gRPHuSMZeqSBf3xAwfDOUqppvbzpYVqRpztffaDhDqGUqYI+C8gw==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1794158904;
	h=X-Original-To:Received:Received:DKIM-Signature:Date:From:To:Cc:
	 Subject:Message-ID:References:X-Mailing-List:List-Id:List-Post:
	 List-Help:List-Subscribe:List-Unsubscribe:List-Owner:Precedence:
	 MIME-Version:Content-Type:Content-Disposition:
	 Content-Transfer-Encoding:In-Reply-To;
	bh=KSXUWRx0EDguLxJ+F0RcWQ7qU373XM5KCoNfJLe1Qho=;
	b=q3G8OuEBZhJbczp+seTEZcplZP3B7OjetuwVyvA6LM+FxGyeTtV0AmcWmZQRmgYRpQyb
	 iqcUBm4KksfgO0GsphbA6XGIaajuZwBsd9JKBJZODTJDL4PAR5ddzG6BSkPgynfbaywf1
	 6xPvJ/KoLhG4r23nrNCr41z2PE6ApE8zRxAJrboJuNp7H7LUoHUn/b2SKSFLSw2pLKGI4
	 +sZFt1subslLB4qaBX3jmvWswzS76P6Z8x9bhVPgRYntuPGZcDEB2YQQ7Ggc6BU/E4iVl
	 aJiSZzY2pTgNdynRf9WGLMusjvRga0cntCv1i5Z8zxiPRhtp9F6EGtEZys66WwjYAig==
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=CLv8RI8T;
	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 9ADC8606A333;
	Sun,  8 Nov 2026 17:28:24 +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=CLv8RI8T
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=1794158898;
	b=Gu/LX+nCBAqX4Ai7Wsm3ltVDutcI/rAPQI/fpY048M85Tw+RIEYwzSWgvcHFr13aBoXs
	 4rmS7tqVxpq7h+C7vJPHvsf/OHJa6vmTM90ZbM/Da2/dUOGrUG6da4Ef9qmhPiyeKhmSa
	 L1Obh3tiFaf1+UIlKKDNoZpvBIk9FcCF5KU7OELLB+gudw5l4wRcneWOPAA5zn2TUbdIq
	 vA0deMSX8774ErSKVHsiRNAF/kZZ20fwGWWPf9I2uPABk+c+riB6K5ZFjSVMxBpnfgpj6
	 Fh6txeVy6el9v9j6cR6LTy1xZw97rYwgvmJvzk17s/gV9YLSeOEitsOUaEXZh0aZZQg==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1794158898;
	h=Received:DKIM-Signature:Date:From:To:Cc:Subject:Message-ID:
	 References:MIME-Version:Content-Type:Content-Disposition:
	 Content-Transfer-Encoding:In-Reply-To;
	bh=KSXUWRx0EDguLxJ+F0RcWQ7qU373XM5KCoNfJLe1Qho=;
	b=Si8nJdLp444E9xxQYKh0FeHySyxk072Awmsfw2EFV/ko94XP6W/36lYZI2wnpJJNHlAR
	 frsMWv85HJF28CiWblEfHVXNMxYZStEjYa2rNHo3hCn48rQjmlBzmYkiqKmvc72fTWcwB
	 vAPZGtiLIWRXmqiJZ5bQWTxXyRiOLdGBt6y+6ObLDa+jcgmc2LEuyPUj9ZIOU+LCnwX9U
	 LYNlLQaYaSo9T3TJHkOiJDQrPZ5mPfViy9cHvlGm3Tyfj5D/t6AYn4322vEvupm1vyr2O
	 v4fAFVENdQ3vC3QQWXmkYoHfgUQnvI/1Zg2xibLZ6hnMmcmCRc/VwUn2URtAeM1H4/A==
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=CLv8RI8T;
	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 7C41E606A31C;
	Sun,  8 Nov 2026 17:28:18 +0000 (UTC)
X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id C7D9D1F0089F;
	Sun,  8 Nov 2026 17:28:15 +0000 (UTC)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org;
	s=k20260515; t=1794158898;
	bh=KSXUWRx0EDguLxJ+F0RcWQ7qU373XM5KCoNfJLe1Qho=;
	h=Date:From:To:Cc:Subject:References:In-Reply-To;
	b=CLv8RI8TF0gEJYhrgPQJTn7qGYJ0sEzAWjPBOfzEzCguXMFLLI1vEJHa9RvWRRZ9X
	 y+76QOKaGeScbUjelNLNOkYQtOIIyjBW8NdEYvsdi4pa2v31NwQKUs5O8HLYmMjE8M
	 5By6QobOgMupcmz3mjNS4ivQL8Fv8JvSSc2l0/OzEElFd+LLVsXs2bnGZP5iWdXDT/
	 xUY6+AM1d018TFU0N/gP9xAOK9raWAMN/rRqmMGMw667AFxl1XEqs2QSuODufsCQHz
	 JAaWJDLfdMz1P7rouigVPJtHXCY1T68G1NiGvUE6itCYeryE7mgP+Y/jLunSnmPshy
	 WR6lIbshI6uTw==
X-Cc: vulab@iscas.ac.cn, anthony.l.nguyen@intel.com,
	przemyslaw.kitszel@intel.com, andrew+netdev@lunn.ch,
	davem@davemloft.net, edumazet@kernel.org, kuba@kernel.org,
	pabeni@redhat.com, intel-wired-lan@lists.osuosl.org,
	netdev@vger.kernel.org, linux-kernel@vger.kernel.org,
	stable@vger.kernel.org
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: <20261108172504.GH18859@horms.kernel.org>