patch 'test/crypto: set to null after freeing operation' has been queued to stable release 22.11.9
luca.boccassi at gmail.com
luca.boccassi at gmail.com
Mon Jun 30 14:25:46 CEST 2025
Hi,
FYI, your patch has been queued to stable release 22.11.9
Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet.
It will be pushed if I get no objections before 07/02/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://github.com/bluca/dpdk-stable
This queued commit can be viewed at:
https://github.com/bluca/dpdk-stable/commit/480d514addd5549a9bcf5b0f492e69c2b4908310
Thanks.
Luca Boccassi
---
>From 480d514addd5549a9bcf5b0f492e69c2b4908310 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
[ 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 | 3 +++
1 file changed, 3 insertions(+)
diff --git a/app/test/test_cryptodev.c b/app/test/test_cryptodev.c
index 92113a55d2..8d58510e2d 100644
--- a/app/test/test_cryptodev.c
+++ b/app/test/test_cryptodev.c
@@ -1454,6 +1454,7 @@ ut_teardown(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,
@@ -12335,6 +12336,7 @@ test_multi_session(void)
"Failed to perform decrypt on request number %u.", i);
/* 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,
@@ -12462,6 +12464,7 @@ test_multi_session_random_usage(void)
"Failed to perform decrypt on request number %u.", i);
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.47.2
---
Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- - 2025-06-30 13:21:22.357035644 +0100
+++ 0016-test-crypto-set-to-null-after-freeing-operation.patch 2025-06-30 13:21:21.759057628 +0100
@@ -1 +1 @@
-From 74164b5881526bffc142eb53b89d8900366222d3 Mon Sep 17 00:00:00 2001
+From 480d514addd5549a9bcf5b0f492e69c2b4908310 Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit 74164b5881526bffc142eb53b89d8900366222d3 ]
+
@@ -11 +12,0 @@
-Cc: stable at dpdk.org
@@ -19 +20 @@
-index 7535ef6974..5229ac2bf6 100644
+index 92113a55d2..8d58510e2d 100644
@@ -22,6 +23 @@
-@@ -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;
- }
+@@ -1454,6 +1454,7 @@ ut_teardown(void)
@@ -29,2 +25,3 @@
- return TEST_SUCCESS;
-@@ -14789,6 +14790,7 @@ test_multi_session(void)
+ /* free crypto operation structure */
+ rte_crypto_op_free(ut_params->op);
++ ut_params->op = NULL;
@@ -31,0 +29,4 @@
+ /*
+ * free mbuf - both obuf and ibuf are usually the same,
+@@ -12335,6 +12336,7 @@ test_multi_session(void)
+ "Failed to perform decrypt on request number %u.", i);
@@ -38,2 +39,2 @@
-@@ -14933,6 +14935,7 @@ test_multi_session_random_usage(void)
- ut_paramz[j].iv);
+@@ -12462,6 +12464,7 @@ test_multi_session_random_usage(void)
+ "Failed to perform decrypt on request number %u.", i);
More information about the stable
mailing list