patch 'test/crypto: set to null after freeing operation' has been queued to stable release 23.11.5

Xueming Li xuemingl at nvidia.com
Wed Jul 30 09:10:22 CEST 2025


Hi,

FYI, your patch has been queued to stable release 23.11.5

Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet.
It will be pushed if I get no objections before 08/10/25. 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=23.11-staging

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

Thanks.

Xueming Li <xuemingl at nvidia.com>

---
>From b392162c09b6ff4b0a338b1b3b2ddb9656cc7594 Mon Sep 17 00:00:00 2001
From: Nithinsen Kaithakadan <nkaithakadan at marvell.com>
Date: Wed, 18 Jun 2025 12:54:09 +0000
Subject: [PATCH] test/crypto: set to null after freeing operation
Cc: Xueming Li <xuemingl at nvidia.com>

[ upstream commit 74164b5881526bffc142eb53b89d8900366222d3 ]

Set pointer to NULL post rte_crypto_op_free operation.

Fixes: 3bf0db60f5d2 ("test/crypto: add queue pair depth used count")
Fixes: 202d375c60bc ("app/test: add cryptodev unit and performance tests")
Fixes: ffbe3be0d4b5 ("app/test: add libcrypto")

Signed-off-by: Nithinsen Kaithakadan <nkaithakadan at marvell.com>
---
 app/test/test_cryptodev.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/app/test/test_cryptodev.c b/app/test/test_cryptodev.c
index fb5a3e7dd4..8b8546622a 100644
--- a/app/test/test_cryptodev.c
+++ b/app/test/test_cryptodev.c
@@ -13246,6 +13246,7 @@ test_multi_session(void)
 
 		/* free crypto operation structure */
 		rte_crypto_op_free(ut_params->op);
+		ut_params->op = NULL;
 
 		/*
 		 * free mbuf - both obuf and ibuf are usually the same,
@@ -13387,6 +13388,7 @@ test_multi_session_random_usage(void)
 					ut_paramz[j].iv);
 
 		rte_crypto_op_free(ut_paramz[j].ut_params.op);
+		ut_paramz[j].ut_params.op = NULL;
 
 		/*
 		 * free mbuf - both obuf and ibuf are usually the same,
-- 
2.34.1

---
  Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- -	2025-07-30 15:02:13.156751247 +0800
+++ 0011-test-crypto-set-to-null-after-freeing-operation.patch	2025-07-30 15:02:12.789830816 +0800
@@ -1 +1 @@
-From 74164b5881526bffc142eb53b89d8900366222d3 Mon Sep 17 00:00:00 2001
+From b392162c09b6ff4b0a338b1b3b2ddb9656cc7594 Mon Sep 17 00:00:00 2001
@@ -4,0 +5,3 @@
+Cc: Xueming Li <xuemingl at nvidia.com>
+
+[ upstream commit 74164b5881526bffc142eb53b89d8900366222d3 ]
@@ -11 +13,0 @@
-Cc: stable at dpdk.org
@@ -15,2 +17,2 @@
- app/test/test_cryptodev.c | 3 +++
- 1 file changed, 3 insertions(+)
+ app/test/test_cryptodev.c | 2 ++
+ 1 file changed, 2 insertions(+)
@@ -19 +21 @@
-index 7535ef6974..5229ac2bf6 100644
+index fb5a3e7dd4..8b8546622a 100644
@@ -22,9 +24 @@
-@@ -2625,6 +2625,7 @@ test_queue_pair_descriptor_count(void)
- 
- 		rte_pktmbuf_free(ops_deq[i]->sym->m_src);
- 		rte_crypto_op_free(ops_deq[i]);
-+		ops_deq[i] = NULL;
- 	}
- 
- 	return TEST_SUCCESS;
-@@ -14789,6 +14790,7 @@ test_multi_session(void)
+@@ -13246,6 +13246,7 @@ test_multi_session(void)
@@ -38 +32 @@
-@@ -14933,6 +14935,7 @@ test_multi_session_random_usage(void)
+@@ -13387,6 +13388,7 @@ test_multi_session_random_usage(void)


More information about the stable mailing list