patch 'app/dma-perf: fix use after free' has been queued to stable release 23.11.6

Shani Peretz shperetz at nvidia.com
Thu Dec 25 10:17:50 CET 2025


Hi,

FYI, your patch has been queued to stable release 23.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/30/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/shanipr/dpdk-stable

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

Thanks.

Shani

---
>From 4053a3ac02b377d16898e47614bc1c5bc40fddda Mon Sep 17 00:00:00 2001
From: Chengwen Feng <fengchengwen at huawei.com>
Date: Mon, 20 Oct 2025 12:10:52 +0800
Subject: [PATCH] app/dma-perf: fix use after free

[ upstream commit e605615db7d4b104f41fc8f409eb569e962710d8 ]

The test_case->eal_args was pointer the entry of cfgfile, it will be
used later, but the cfgfile was closed in load_configs(). This commit
fix it by using strdup.

Fixes: 623dc9364dc6 ("app/dma-perf: introduce DMA performance test")

Signed-off-by: Chengwen Feng <fengchengwen at huawei.com>
Acked-by: Vamsi Attunuru <vattunuru at marvell.com>
---
 app/test-dma-perf/main.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/app/test-dma-perf/main.c b/app/test-dma-perf/main.c
index 544784df50..2039fa4dbc 100644
--- a/app/test-dma-perf/main.c
+++ b/app/test-dma-perf/main.c
@@ -436,6 +436,8 @@ load_configs(const char *path)
 					section_name, "test_seconds"));
 
 		test_case->eal_args = rte_cfgfile_get_entry(cfgfile, section_name, "eal_args");
+		if (test_case->eal_args != NULL)
+			test_case->eal_args = strdup(test_case->eal_args);
 		test_case->is_valid = true;
 	}
 
-- 
2.43.0

---
  Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- -	2025-12-25 11:16:37.767025892 +0200
+++ 0029-app-dma-perf-fix-use-after-free.patch	2025-12-25 11:16:35.508961000 +0200
@@ -1 +1 @@
-From e605615db7d4b104f41fc8f409eb569e962710d8 Mon Sep 17 00:00:00 2001
+From 4053a3ac02b377d16898e47614bc1c5bc40fddda Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit e605615db7d4b104f41fc8f409eb569e962710d8 ]
+
@@ -11 +12,0 @@
-Cc: stable at dpdk.org
@@ -20 +21 @@
-index 4201cc02a0..64057788c3 100644
+index 544784df50..2039fa4dbc 100644
@@ -23 +24 @@
-@@ -489,6 +489,8 @@ load_configs(const char *path)
+@@ -436,6 +436,8 @@ load_configs(const char *path)


More information about the stable mailing list