patch 'common/cnxk: fix null pointer dereference' has been queued to stable release 21.11.2

Kevin Traynor ktraynor at redhat.com
Wed May 25 18:28:24 CEST 2022


Hi,

FYI, your patch has been queued to stable release 21.11.2

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

Thanks.

Kevin

---
>From a10e2ec8ee39426fbff4b3b896b005355ac701db Mon Sep 17 00:00:00 2001
From: Gowrishankar Muthukrishnan <gmuthukrishn at marvell.com>
Date: Sun, 24 Apr 2022 21:47:23 +0530
Subject: [PATCH] common/cnxk: fix null pointer dereference

[ upstream commit ea0d681efa86cb8902d93409679e3ac507755345 ]

Fix null pointer dereference reported in coverity scan.

Coverity issue: 372065
Fixes: 665b6a7400b ("common/cnxk: add NPC helper API")

Signed-off-by: Gowrishankar Muthukrishnan <gmuthukrishn at marvell.com>
Acked-by: Jerin Jacob <jerinj at marvell.com>
---
 drivers/common/cnxk/roc_npc_utils.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/common/cnxk/roc_npc_utils.c b/drivers/common/cnxk/roc_npc_utils.c
index 0d02872c8b..e36a312576 100644
--- a/drivers/common/cnxk/roc_npc_utils.c
+++ b/drivers/common/cnxk/roc_npc_utils.c
@@ -146,4 +146,7 @@ npc_parse_item_basic(const struct roc_npc_item_info *item,
 	}
 
+	if (info->mask == NULL)
+		return NPC_ERR_INVALID_MASK;
+
 	/* mask specified must be subset of hw supported mask
 	 * mask | hw_mask == hw_mask
-- 
2.34.3

---
  Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- -	2022-05-25 17:26:59.352963125 +0100
+++ 0032-common-cnxk-fix-null-pointer-dereference.patch	2022-05-25 17:26:58.608828392 +0100
@@ -1 +1 @@
-From ea0d681efa86cb8902d93409679e3ac507755345 Mon Sep 17 00:00:00 2001
+From a10e2ec8ee39426fbff4b3b896b005355ac701db Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit ea0d681efa86cb8902d93409679e3ac507755345 ]
+
@@ -10 +11,0 @@
-Cc: stable at dpdk.org



More information about the stable mailing list