patch 'net/iavf: fix null pointer dereference' has been queued to stable release 21.11.1

Kevin Traynor ktraynor at redhat.com
Mon Feb 21 16:35:54 CET 2022


Hi,

FYI, your patch has been queued to stable release 21.11.1

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

Thanks.

Kevin

---
>From f746bb72bac435c1cc81beb2e2fd444ece918db4 Mon Sep 17 00:00:00 2001
From: Weiguo Li <liwg06 at foxmail.com>
Date: Fri, 28 Jan 2022 17:43:15 +0800
Subject: [PATCH] net/iavf: fix null pointer dereference

[ upstream commit 1b72049dc2d3b024b8026f57001a98ea1f80e5a7 ]

Check for memory allocation failure is added to avoid null
pointer dereference.

Fixes: 6bc987ecb860 ("net/iavf: support IPsec inline crypto")

Signed-off-by: Weiguo Li <liwg06 at foxmail.com>
Acked-by: Radu Nicolau <radu.nicolau at intel.com>
---
 drivers/net/iavf/iavf_ipsec_crypto.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/net/iavf/iavf_ipsec_crypto.c b/drivers/net/iavf/iavf_ipsec_crypto.c
index adf101ab8a..6ac1b213db 100644
--- a/drivers/net/iavf/iavf_ipsec_crypto.c
+++ b/drivers/net/iavf/iavf_ipsec_crypto.c
@@ -1353,4 +1353,6 @@ iavf_ipsec_crypto_set_security_capabililites(struct iavf_security_ctx
 		sizeof(struct rte_cryptodev_capabilities) *
 		(number_of_capabilities + 1), 0);
+	if (!capabilities)
+		return -ENOMEM;
 	capabilities[number_of_capabilities].op = RTE_CRYPTO_OP_TYPE_UNDEFINED;
 
-- 
2.34.1

---
  Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- -	2022-02-21 15:22:48.119178762 +0000
+++ 0165-net-iavf-fix-null-pointer-dereference.patch	2022-02-21 15:22:44.317704635 +0000
@@ -1 +1 @@
-From 1b72049dc2d3b024b8026f57001a98ea1f80e5a7 Mon Sep 17 00:00:00 2001
+From f746bb72bac435c1cc81beb2e2fd444ece918db4 Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit 1b72049dc2d3b024b8026f57001a98ea1f80e5a7 ]
+
@@ -10 +11,0 @@
-Cc: stable at dpdk.org



More information about the stable mailing list