patch 'test/crypto: use standard memcpy for wireless cipher IV' has been queued to stable release 24.11.9

luca.boccassi at gmail.com luca.boccassi at gmail.com
Fri Nov 20 21:29:36 CET 2026


Hi,

FYI, your patch has been queued to stable release 24.11.9

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/22/26. 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/ee4dc6bf7faaac4eaf355703a936ead82039fbde

Thanks.

Luca Boccassi

---
>From ee4dc6bf7faaac4eaf355703a936ead82039fbde Mon Sep 17 00:00:00 2001
From: Kai Ji <kai.ji at intel.com>
Date: Tue, 17 Nov 2026 14:51:04 +0000
Subject: [PATCH] test/crypto: use standard memcpy for wireless cipher IV

[ upstream commit 25743b55543b57b7f447d7d52dc002492dcd6334 ]

Coverity reports an out-of-bounds read of the ZUC cipher IV when tracing
the optimized rte_memcpy() implementation. The ZUC test vectors use
16-byte or 25-byte IVs, which fit in the 64-byte source buffer.

Use memcpy() for IV copies in both the in-place and out-of-place
wireless cipher operation helpers. These small test setup copies do
not need the optimized packet data copy routine. The copy lengths
and operation layout remain unchanged.

Coverity issue: 507468

Fixes: 27a1c4714d54 ("app/test: add KASUMI crypto")

Signed-off-by: Kai Ji <kai.ji at intel.com>
---
 app/test/test_cryptodev.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/app/test/test_cryptodev.c b/app/test/test_cryptodev.c
index 030040339a..031e358edd 100644
--- a/app/test/test_cryptodev.c
+++ b/app/test/test_cryptodev.c
@@ -2976,7 +2976,7 @@ create_wireless_algo_cipher_operation(const uint8_t *iv, uint8_t iv_len,
 	sym_op->m_src = ut_params->ibuf;
 
 	/* iv */
-	rte_memcpy(rte_crypto_op_ctod_offset(ut_params->op, uint8_t *, IV_OFFSET),
+	memcpy(rte_crypto_op_ctod_offset(ut_params->op, uint8_t *, IV_OFFSET),
 			iv, iv_len);
 	sym_op->cipher.data.length = cipher_len;
 	sym_op->cipher.data.offset = cipher_offset;
@@ -3007,7 +3007,7 @@ create_wireless_algo_cipher_operation_oop(const uint8_t *iv, uint8_t iv_len,
 	sym_op->m_dst = ut_params->obuf;
 
 	/* iv */
-	rte_memcpy(rte_crypto_op_ctod_offset(ut_params->op, uint8_t *, IV_OFFSET),
+	memcpy(rte_crypto_op_ctod_offset(ut_params->op, uint8_t *, IV_OFFSET),
 			iv, iv_len);
 	sym_op->cipher.data.length = cipher_len;
 	sym_op->cipher.data.offset = cipher_offset;
-- 
2.47.3

---
  Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- -	2026-11-20 20:29:05.485476054 +0000
+++ 0007-test-crypto-use-standard-memcpy-for-wireless-cipher-.patch	2026-11-20 20:29:05.200110501 +0000
@@ -1 +1 @@
-From 25743b55543b57b7f447d7d52dc002492dcd6334 Mon Sep 17 00:00:00 2001
+From ee4dc6bf7faaac4eaf355703a936ead82039fbde Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit 25743b55543b57b7f447d7d52dc002492dcd6334 ]
+
@@ -18 +19,0 @@
-Cc: stable at dpdk.org
@@ -26 +27 @@
-index 5051ee7fae..eb955766bc 100644
+index 030040339a..031e358edd 100644
@@ -29 +30 @@
-@@ -3007,7 +3007,7 @@ create_wireless_algo_cipher_operation(const uint8_t *iv, uint8_t iv_len,
+@@ -2976,7 +2976,7 @@ create_wireless_algo_cipher_operation(const uint8_t *iv, uint8_t iv_len,
@@ -38 +39 @@
-@@ -3038,7 +3038,7 @@ create_wireless_algo_cipher_operation_oop(const uint8_t *iv, uint8_t iv_len,
+@@ -3007,7 +3007,7 @@ create_wireless_algo_cipher_operation_oop(const uint8_t *iv, uint8_t iv_len,


More information about the stable mailing list