patch 'net/dpaa2: fix uninitialized variable' has been queued to stable release 24.11.4
Kevin Traynor
ktraynor at redhat.com
Fri Oct 31 15:33:55 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/05/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/2d48b66dbcc895ee8f4f164fb5f2481eee38fcd1
Thanks.
Kevin
---
>From 2d48b66dbcc895ee8f4f164fb5f2481eee38fcd1 Mon Sep 17 00:00:00 2001
From: Prashant Gupta <prashant.gupta_3 at nxp.com>
Date: Thu, 16 Oct 2025 15:57:51 +0530
Subject: [PATCH] net/dpaa2: fix uninitialized variable
[ upstream commit 058043d0590f52dd45555a362d31646c7c3ff943 ]
Initialize the kg_cfg structure before use in
rte_pmd_dpaa2_set_custom_hash(). This resolves an issue with
uninitialized memory access.
Fixes: 5f822962498e ("net/dpaa2: support custom hash key")
Signed-off-by: Prashant Gupta <prashant.gupta_3 at nxp.com>
---
.mailmap | 1 +
drivers/net/dpaa2/base/dpaa2_hw_dpni.c | 3 ++-
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/.mailmap b/.mailmap
index de8893d104..99cf07f245 100644
--- a/.mailmap
+++ b/.mailmap
@@ -1226,4 +1226,5 @@ Potnuri Bharat Teja <bharat at chelsio.com>
Pradeep Satyanarayana <pradeep at us.ibm.com>
Prashant Bhole <bhole_prashant_q7 at lab.ntt.co.jp>
+Prashant Gupta <prashant.gupta_3 at nxp.com>
Prashant Upadhyaya <prashant.upadhyaya at aricent.com> <praupadhyaya at gmail.com>
Prateek Agarwal <prateekag at cse.iitb.ac.in>
diff --git a/drivers/net/dpaa2/base/dpaa2_hw_dpni.c b/drivers/net/dpaa2/base/dpaa2_hw_dpni.c
index 20b37a97bb..b492593837 100644
--- a/drivers/net/dpaa2/base/dpaa2_hw_dpni.c
+++ b/drivers/net/dpaa2/base/dpaa2_hw_dpni.c
@@ -2,5 +2,5 @@
*
* Copyright (c) 2016 Freescale Semiconductor, Inc. All rights reserved.
- * Copyright 2016-2021 NXP
+ * Copyright 2016-2021,2023-2025 NXP
*
*/
@@ -59,4 +59,5 @@ rte_pmd_dpaa2_set_custom_hash(uint16_t port_id,
}
+ memset(&kg_cfg, 0, sizeof(struct dpkg_profile_cfg));
kg_cfg.extracts[0].type = DPKG_EXTRACT_FROM_DATA;
kg_cfg.extracts[0].extract.from_data.offset = offset;
--
2.51.0
---
Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- - 2025-10-31 13:53:55.637157298 +0000
+++ 0113-net-dpaa2-fix-uninitialized-variable.patch 2025-10-31 13:53:52.293524170 +0000
@@ -1 +1 @@
-From 058043d0590f52dd45555a362d31646c7c3ff943 Mon Sep 17 00:00:00 2001
+From 2d48b66dbcc895ee8f4f164fb5f2481eee38fcd1 Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit 058043d0590f52dd45555a362d31646c7c3ff943 ]
+
@@ -11 +12,0 @@
-Cc: stable at dpdk.org
@@ -20 +21 @@
-index 984621f26b..68bebe2ee0 100644
+index de8893d104..99cf07f245 100644
@@ -23 +24 @@
-@@ -1267,4 +1267,5 @@ Potnuri Bharat Teja <bharat at chelsio.com>
+@@ -1226,4 +1226,5 @@ Potnuri Bharat Teja <bharat at chelsio.com>
@@ -30 +31 @@
-index b1d473429a..13825046d8 100644
+index 20b37a97bb..b492593837 100644
@@ -36 +37 @@
-- * Copyright 2016-2021,2023-2024 NXP
+- * Copyright 2016-2021 NXP
@@ -40 +41 @@
-@@ -61,4 +61,5 @@ rte_pmd_dpaa2_set_custom_hash(uint16_t port_id,
+@@ -59,4 +59,5 @@ rte_pmd_dpaa2_set_custom_hash(uint16_t port_id,
More information about the stable
mailing list