From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <stable-bounces@dpdk.org>
Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124])
	by inbox.dpdk.org (Postfix) with ESMTP id BAC92A0C4D
	for <public@inbox.dpdk.org>; Tue, 21 Sep 2021 10:01:53 +0200 (CEST)
Received: from [217.70.189.124] (localhost [127.0.0.1])
	by mails.dpdk.org (Postfix) with ESMTP id AA81F410EB;
	Tue, 21 Sep 2021 10:01:53 +0200 (CEST)
Received: from out2-smtp.messagingengine.com (out2-smtp.messagingengine.com
 [66.111.4.26]) by mails.dpdk.org (Postfix) with ESMTP id C736740683;
 Tue, 21 Sep 2021 10:01:51 +0200 (CEST)
Received: from compute6.internal (compute6.nyi.internal [10.202.2.46])
 by mailout.nyi.internal (Postfix) with ESMTP id 41E175C0094;
 Tue, 21 Sep 2021 04:01:51 -0400 (EDT)
Received: from mailfrontend1 ([10.202.2.162])
 by compute6.internal (MEProxy); Tue, 21 Sep 2021 04:01:51 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h=
 from:to:cc:subject:date:message-id:in-reply-to:references
 :mime-version:content-transfer-encoding:content-type; s=fm2; bh=
 28qEteksQInjSAHwLC7A11JMPWEctLyQxwE4IFnb6Uc=; b=YapgFO3db4RMshGr
 SC8Jdj+2kS2UZjJk4fO2SnD6wzUDNO6m9IddOy17k2Th0VvT1tNsGIhoPqdbpbaA
 iSwgrn1mJv0eN9jeAwXsk7e1FZQRc9KKq98pJrdRyA7dOuvb+wdGtQvre9A2TuTs
 PRvX0XWUu3g21Ck8wc/rOGWMoH023R4OodGjztCyWLgrqZuKU7j7MODScIlM+wu7
 RV7Y4+NCI1vDJ8plKaiGZmIMLjsv2v26sSCfa3++EAPVIziNO4ExpLa6nlhsYxHn
 1aYnzjFdi5jynBuiMcBNHCAVoVIeT8PiZfgdp2g+7WUMfYts1ZLKink7lYg7KJud
 JzPAYA==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=
 messagingengine.com; h=cc:content-transfer-encoding:content-type
 :date:from:in-reply-to:message-id:mime-version:references
 :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender
 :x-sasl-enc; s=fm3; bh=28qEteksQInjSAHwLC7A11JMPWEctLyQxwE4IFnb6
 Uc=; b=ZEgmvgXb2sZHqKuUz2gBMWndjesV6q7k+U5sgecw0T3mZgO0PUfjXBKCN
 aOpNuyMc+16UQ06K5Gb/wtpRHDxpVwCKO04giJi6wv9Re94ebpXuo0J4CUIDkFtI
 V2nWX6Fy2A2g5W/Ha9c9JSzz6XCMxKzHEFAOtnmN/T10lhevHj0THlS55a0G2X0Z
 Il+LK+DWu05/pDzjZ2KFnLmT2imsKl9u2VYP5AImYtDeGBXJP5rs7wa8KfjtMLnZ
 +dZwp7D0GXWFc/6+2jgc7XrZi2zZu9kOOdcant05PPSI0yS+cqk34Yaj5ufN21Gj
 uyClnzn8MN1OG/nMekJZviK8mTQiw==
X-ME-Sender: <xms:bpFJYSWBvllEmMVKUOjTEiz-1YI_qC495ZvlW_lqJruAaJCzhG4tAw>
 <xme:bpFJYelWNsq6yaazQCXEFIVXBCEu_HRXKLbaSVcHPkzr-gVeRlBjXJnXMGumAvBOO
 FQkCIpOPKqhoRGxmA>
X-ME-Received: <xmr:bpFJYWavZA_uePvxAN_H9UyfogpwopqR_AEveeu-GTru4596o67OPuX0gTbMYwPbCTXwcqT9L1s-56ANJE9RR1E5pg>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrudeifedguddviecutefuodetggdotefrod
 ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh
 necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd
 enucfjughrpefhvffufffkjghfggfgtgesthfuredttddtvdenucfhrhhomhepvfhhohhm
 rghsucfoohhnjhgrlhhonhcuoehthhhomhgrshesmhhonhhjrghlohhnrdhnvghtqeenuc
 ggtffrrghtthgvrhhnpedugefgvdefudfftdefgeelgffhueekgfffhfeujedtteeutdej
 ueeiiedvffegheenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfh
 hrohhmpehthhhomhgrshesmhhonhhjrghlohhnrdhnvght
X-ME-Proxy: <xmx:bpFJYZW-X24hEIYKseKBuGKey3-BBLz0aGjXa2DyTtU_zI0L4TORkA>
 <xmx:bpFJYcnHnSfheyOEdfLhyBc8oCDrY8gww2sNoqjNgTyEDsiIRWySLg>
 <xmx:bpFJYedC35vSy2fYixIlzGZJNjYDSUirSNou1Xz5Af3OTt-vNqOPjA>
 <xmx:b5FJYdDhGkf34FLA39jxhiMAPtnYBISYUQ3W3sGwdbDwN9nTsJ7IpA>
Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue,
 21 Sep 2021 04:01:50 -0400 (EDT)
From: Thomas Monjalon <thomas@monjalon.net>
To: Dmitry Kozlyuk <dkozlyuk@nvidia.com>
Cc: dev@dpdk.org, andreyv@nvidia.com, stable@dpdk.org,
 Viacheslav Ovsiienko <viacheslavo@nvidia.com>, Matan Azrad <matan@nvidia.com>
Date: Tue, 21 Sep 2021 10:01:47 +0200
Message-ID: <2196003.8OPTM4tJ4L@thomas>
In-Reply-To: <20210901080752.3639647-1-dkozlyuk@nvidia.com>
References: <20210901080752.3639647-1-dkozlyuk@nvidia.com>
MIME-Version: 1.0
Content-Transfer-Encoding: 7Bit
Content-Type: text/plain; charset="us-ascii"
Subject: Re: [dpdk-stable] [dpdk-dev] [PATCH] net/mlx5: fix shared RSS
 destruction
X-BeenThere: stable@dpdk.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: patches for DPDK stable branches <stable.dpdk.org>
List-Unsubscribe: <https://mails.dpdk.org/options/stable>,
 <mailto:stable-request@dpdk.org?subject=unsubscribe>
List-Archive: <http://mails.dpdk.org/archives/stable/>
List-Post: <mailto:stable@dpdk.org>
List-Help: <mailto:stable-request@dpdk.org?subject=help>
List-Subscribe: <https://mails.dpdk.org/listinfo/stable>,
 <mailto:stable-request@dpdk.org?subject=subscribe>
Errors-To: stable-bounces@dpdk.org
Sender: "stable" <stable-bounces@dpdk.org>

01/09/2021 10:07, Dmitry Kozlyuk:
> Shared RSS resources were released before checking that the shared RSS
> has no more references. If it had, the destruction was aborted, leaving
> the shared RSS in an invalid state where it could no longer be used.
> Move reference counter check before resource release.
> 
> Fixes: d2046c09aa64 ("net/mlx5: support shared action for RSS")
> Cc: andreyv@nvidia.com
> Cc: stable@dpdk.org
> 
> Signed-off-by: Dmitry Kozlyuk <dkozlyuk@nvidia.com>
> Acked-by: Viacheslav Ovsiienko <viacheslavo@nvidia.com>

Applied in next-net-mlx, thanks.