patch 'examples/fips_validation: fix dangling pointers' has been queued to stable release 23.11.7

Shani Peretz shperetz at nvidia.com
Wed Apr 15 11:59:59 CEST 2026


Hi,

FYI, your patch has been queued to stable release 23.11.7

Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet.
It will be pushed if I get no objections before 04/19/26. 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/shanipr/dpdk-stable

This queued commit can be viewed at:
https://github.com/shanipr/dpdk-stable/commit/daa1bea6179a9aac54d49f80a322ccb8bbc001a8

Thanks.

Shani

---
>From daa1bea6179a9aac54d49f80a322ccb8bbc001a8 Mon Sep 17 00:00:00 2001
From: Emma Finn <emma.finn at intel.com>
Date: Mon, 9 Mar 2026 10:10:25 +0000
Subject: [PATCH] examples/fips_validation: fix dangling pointers

[ upstream commit ba665acecbfe510f5f961f5539ddea6d162ed4cc ]

Set vector pointer to NULL after free to avoid calling rte_free()
on the same pointer twice in some cases.

Fixes: f4797bae0050 ("examples/fips_validation: support plain SHA")
Fixes: 225f04fb3e4c ("examples/fips_validation: add SHAKE validation")

Signed-off-by: Emma Finn <emma.finn at intel.com>
Acked-by: Kai Ji <kai.ji at intel.com>
Acked-by: Gowrishankar Muthukrishnan <gmuthukrishn at marvell.com>
---
 examples/fips_validation/main.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/examples/fips_validation/main.c b/examples/fips_validation/main.c
index 73eea87fc8..3c68b78815 100644
--- a/examples/fips_validation/main.c
+++ b/examples/fips_validation/main.c
@@ -2362,7 +2362,7 @@ fips_mct_sha_test(void)
 		rte_free(md[i].val);
 
 	rte_free(vec.pt.val);
-
+	vec.pt.val = NULL;
 	rte_free(val.val);
 	return 0;
 }
@@ -2450,6 +2450,7 @@ fips_mct_shake_test(void)
 
 	rte_free(md.val);
 	rte_free(vec.pt.val);
+	vec.pt.val = NULL;
 	rte_free(val.val);
 	return 0;
 }
-- 
2.43.0

---
  Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- -	2026-04-14 14:44:34.320736412 +0300
+++ 0058-examples-fips_validation-fix-dangling-pointers.patch	2026-04-14 14:44:28.677409000 +0300
@@ -1 +1 @@
-From ba665acecbfe510f5f961f5539ddea6d162ed4cc Mon Sep 17 00:00:00 2001
+From daa1bea6179a9aac54d49f80a322ccb8bbc001a8 Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit ba665acecbfe510f5f961f5539ddea6d162ed4cc ]
+
@@ -11 +12,0 @@
-Cc: stable at dpdk.org
@@ -21 +22 @@
-index daf273bc85..2b6d55aa51 100644
+index 73eea87fc8..3c68b78815 100644
@@ -24 +25 @@
-@@ -2610,7 +2610,7 @@ fips_mct_sha_test(void)
+@@ -2362,7 +2362,7 @@ fips_mct_sha_test(void)
@@ -33 +34 @@
-@@ -2698,6 +2698,7 @@ fips_mct_shake_test(void)
+@@ -2450,6 +2450,7 @@ fips_mct_shake_test(void)


More information about the stable mailing list