patch 'examples/fips_validation: add extra space in JSON buffer' has been queued to stable release 22.11.2

Xueming Li xuemingl at nvidia.com
Sun Apr 9 17:23:35 CEST 2023


Hi,

FYI, your patch has been queued to stable release 22.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 04/11/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/log/?h=22.11-staging/commit/995a6460b24d732d537e2712b8c56af690b10523

Thanks.

Xueming Li <xuemingl at nvidia.com>

---
>From 995a6460b24d732d537e2712b8c56af690b10523 Mon Sep 17 00:00:00 2001
From: Gowrishankar Muthukrishnan <gmuthukrishn at marvell.com>
Date: Tue, 28 Feb 2023 22:58:56 +0530
Subject: [PATCH] examples/fips_validation: add extra space in JSON buffer
Cc: Xueming Li <xuemingl at nvidia.com>

[ upstream commit 904efb4cba8e661d6a09dc671baabea6d31ea9b3 ]

Current test buffer to copy input data of maximum possible length
did not account NULL character, due to which a last input character
is always ignored and it causes tests like RSA SIGVER for modulo
of 4096 bits to fail. This patch fixes it.

Fixes: 0b65d54f3a4 ("examples/fips_validation: fix JSON buffer size")

Signed-off-by: Gowrishankar Muthukrishnan <gmuthukrishn at marvell.com>
Acked-by: Brian Dooley <brian.dooley at intel.com>
---
 examples/fips_validation/fips_validation.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/examples/fips_validation/fips_validation.h b/examples/fips_validation/fips_validation.h
index 565a5cd36e..c4bb041785 100644
--- a/examples/fips_validation/fips_validation.h
+++ b/examples/fips_validation/fips_validation.h
@@ -244,7 +244,7 @@ struct ecdsa_interim_data {
  * Esp, in asym op, modulo bits decide char buffer size.
  * max = (modulo / 4)
  */
-#define FIPS_TEST_JSON_BUF_LEN (4096 / 4)
+#define FIPS_TEST_JSON_BUF_LEN ((4096 / 4) + 1)
 
 struct fips_test_json_info {
 	/* Information used for reading from json */
-- 
2.25.1

---
  Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- -	2023-04-09 21:45:39.505369400 +0800
+++ 0027-examples-fips_validation-add-extra-space-in-JSON-buf.patch	2023-04-09 21:45:38.609042200 +0800
@@ -1 +1 @@
-From 904efb4cba8e661d6a09dc671baabea6d31ea9b3 Mon Sep 17 00:00:00 2001
+From 995a6460b24d732d537e2712b8c56af690b10523 Mon Sep 17 00:00:00 2001
@@ -4,0 +5,3 @@
+Cc: Xueming Li <xuemingl at nvidia.com>
+
+[ upstream commit 904efb4cba8e661d6a09dc671baabea6d31ea9b3 ]
@@ -12 +14,0 @@
-Cc: stable at dpdk.org
@@ -21 +23 @@
-index c4988053c1..abc1d64742 100644
+index 565a5cd36e..c4bb041785 100644
@@ -24 +26 @@
-@@ -247,7 +247,7 @@ struct ecdsa_interim_data {
+@@ -244,7 +244,7 @@ struct ecdsa_interim_data {


More information about the stable mailing list