[dpdk-stable] patch 'net/iavf: fix RSS key access out of bound' has been queued to stable release 20.11.3

luca.boccassi at gmail.com luca.boccassi at gmail.com
Mon Jul 12 15:04:12 CEST 2021


Hi,

FYI, your patch has been queued to stable release 20.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 07/14/21. 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/58fbfecc2a176904fcdd738e0a544029bb278c20

Thanks.

Luca Boccassi

---
>From 58fbfecc2a176904fcdd738e0a544029bb278c20 Mon Sep 17 00:00:00 2001
From: Haiyue Wang <haiyue.wang at intel.com>
Date: Wed, 19 May 2021 15:59:33 +0800
Subject: [PATCH] net/iavf: fix RSS key access out of bound

[ upstream commit 8ce5678f28a80871c9f4ef41ef52ba206ef5a17f ]

The array rss_key has size 'vf->vf_res->rss_key_size', the array index
should be less than that.

Fixes: 69dd4c3d0898 ("net/avf: enable queue and device")

Signed-off-by: Haiyue Wang <haiyue.wang at intel.com>
Acked-by: Beilei Xing <beilei.xing at intel.com>
---
 drivers/net/iavf/iavf_ethdev.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/iavf/iavf_ethdev.c b/drivers/net/iavf/iavf_ethdev.c
index 649061d2ba..9671c957d8 100644
--- a/drivers/net/iavf/iavf_ethdev.c
+++ b/drivers/net/iavf/iavf_ethdev.c
@@ -274,7 +274,7 @@ iavf_init_rss(struct iavf_adapter *adapter)
 	/* configure RSS key */
 	if (!rss_conf->rss_key) {
 		/* Calculate the default hash key */
-		for (i = 0; i <= vf->vf_res->rss_key_size; i++)
+		for (i = 0; i < vf->vf_res->rss_key_size; i++)
 			vf->rss_key[i] = (uint8_t)rte_rand();
 	} else
 		rte_memcpy(vf->rss_key, rss_conf->rss_key,
-- 
2.30.2

---
  Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- -	2021-07-12 13:41:37.731034242 +0100
+++ 0017-net-iavf-fix-RSS-key-access-out-of-bound.patch	2021-07-12 13:41:36.226117111 +0100
@@ -1 +1 @@
-From 8ce5678f28a80871c9f4ef41ef52ba206ef5a17f Mon Sep 17 00:00:00 2001
+From 58fbfecc2a176904fcdd738e0a544029bb278c20 Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit 8ce5678f28a80871c9f4ef41ef52ba206ef5a17f ]
+
@@ -9 +10,0 @@
-Cc: stable at dpdk.org
@@ -19 +20 @@
-index a7ef7a6d4d..5290588b17 100644
+index 649061d2ba..9671c957d8 100644
@@ -22 +23 @@
-@@ -366,7 +366,7 @@ iavf_init_rss(struct iavf_adapter *adapter)
+@@ -274,7 +274,7 @@ iavf_init_rss(struct iavf_adapter *adapter)


More information about the stable mailing list