patch 'net/cnxk: fix deadlock in security session creation' has been queued to stable release 22.11.2

Xueming Li xuemingl at nvidia.com
Mon Feb 27 07:59:39 CET 2023


Hi,

FYI, your patch has been queued to stable release 22.11.2

Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet.
It will be pushed if I get no objections before 03/01/23. So please
shout if anyone has objections.

Also note that after the patch there's a diff of the upstream commit vs the
patch applied to the branch. This will indicate if there was any rebasing
needed to apply to the stable branch. If there were code changes for rebasing
(ie: not only metadata diffs), please double check that the rebase was
correctly done.

Queued patches are on a temporary branch at:
https://git.dpdk.org/dpdk-stable/log/?h=22.11-staging

This queued commit can be viewed at:
https://git.dpdk.org/dpdk-stable/commit/?h=22.11-staging&id=f40c4f3e0b781597345143a87e1bc79b7b8a5362

Thanks.

Xueming Li <xuemingl at nvidia.com>

---
>From f40c4f3e0b781597345143a87e1bc79b7b8a5362 Mon Sep 17 00:00:00 2001
From: David Marchand <david.marchand at redhat.com>
Date: Thu, 5 Jan 2023 14:57:18 +0100
Subject: [PATCH] net/cnxk: fix deadlock in security session creation
Cc: Xueming Li <xuemingl at nvidia.com>

[ upstream commit 649aa9d1d6bb9b4773c1d26f13ee48ed5ad7bbde ]

Releasing the lock was missing in this branch.

Fixes: 4440eb88ddfc ("net/cnxk: use full context IPsec structures")

Signed-off-by: David Marchand <david.marchand at redhat.com>
Acked-by: Fan Zhang <fanzhang.oss at gmail.com>
Acked-by: Nithin Dabilpuram <ndabilpuram at marvell.com>
---
 drivers/net/cnxk/cn9k_ethdev_sec.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/net/cnxk/cn9k_ethdev_sec.c b/drivers/net/cnxk/cn9k_ethdev_sec.c
index 67966a4e49..327f221e38 100644
--- a/drivers/net/cnxk/cn9k_ethdev_sec.c
+++ b/drivers/net/cnxk/cn9k_ethdev_sec.c
@@ -556,6 +556,7 @@ cn9k_eth_sec_session_create(void *device,

 	if (!dev->outb.lf_base) {
 		plt_err("Could not allocate security session private data");
+		rte_spinlock_unlock(lock);
 		return -ENOMEM;
 	}

--
2.25.1

---
  Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- -	2023-02-27 14:08:43.200134700 +0800
+++ 0072-net-cnxk-fix-deadlock-in-security-session-creation.patch	2023-02-27 14:08:40.799237000 +0800
@@ -1 +1 @@
-From 649aa9d1d6bb9b4773c1d26f13ee48ed5ad7bbde Mon Sep 17 00:00:00 2001
+From f40c4f3e0b781597345143a87e1bc79b7b8a5362 Mon Sep 17 00:00:00 2001
@@ -4,0 +5,3 @@
+Cc: Xueming Li <xuemingl at nvidia.com>
+
+[ upstream commit 649aa9d1d6bb9b4773c1d26f13ee48ed5ad7bbde ]
@@ -9 +11,0 @@
-Cc: stable at dpdk.org


More information about the stable mailing list