🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #12807

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

#12807
From: Simon Horman
Date: Sun, 08 Nov 2026 17:25
31 lines
9174 bytes
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.

> 
> 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: <20261108172504.GH18859@horms.kernel.org>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-358812-linux-kernel-netdev=dewy.ru
References: <20261103100534.1310039-1-vulab@iscas.ac.cn> <179405014554.994134.10719290719575125531@kernel.org>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-358812-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:25:04 +0000
Organization: Usenet Network
Message-ID: <20261108172504.GH18859@horms.kernel.org>
References: <20261103100534.1310039-1-vulab@iscas.ac.cn>
 <179405014554.994134.10719290719575125531@kernel.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
	logging-data="166859"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:gpbRHxJSLu1t33psaZetT3VAt2U= sha256:FEYi4/UfACwxpHTdqxdhcLPK2KTTpCyZIoiCURRSBNs=
	sha1:giVZbo0K+9eMv2LYBqoIPyCbd+A= sha256:A/T5yyWJoKc3VEf2j6FY/4b7bvH4fiebAgZ0AqbBOhg=
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 3C2941135CB; Sun,  8 Nov 2026 20:30:07 +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 daECF5MVm90U;
	Sun,  8 Nov 2026 20:29:59 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-358812-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 136C61135C8; Sun,  8 Nov 2026 20:29:50 +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 A843465FFE; Sun,  8 Nov 2026 17:25:20 +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=1794158720;
	b=4+RFHUyLHrsIHoFeL8ZlfFvhQ2q9UYJDp+vgswj4togXtd2jhD9tyHWuNE0Pg/3IM/x5
	 tZeKr1suZz4q3dV1TynmHi1q7QwaKFR1pC0oX6fGqUg+V8tfJPaT8vZO/I48jxVZL06AD
	 tF0B7j0NLc4fIvhcf/FBdjaciYvP1GV6J3m+nFQhZ0av4poIE7VENZmH1O8AM6Etq+GuO
	 snxfxa2MU7mYliuPrRMqiUzl8HeYlRzZBbgyd9aoQIUs7YK3dvxtaO1Fu4BCj+HwelhJ9
	 Bup7o9APmhJVEWaFjIhe3FAO39VnwFLEFbZz2TAzmsGXJz+1MaLBMHEKseirg7PqTFg==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1794158720;
	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=a9BmaB1EJPYoiOj3efcL7rpt7e9jF03SzioViwlwS24=;
	b=bGxaT5fy5he88CYsakpdGlH8cMBEJxG9aMnlMVaMOsSHzYeCPQtlB8qwWaC6gelj5k/5
	 umQhueLQi79+ybTJIFDFgXElXAimqMkMwOkVYD2+E5hNJhs/SxD36AYd+tugvVjPCBzkD
	 kCEz1sTi8yYOnR3UZ4L3/YJkSeXlhKvAux9MSxIlt0L+L5DafuHs2tuJsdjOLZiONWpJQ
	 NcJekujn3E+vL2ccmwJnBQH/ZACrKAeNmrOJjZNI9Y9vm4itCLNca9/iC6wQqq4rKLd5j
	 MTm1fyX1K/Yv329xDGR9ud/Csvmjk4DvIThTyzPmZOBFMqr2x0rZFBmWGonRlhXaqbg==
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=a4+6hr11;
	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 80062606A332;
	Sun,  8 Nov 2026 17:25:20 +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=a4+6hr11
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=1794158709;
	b=4/RXh88OD3qbHM3WSTvPr0YJRCT46+8QjS26Yx8SSvCanpOcM0fanHTlwKq37Zmcn1V6
	 Esfc5jKROZp6T45aoFakx4aOZGXJMFt2kl4vqEi14aJi80c3K0qplSvCW8Xh3ogZUfxlC
	 6ukxm8E2rNzZCG5e4HmGH5MzcsT24kzvN0uHVDjwJGqlWr0Y4RKkAbWYqgwcKL2gbciJa
	 Qu7PMZDjmoHrm0o9M9XdLGkspeZ9j8/GSA6/9GouJ/gIEXzAgVJ9QsSyqZay0D/GaDNQs
	 mxcpoS/NEa7QKmAYeWgBFxRz9FPUSdxRCQW3tUUjoNj7cFsIz37djqX10ms2W6LvBNw==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1794158709;
	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=a9BmaB1EJPYoiOj3efcL7rpt7e9jF03SzioViwlwS24=;
	b=KHl3/V4ZDFr2ejvxAqG3zOXC8QBtfAJEbIMl0MFSMiCF5kseTUiOgzYuCEgXxKZDk1a0
	 hn9aeQhewXJ0gdWjqvl0xKf8ZOK7Iyt79j4lsZbN6OxtTOitY9zwrli/X77uGcE4Ulmqg
	 irCLk1Y0lSu2h4ZN6NOnrI4Z0ZEQbV3LLBpNb6ZRpP7AMlGvLI2KeA2Vzt5ZY6Pqi1R6W
	 NYnodpk3AxAmFgfH+3NFNgwrlkvuw++avd+wAjf7qdbSqIxTcxof/vstHp7Q7WReIYTTm
	 27wLRZpQ1dngHqKWj37WF13ALuiDNTWArY44ctZHNzNVav0fJzLmDHi45bz8F8JUu2g==
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=a4+6hr11;
	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) server-digest SHA256)
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with ESMTPS id 58E3F606A320;
	Sun,  8 Nov 2026 17:25:08 +0000 (UTC)
X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6DAD71F0089F;
	Sun,  8 Nov 2026 17:25:06 +0000 (UTC)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org;
	s=k20260515; t=1794158708;
	bh=a9BmaB1EJPYoiOj3efcL7rpt7e9jF03SzioViwlwS24=;
	h=Date:From:To:Cc:Subject:References:In-Reply-To;
	b=a4+6hr11zxzaXk/87oSBanVR5Ij+H4hcZj9K75Zb41mVoRWL8jZWzndQ0SVY0+G0O
	 O5UkvoFMnmfL3tNka6df5RB0Vtg2ZJ4oB+zo+C5XvvkJh1na9BDvq5jwGLHYQwHNZn
	 UHmzfg3N5YXU1BgPvdktrVDaZbRW6KqeNF5sb/GSGQLMp4rSGQFVl3zEKPk4ymb+fn
	 nR2PjmOapU5qdH7Wg2xPXzGwfJUtfzFPlUQ5UMKi70xB5hLDz5YXvXuVCGnN2QR9zm
	 pph19OHBCCmR3+JZlb/afLcLZypLwc/NiZ8MhvzXmS+bd48gD8Jsr7UrGhe9NzKmoJ
	 KJROYU3B7mACg==
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: <179405014554.994134.10719290719575125531@kernel.org>