[dpdk-stable] patch 'crypto/ccp: fix CPU authentication crash' has been queued to LTS release 18.11.6

Kevin Traynor ktraynor at redhat.com
Wed Dec 11 22:26:47 CET 2019


Hi,

FYI, your patch has been queued to LTS release 18.11.6

Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet.
It will be pushed if I get no objections before 12/17/19. 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://github.com/kevintraynor/dpdk-stable-queue

This queued commit can be viewed at:
https://github.com/kevintraynor/dpdk-stable-queue/commit/2ae8d833735ff62d3df49f69e59bce15a0705a19

Thanks.

Kevin.

---
>From 2ae8d833735ff62d3df49f69e59bce15a0705a19 Mon Sep 17 00:00:00 2001
From: Amaranath Somalapuram <asomalap at amd.com>
Date: Fri, 22 Nov 2019 12:16:47 +0530
Subject: [PATCH] crypto/ccp: fix CPU authentication crash

[ upstream commit b3d1a3c66da386955966d512a4a6fe39bda1be78 ]

when ccp_auth_opt=1 is set and if authentication error occurred,
ccp driver crash. The enqueue referance count nb_ops miss match
with dequeue nb_ops on authentication error.

Fixes: e0d88a394e ("crypto/ccp: support run-time CPU based auth")

Signed-off-by: Amaranath Somalapuram <asomalap at amd.com>
---
 drivers/crypto/ccp/ccp_crypto.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/crypto/ccp/ccp_crypto.c b/drivers/crypto/ccp/ccp_crypto.c
index 19ae9153d..1837c8543 100644
--- a/drivers/crypto/ccp/ccp_crypto.c
+++ b/drivers/crypto/ccp/ccp_crypto.c
@@ -2739,5 +2739,5 @@ process_ops_to_enqueue(struct ccp_qp *qp,
 				if (op[i]->status !=
 				    RTE_CRYPTO_OP_STATUS_SUCCESS)
-					continue;
+					CCP_LOG_ERR("RTE_CRYPTO_OP_STATUS_AUTH_FAILED");
 			} else
 				result = ccp_crypto_auth(op[i], cmd_q, b_info);
-- 
2.21.0

---
  Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- -	2019-12-11 21:24:17.031722031 +0000
+++ 0055-crypto-ccp-fix-CPU-authentication-crash.patch	2019-12-11 21:24:12.714650246 +0000
@@ -1 +1 @@
-From b3d1a3c66da386955966d512a4a6fe39bda1be78 Mon Sep 17 00:00:00 2001
+From 2ae8d833735ff62d3df49f69e59bce15a0705a19 Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit b3d1a3c66da386955966d512a4a6fe39bda1be78 ]
+
@@ -11 +12,0 @@
-Cc: stable at dpdk.org



More information about the stable mailing list