Article View: linux.kernel.netdev
Article #14279Re: [PATCH net] net/mlx5: macsec: Don't remove fs_id when adding a rule fails
From: patchwork-bot+netdevbpf
Date: Tue, 10 Nov 2026 21:40
Date: Tue, 10 Nov 2026 21:40
28 lines
9043 bytes
9043 bytes
Hello:
This patch was applied to netdev/net.git (main)
by Jakub Kicinski <kuba@kernel.org>:
On Wed, 4 Nov 2026 19:34:19 -0500 you wrote:
> macsec_fs_tx_add_rule() and macsec_fs_rx_add_rule() clean up a failed
> rule with macsec_fs_{tx,rx}_del_rule(), which also calls
> macsec_fs_id_del(). The fs_id is never in the xarray at that point:
> macsec_fs_id_add() is the last step of adding a rule and removes its
> own entry when it fails.
>
> macsec_fs_id_del() then dereferences NULL, through macsec_device for
> the first SA of a MACsec netdev and through fs_id_found otherwise. On
> RX, the SAs of one SC share an fs_id, so a failure while adding another
> SA drops the reference that an existing SA holds.
>
> [...]
Here is the summary with links:
- [net] net/mlx5: macsec: Don't remove fs_id when adding a rule fails
https://git.kernel.org/netdev/net/c/5175da73dd12
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
Technical Details
Message-ID:
<179434680493.71955.13043518489882065579.git-patchwork-notify@kernel.org>Path:
mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!newsfeed.bofh.team!nntp.comgw.net!eternal-september.org!feeder.eternal-september.org!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-360644-linux-kernel-netdev=dewy.ruReferences:
<20261105003419.4016283-1-lcy8047@gmail.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!newsfeed.bofh.team!nntp.comgw.net!eternal-september.org!feeder.eternal-september.org!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-360644-linux-kernel-netdev=dewy.ru From: patchwork-bot+netdevbpf@kernel.org Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net] net/mlx5: macsec: Don't remove fs_id when adding a rule fails Date: Tue, 10 Nov 2026 21:40:04 +0000 Organization: Usenet Network Message-ID: <179434680493.71955.13043518489882065579.git-patchwork-notify@kernel.org> References: <20261105003419.4016283-1-lcy8047@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Injection-Info: usenet.network; logging-data="724881"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:pBH3vfr02IOtcrziP9WORM2ZeEA= sha256:uSUfPqjg8iDiAJbjqJZeVOMCUAPFhdCsBu7ewgn9RCo= sha1:Nk9sd0mDK5UmT4p473/NqIEhBGQ= sha256:sJ3Z4mNVWKGonKfQhhXDcIbUl72nqLZ6xAwT1PcvE9Y= 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 CF996113D9C; Wed, 11 Nov 2026 02:05:37 +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 whRzUDk36s4H; Wed, 11 Nov 2026 02:05:34 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=104.64.211.4; helo=sin.lore.kernel.org; envelope-from=netdev+bounces-360644-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 sin.lore.kernel.org (sin.lore.kernel.org [104.64.211.4]) by mail.dewy.ru (Postfix) with ESMTPS id A717F113D5B; Wed, 11 Nov 2026 02:05:24 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by sin.lore.kernel.org (Postfix) with ESMTP id 6944C1418B3; Tue, 10 Nov 2026 21:40:53 +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=1794346827; b=qwbb6L+Ah/5KN7NETq8AxzEjFKfsux0BeD3E5rTBBiAWwD611MGHuO2RdfYfFzDe2jDZ 3BUt4VeT9NM+xjLJA+zMCr5oUxZ0nhpGBaf8awskn+/Ab4bDgRWiOc8U2MtQCK0WIbqda lUl1ytp78euPHHVfJwKWpi8kVC6LvCCwqqAmrTPXXofRu4/oy3XVCBMYYGC7Glkhd9GU4 k32CQ6WzDaoEhMHzGuFKvPJ/9S9CDez2HLSNsQd5er7juQ70xw0ZvfC0NBvVAl6eY6LTv zF8Xq1pGTMZpqJirWtsylcDl3MQpgAosHqzNoOK8cIIK/T/5JPrRmfHSjonDstUMQMg== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794346827; 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=lSL4MFB6bw4CVme3VOrLqejrCKOFv1AQMa1yqiN4Hvk=; b=x+ZBWLMz/p+w5bq0v0cPqWgPXi+T5+Zmh/1Lanr71P9/dnJZ46Zd17NPeKkXGGd5Mr5m hct4wVnSe/g8YBCkCGN/rldojrZIzZ5iCt6V3gGbrGyITwlYYpHhbM21RLbUKATicdF49 W2eOtnUaHR1kcFSBJ8ZWU9Y8LWEW9x1e5yJJoGn1F89Y2i/PiNwMLiHitJ3EX3usUJSJk fV78TfvQtpBX20zOWwyBUnskYy7nRbQPfJjKKCUj1+Exe76ITTha6fMHWdjN9eTjaVcG+ gtnW2zlp0M5+OOtxA+b6cRi8t3tAb3o+m9LgpoSWfdBIPcxCSSy0P9b3mpYPpRzahBQ== 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=kKMkm9Tw; 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 CCEF660A2600; Tue, 10 Nov 2026 21:40:27 +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=kKMkm9Tw 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=1794346807; b=KomiUOI2Of/FlcCTivuzMmInBMwjFYkWbGRNqBR2seuU5teVssrqaezJYmLzDc/SdWkV stTsMOtkyrsjzg3cihyAxURn/yEelHiz7mRHZqNe1Lsh1wR2DfLtUppaVdoyOl0WXC5yD f3OwV9Z4fimbwJF/h0SDT1F+5y1ZUKkCv2QWCeloJ/yTsC3LhuaqshhI5u7Z8tXYOFNie NVts1oqI0KgdHDllk5fsYhaqsBAiRbeE257DazKyweACVVKbrzOHwVHmf/yVGy17ipiHQ BHZhlnpz2fLM1vVpXE2MbgtPugaHYbxKhpcUBE9s5N9EFnU85qwB+Eiv03i+v36jyAw== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794346807; h=Received:DKIM-Signature:Received:Content-Type:MIME-Version: Content-Transfer-Encoding:Subject:From:Message-Id:Date:References: In-Reply-To:To:Cc; bh=lSL4MFB6bw4CVme3VOrLqejrCKOFv1AQMa1yqiN4Hvk=; b=hJ51dHeG5xKvhDb46gooU6QBajyej/KyevJwJi76GqmWDxP0VFRBIdssFrVhu44s1WQf 51wiZy3bwZi75vnNyvBMBsw+J9MDcByim7zWJfZbUIXqXzZNYPKllXqEXm9MyUhLiKeE8 lOxZXGTq22KFizgE5Y+X1rznUfHwT6x5id2hPVya1wkrTjemPYj1Xp9uLZ8EOa54YQf3/ bMvfQZY6tUEJRbya1jEdq7Mywk3GQduegwBcnZQWy+l/s7evn665mHkeK6snB6fX4KziM 02373naMwF/QHa0UYh8+a24qE1KxyADtBBHMKkoDonMrDL/kZY2sFZQBciYFcwpj92g== 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=kKMkm9Tw; 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 A67C8606A32E; Tue, 10 Nov 2026 21:40:06 +0000 (UTC) X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2CEE11F0089F; Tue, 10 Nov 2026 21:40:06 +0000 (UTC) X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1794346806; bh=lSL4MFB6bw4CVme3VOrLqejrCKOFv1AQMa1yqiN4Hvk=; h=Subject:From:Date:References:In-Reply-To:To:Cc; b=kKMkm9Tw/G93fphFFXpmPP0i8JIqETNFzdnddLwNF0clo0ifW9Rta/RvIb1bcNJpX ZBvI69esXPK+Ttm39S7RPE4fgIaiLCQxaRMUAooylKlPz2chQamv4fodb+ESWqLQQ0 x+Zzglck7XBNtyKB7bmDLNB/vm26NX09vXuT0pTrFxBuNLrsfuHqdPfDRkTd2/ZXdT 0OZZDRnsu5ZcOA6lulyM7SWyE3JYPr3MGx1U67gtNXzdZEaxR+E6hABmHoB4eQpvjH ShJVnpdQ338hV+ysM+9FEYSrAvXR/FE0lJghDrYzWfbOpvuQ/SxSZ7ikTzJIAGbt88 MqxAdbTlGIHfg== 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 2118439E8A40; Tue, 10 Nov 2026 21:40:06 +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: <20261105003419.4016283-1-lcy8047@gmail.com> X-Cc: saeedm@nvidia.com, leon@kernel.org, tariqt@nvidia.com, mbloch@nvidia.com, andrew+netdev@lunn.ch, davem@davemloft.net, edumazet@kernel.org, kuba@kernel.org, pabeni@redhat.com, sd@queasysnail.net, horms@kernel.org, joasantonio108@gmail.com, phaddad@nvidia.com, netdev@vger.kernel.org, linux-rdma@vger.kernel.org, linux-kernel@vger.kernel.org