patch 'app/dma-perf: fix use after free' has been queued to stable release 24.11.4
Kevin Traynor
ktraynor at redhat.com
Fri Nov 21 12:20:02 CET 2025
Hi,
FYI, your patch has been queued to stable release 24.11.4
Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet.
It will be pushed if I get no objections before 11/26/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/kevintraynor/dpdk-stable
This queued commit can be viewed at:
https://github.com/kevintraynor/dpdk-stable/commit/08cfbd6514e7d0982acd28aefd36c189bdc6b3a0
Thanks.
Kevin
---
>From 08cfbd6514e7d0982acd28aefd36c189bdc6b3a0 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 0586b3e1d0..25a79d1d6c 100644
--- a/app/test-dma-perf/main.c
+++ b/app/test-dma-perf/main.c
@@ -481,4 +481,6 @@ load_configs(const char *path)
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.51.0
---
Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- - 2025-11-21 11:05:10.188630321 +0000
+++ 0018-app-dma-perf-fix-use-after-free.patch 2025-11-21 11:05:09.390200858 +0000
@@ -1 +1 @@
-From e605615db7d4b104f41fc8f409eb569e962710d8 Mon Sep 17 00:00:00 2001
+From 08cfbd6514e7d0982acd28aefd36c189bdc6b3a0 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 0586b3e1d0..25a79d1d6c 100644
@@ -23 +24 @@
-@@ -490,4 +490,6 @@ load_configs(const char *path)
+@@ -481,4 +481,6 @@ load_configs(const char *path)
More information about the stable
mailing list