DPDK patches and discussions
 help / color / Atom feed
* [dpdk-dev] [PATCH v2 3/5] crypto/ccp: fix CCP CPU authentication crash
@ 2019-11-22  6:46 asomalap
  0 siblings, 0 replies; only message in thread
From: asomalap @ 2019-11-22  6:46 UTC (permalink / raw)
  To: dev; +Cc: stable

From: Amaranath Somalapuram <asomalap@amd.com>

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")
Cc: stable@dpdk.org

Signed-off-by: Amaranath Somalapuram <asomalap@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
@@ -2738,7 +2738,7 @@ process_ops_to_enqueue(struct ccp_qp *qp,
 							 session, auth_ctx);
 				if (op[i]->status !=
-					continue;
 			} else
 				result = ccp_crypto_auth(op[i], cmd_q, b_info);

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, back to index

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-11-22  6:46 [dpdk-dev] [PATCH v2 3/5] crypto/ccp: fix CCP CPU authentication crash asomalap

DPDK patches and discussions

Archives are clonable:
	git clone --mirror http://inbox.dpdk.org/dev/0 dev/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 dev dev/ http://inbox.dpdk.org/dev \
	public-inbox-index dev

Newsgroup available over NNTP:

AGPL code for this site: git clone https://public-inbox.org/ public-inbox