[dpdk-stable] patch 'crypto/octeontx2: fix unaligned access to device memory' has been queued to stable release 20.11.4

Xueming Li xuemingl at nvidia.com
Wed Nov 10 07:28:19 CET 2021


Hi,

FYI, your patch has been queued to stable release 20.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/12/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/steevenlee/dpdk

This queued commit can be viewed at:
https://github.com/steevenlee/dpdk/commit/e4509540bed8f2a21e17fe47ee90214db00ffecd

Thanks.

Xueming Li <xuemingl at nvidia.com>

---
>From e4509540bed8f2a21e17fe47ee90214db00ffecd Mon Sep 17 00:00:00 2001
From: Danny Patel <dannyp at marvell.com>
Date: Fri, 27 Aug 2021 11:03:58 +0530
Subject: [PATCH] crypto/octeontx2: fix unaligned access to device memory
Cc: Xueming Li <xuemingl at nvidia.com>

[ upstream commit 05f157b8c5b469173712b0ab7daa91bbe52ec1df ]

Use otx2_mbox_memcpy() instead of memcpy() to prevent unaligned access.

Fixes: a0645ed0d6ef ("crypto/octeontx2: discover capabilities")

Signed-off-by: Danny Patel <dannyp at marvell.com>
Signed-off-by: Anoob Joseph <anoobj at marvell.com>
---
 drivers/crypto/octeontx2/otx2_cryptodev_mbox.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/crypto/octeontx2/otx2_cryptodev_mbox.c b/drivers/crypto/octeontx2/otx2_cryptodev_mbox.c
index 75e610db5c..d762baf927 100644
--- a/drivers/crypto/octeontx2/otx2_cryptodev_mbox.c
+++ b/drivers/crypto/octeontx2/otx2_cryptodev_mbox.c
@@ -36,7 +36,7 @@ otx2_cpt_hardware_caps_get(const struct rte_cryptodev *dev,
 		return -EPIPE;
 	}
 
-	memcpy(hw_caps, rsp->eng_caps,
+	otx2_mbox_memcpy(hw_caps, rsp->eng_caps,
 		sizeof(union cpt_eng_caps) * CPT_MAX_ENG_TYPES);
 
 	return 0;
-- 
2.33.0

---
  Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- -	2021-11-10 14:17:02.803791067 +0800
+++ 0015-crypto-octeontx2-fix-unaligned-access-to-device-memo.patch	2021-11-10 14:17:01.754080379 +0800
@@ -1 +1 @@
-From 05f157b8c5b469173712b0ab7daa91bbe52ec1df Mon Sep 17 00:00:00 2001
+From e4509540bed8f2a21e17fe47ee90214db00ffecd Mon Sep 17 00:00:00 2001
@@ -4,0 +5,3 @@
+Cc: Xueming Li <xuemingl at nvidia.com>
+
+[ upstream commit 05f157b8c5b469173712b0ab7daa91bbe52ec1df ]
@@ -9 +11,0 @@
-Cc: stable at dpdk.org
@@ -18 +20 @@
-index 812515fc1b..1a8edae7eb 100644
+index 75e610db5c..d762baf927 100644
@@ -21 +23,2 @@
-@@ -37,7 +37,7 @@ otx2_cpt_hardware_caps_get(const struct rte_cryptodev *dev,
+@@ -36,7 +36,7 @@ otx2_cpt_hardware_caps_get(const struct rte_cryptodev *dev,
+ 		return -EPIPE;
@@ -24 +26,0 @@
- 	vf->cpt_revision = rsp->cpt_revision;


More information about the stable mailing list