patch 'common/cnxk: fix uninitialized pointer read' has been queued to stable release 22.11.3

Xueming Li xuemingl at nvidia.com
Sun Jun 25 08:35:16 CEST 2023


Hi,

FYI, your patch has been queued to stable release 22.11.3

Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet.
It will be pushed if I get no objections before 06/27/23. 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://git.dpdk.org/dpdk-stable/log/?h=22.11-staging

This queued commit can be viewed at:
https://git.dpdk.org/dpdk-stable/commit/?h=22.11-staging&id=d0f357fb6eacdfb0c2d474ba455d861212d90f88

Thanks.

Xueming Li <xuemingl at nvidia.com>

---
>From d0f357fb6eacdfb0c2d474ba455d861212d90f88 Mon Sep 17 00:00:00 2001
From: Satheesh Paul <psatheesh at marvell.com>
Date: Thu, 18 May 2023 15:34:52 +0530
Subject: [PATCH] common/cnxk: fix uninitialized pointer read
Cc: Xueming Li <xuemingl at nvidia.com>

[ upstream commit 0e5d72c422d2e84a158633a4fc7f8c2ce902b199 ]

Fix uninitialized pointer read reported in coverity scan.

Coverity issue: 375811
Fixes: 84d2ea9d4fb3 ("common/cnxk: support custom pre L2 header parsing as raw")

Signed-off-by: Satheesh Paul <psatheesh at marvell.com>
Reviewed-by: Kiran Kumar K <kirankumark at marvell.com>
---
 drivers/common/cnxk/roc_npc_parse.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/common/cnxk/roc_npc_parse.c b/drivers/common/cnxk/roc_npc_parse.c
index 50e663105f..e695b755d7 100644
--- a/drivers/common/cnxk/roc_npc_parse.c
+++ b/drivers/common/cnxk/roc_npc_parse.c
@@ -97,6 +97,7 @@ npc_parse_pre_l2(struct npc_parse_state *pst)
 		(const struct roc_npc_flow_item_raw *)pst->pattern->mask, &info,
 		raw_spec_buf, raw_mask_buf);
 
+	info.def_mask = NULL;
 	info.hw_mask = &hw_mask;
 	npc_get_hw_supp_mask(pst, &info, lid, lt);
 
-- 
2.25.1

---
  Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- -	2023-06-25 14:32:01.136826300 +0800
+++ 0098-common-cnxk-fix-uninitialized-pointer-read.patch	2023-06-25 14:31:58.545773900 +0800
@@ -1 +1 @@
-From 0e5d72c422d2e84a158633a4fc7f8c2ce902b199 Mon Sep 17 00:00:00 2001
+From d0f357fb6eacdfb0c2d474ba455d861212d90f88 Mon Sep 17 00:00:00 2001
@@ -4,0 +5,3 @@
+Cc: Xueming Li <xuemingl at nvidia.com>
+
+[ upstream commit 0e5d72c422d2e84a158633a4fc7f8c2ce902b199 ]
@@ -10 +12,0 @@
-Cc: stable at dpdk.org
@@ -19 +21 @@
-index f746b9cb6d..571fdb36fc 100644
+index 50e663105f..e695b755d7 100644


More information about the stable mailing list