patch 'net/dpaa2: fix uninitialized variable' has been queued to stable release 22.11.11

luca.boccassi at gmail.com luca.boccassi at gmail.com
Mon Oct 27 17:19:48 CET 2025


Hi,

FYI, your patch has been queued to stable release 22.11.11

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

Thanks.

Luca Boccassi

---
>From 36e67b7e40dad7c12ebd7383c11d823e8b7ec8a1 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 3ff821f286..ddc091adac 100644
--- a/.mailmap
+++ b/.mailmap
@@ -1111,6 +1111,7 @@ Piotr Pietruszewski <piotr.pietruszewski at intel.com>
 Piotr Skajewski <piotrx.skajewski at intel.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>
 Praveen Shetty <praveen.shetty at intel.com>
diff --git a/drivers/net/dpaa2/base/dpaa2_hw_dpni.c b/drivers/net/dpaa2/base/dpaa2_hw_dpni.c
index 4d33b51fea..2f3270fe29 100644
--- a/drivers/net/dpaa2/base/dpaa2_hw_dpni.c
+++ b/drivers/net/dpaa2/base/dpaa2_hw_dpni.c
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: BSD-3-Clause
  *
  *   Copyright (c) 2016 Freescale Semiconductor, Inc. All rights reserved.
- *   Copyright 2016-2021 NXP
+ *   Copyright 2016-2021,2023-2025 NXP
  *
  */
 
@@ -59,6 +59,7 @@ rte_pmd_dpaa2_set_custom_hash(uint16_t port_id,
 		return -ENOMEM;
 	}
 
+	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;
 	kg_cfg.extracts[0].extract.from_data.size = size;
-- 
2.47.3

---
  Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- -	2025-10-27 15:54:37.338688313 +0000
+++ 0070-net-dpaa2-fix-uninitialized-variable.patch	2025-10-27 15:54:34.847950853 +0000
@@ -1 +1 @@
-From 058043d0590f52dd45555a362d31646c7c3ff943 Mon Sep 17 00:00:00 2001
+From 36e67b7e40dad7c12ebd7383c11d823e8b7ec8a1 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 3ff821f286..ddc091adac 100644
@@ -23,2 +24,2 @@
-@@ -1266,6 +1266,7 @@ Piotr Skajewski <piotrx.skajewski at intel.com>
- Potnuri Bharat Teja <bharat at chelsio.com>
+@@ -1111,6 +1111,7 @@ Piotr Pietruszewski <piotr.pietruszewski at intel.com>
+ Piotr Skajewski <piotrx.skajewski at intel.com>
@@ -30 +31 @@
- Prathisna Padmasanan <prathisna.padmasanan at intel.com>
+ Praveen Shetty <praveen.shetty at intel.com>
@@ -32 +33 @@
-index b1d473429a..13825046d8 100644
+index 4d33b51fea..2f3270fe29 100644
@@ -39 +40 @@
-- *   Copyright 2016-2021,2023-2024 NXP
+- *   Copyright 2016-2021 NXP
@@ -44 +45 @@
-@@ -60,6 +60,7 @@ rte_pmd_dpaa2_set_custom_hash(uint16_t port_id,
+@@ -59,6 +59,7 @@ rte_pmd_dpaa2_set_custom_hash(uint16_t port_id,


More information about the stable mailing list