Article View: linux.kernel.netdev
Article #4572Re: [PATCH net v2 1/2] net/mlx5: HWS, fix reformat pool creation race
From: Simon Horman
Date: Sun, 18 Oct 2026 14:18
Date: Sun, 18 Oct 2026 14:18
17 lines
6386 bytes
6386 bytes
On Mon, Oct 12, 2026 at 12:05:53PM +0200, Alexandre Cassen wrote:
> mlx5_fs_get_pr_encap_pool() inserts a new pool when the lookup misses.
> Two callers allocating the first reformat of a size at once both
> create one and the second fails with -EBUSY. TC serializes these
> allocations under encap_tbl_lock while RDMA flow actions on the FDB
> don't.
>
> Sashiko AI review of an earlier series spotted this issue.
>
> Tested for regressions on ConnectX-7 with firmware 28.48.1000.
>
> Fixes: aecd9d1020e3 ("net/mlx5: fs, add HWS packet reformat API function")
> Reviewed-by: Moshe Shemesh <moshe@nvidia.com>
> Signed-off-by: Alexandre Cassen <acassen@corp.free.fr>
Reviewed-by: Simon Horman <horms@kernel.org>
Technical Details
Message-ID:
<20261018141801.GK503057@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-348063-linux-kernel-netdev=dewy.ruReferences:
<20261012100555.1317878-1-acassen@corp.free.fr> <20261012100555.1317878-2-acassen@corp.free.fr>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-348063-linux-kernel-netdev=dewy.ru From: horms@kernel.org (Simon Horman) Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net v2 1/2] net/mlx5: HWS, fix reformat pool creation race Date: Sun, 18 Oct 2026 15:18:01 +0100 Organization: Usenet Network Message-ID: <20261018141801.GK503057@horms.kernel.org> References: <20261012100555.1317878-1-acassen@corp.free.fr> <20261012100555.1317878-2-acassen@corp.free.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: usenet.network; logging-data="3342233"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:RdeRQS4KnIHApmaT6jkkxK8i+RA= sha256:2KQvvqRoBp5uUI80Laa6+atNNO+8qt3nTnFKiY0xJbE= sha1:U3pKStqV+lw5CWegVjN2agJ1O/s= sha256:n+1HAR7Bf0Cae+XW14dSP/pJ7OtdwKopqTovNGo7wSI= 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 DA66C110823; Sun, 18 Oct 2026 17:18:43 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.74 X-Spam-Status: No, score=-3.74 tagged_above=-9999 required=6.31 tests=[DCC_REPUT_70_89=0.1, DKIMWL_WL_HIGH=-0.34, 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 ci5u5hoQIwNE; Sun, 18 Oct 2026 17:18:41 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-348063-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 4A0F51107BE; Sun, 18 Oct 2026 17:18:33 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.90.174.1]) by sea.lore.kernel.org (Postfix) with ESMTP id D00A02C969; Sun, 18 Oct 2026 14:18:11 +0000 (UTC) X-Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D81FB4C9E09; Sun, 18 Oct 2026 14:18:10 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="iCO7mrmD" X-Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 124624C9001; Sun, 18 Oct 2026 14:18:06 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 X-ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1792333090; cv=none; b=s7p783jlRaOgGCsUjqj9wpP4sVKLohDgf/Bs6bmmV10912RzfXiO4QwwPY5gE0rlvFY2PjI5aWdekOuz2M42+AF+dWaB8ZiNbeJU6l22qS/btBbsfkib1cPX/KGXtS6cIU4zHEL4/B3jJsNJ8+XwTkKnRuyLBwlCHwAuMIE9o4E= X-ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1792333090; c=relaxed/simple; bh=RyYPkF7JYAtIIpoRgVDc9hhRIEDqxsddqgSxy2nWM14=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=jnePd6BDNynzn94m+fdw0A3SkFc17StKtVbrCs5qrIHZXFcZDRUwjzJxGhLeC3RqwRDFvCnazd1AGcGSNtjXAz7l7IWxUbeDsyNagori3iLcGfP/A2aEHb3+BB2leeEtbYbVGeuLceOo4OxrOSmxhSkeNqYlI97PvA1Z6M2D2D8= X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=iCO7mrmD; arc=none smtp.client-ip=100.103.45.18 X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 295241F000C4; Sun, 18 Oct 2026 14:18:04 +0000 (UTC) X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1792333086; bh=500BieEE03ZQk7GfNGyCVLVUnF5Q67T/cTHd5SpJPhE=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=iCO7mrmDvaa6L9zXZ3FfY66K1TcuMlK+C2v4b6AZAae3JZQxmImb586a4R/8Kr8LZ xtwIHCsSMQHkA+ZkLC5VIicslPmPEbo7A7bmFvNZVBHJi1zATOMq0JoqPUMKjr75fr OqUQav0cT34CaCyAlACvw3+JMnyrIVEeH13HCy4wZPzViPjj4US0i4Dtl4PbtBiya5 jmr7pNB6sDZ1Wxlll4QroI3gQHUZ5TK8YNujy6PHMWUN+zyX3E2O7nVTIoi6lautRv JL1gRTTts7U0mZGM2OKtBH6MMEmc4Q7JhP1R3amqF8t6+LLlLUdvOI0bO1IM7EQXZe z4bE8ap/MyGKQ== X-Cc: Saeed Mahameed <saeedm@nvidia.com>, Leon Romanovsky <leon@kernel.org>, Tariq Toukan <tariqt@nvidia.com>, Mark Bloch <mbloch@nvidia.com>, Andrew Lunn <andrew+netdev@lunn.ch>, "David S. Miller" <davem@davemloft.net>, Eric Dumazet <edumazet@kernel.org>, Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>, Moshe Shemesh <moshe@nvidia.com>, Yevgeny Kliteynik <kliteyn@nvidia.com>, netdev@vger.kernel.org, linux-rdma@vger.kernel.org X-Precedence: bulk X-Mailing-List: netdev@vger.kernel.org X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org> X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org> X-In-Reply-To: <20261012100555.1317878-2-acassen@corp.free.fr>