From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 5FE8A48A44 for ; Fri, 31 Oct 2025 15:39:41 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 56FEA40696; Fri, 31 Oct 2025 15:39:41 +0100 (CET) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by mails.dpdk.org (Postfix) with ESMTP id 4DBA5406A2 for ; Fri, 31 Oct 2025 15:39:39 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1761921578; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=VueaG+fz1seeZ+MvqF3IQmwwIMgnPtsEVDEpnltDXyk=; b=B4N8r3lCMRjA59djr90XhvmZrUvjwEA3BQLMVmI7FnfnrFawfwdkTVg5PSAVhOH0A6S8Wj VRe++5csQnIoaMyMSQFRconxHoFwp1uAaMEwCieYRcUz3GLJRI35OfURKluH8OUbnEbs8C zZoNhXX155Dq5Fq2Kwe61FjRPozjMqM= Received: from mx-prod-mc-01.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-159-Y9Xg9ZtOOsqAGCQEPqXlQg-1; Fri, 31 Oct 2025 10:39:37 -0400 X-MC-Unique: Y9Xg9ZtOOsqAGCQEPqXlQg-1 X-Mimecast-MFC-AGG-ID: Y9Xg9ZtOOsqAGCQEPqXlQg_1761921576 Received: from mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.111]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-01.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 428E8195608F; Fri, 31 Oct 2025 14:39:36 +0000 (UTC) Received: from rh.redhat.com (unknown [10.44.32.50]) by mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id DF95E180044F; Fri, 31 Oct 2025 14:39:34 +0000 (UTC) From: Kevin Traynor To: Prashant Gupta Cc: dpdk stable Subject: patch 'net/dpaa2: fix uninitialized variable' has been queued to stable release 24.11.4 Date: Fri, 31 Oct 2025 14:33:55 +0000 Message-ID: <20251031143421.324432-113-ktraynor@redhat.com> In-Reply-To: <20251031143421.324432-1-ktraynor@redhat.com> References: <20251031143421.324432-1-ktraynor@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.111 X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: ZMcqGf0kBkaaUgCZtfsPxgKCeqNeNHbVVYXQ7WnGizI_1761921576 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: 8bit content-type: text/plain; charset="US-ASCII"; x-default=true X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org 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 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 --- .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 Pradeep Satyanarayana Prashant Bhole +Prashant Gupta Prashant Upadhyaya Prateek Agarwal 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@dpdk.org @@ -20 +21 @@ -index 984621f26b..68bebe2ee0 100644 +index de8893d104..99cf07f245 100644 @@ -23 +24 @@ -@@ -1267,4 +1267,5 @@ Potnuri Bharat Teja +@@ -1226,4 +1226,5 @@ Potnuri Bharat Teja @@ -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,