Thread (11 messages) 11 messages, 4 authors, 2021-07-18

Re: [dpdk-dev] [PATCH] test: fix crypto_op length for sessionless case

From: Brandon Lo <hidden>
Date: 2021-07-06 16:10:17

Hi all,

I have rerun the failing unit test. It also recreated the report, so
that category should be passing now.
Currently, I am looking more into the ABI test that is failing on
Arch, as well as the failures with DTS tests.
I will keep this thread updated.

Thanks,
Brandon

On Mon, Jul 5, 2021 at 2:30 AM Gujjar, Abhinandan S
[off-list ref] wrote:
Hi Jerin/Akhil,

Could you please review the patch?

Regards
Abhinandan
quoted
-----Original Message-----
From: Yigit, Ferruh <redacted>
Sent: Saturday, July 3, 2021 4:56 AM
To: Gujjar, Abhinandan S <redacted>; dev@dpdk.org;
jerinj@marvell.com; dpdklab@iol.unh.edu; aconole@redhat.com
Cc: gakhil@marvell.com; Power, Ciara <redacted>; Ali Alnubani
[off-list ref]
Subject: Re: [PATCH] test: fix crypto_op length for sessionless case

On 7/2/2021 7:08 PM, Gujjar, Abhinandan S wrote:
quoted
Hi Aaron/dpdklab,

This patch's CI seems to have lot of false positive!
Ferruh triggered the re-test sometime back. Now, it is reporting less.
Could you please check from your end? Thanks!
Only a malloc related unit test is still failing, which seems unrelated with the
patch. I am triggering it one more time, third time lucky.

Also after re-run, some tests passing now still shown as fail in the patchwork
checks table. Isn't re-run sending the patchwork test status again?
quoted
Regards
Abhinandan

quoted
-----Original Message-----
From: Gujjar, Abhinandan S <redacted>
Sent: Wednesday, June 30, 2021 6:17 PM
To: dev@dpdk.org; jerinj@marvell.com
Cc: gakhil@marvell.com; Gujjar, Abhinandan S
[off-list ref]; Power, Ciara [off-list ref]
Subject: [PATCH] test: fix crypto_op length for sessionless case

Currently, private_data_offset for the sessionless is computed
wrongly which includes extra bytes added because of using
sizeof(struct
rte_crypto_sym_xform) * 2) instead of (sizeof(union
rte_event_crypto_metadata)). Due to this buffer overflow, the
corruption was leading to test application crash while freeing the ops
mempool.
quoted
quoted
Fixes: 3c2c535ecfc0 ("test: add event crypto adapter auto-test")
Reported-by: ciara.power@intel.com

Signed-off-by: Abhinandan Gujjar <redacted>
---
 app/test/test_event_crypto_adapter.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/app/test/test_event_crypto_adapter.c
b/app/test/test_event_crypto_adapter.c
index f689bc1f2..688ac0b2f 100644
--- a/app/test/test_event_crypto_adapter.c
+++ b/app/test/test_event_crypto_adapter.c
@@ -229,7 +229,7 @@ test_op_forward_mode(uint8_t session_less)
              first_xform = &cipher_xform;
              sym_op->xform = first_xform;
              uint32_t len = IV_OFFSET + MAXIMUM_IV_LENGTH +
-                             (sizeof(struct rte_crypto_sym_xform) * 2);
+                             (sizeof(union
+ rte_event_crypto_metadata));
              op->private_data_offset = len;
              /* Fill in private data information */
              rte_memcpy(&m_data.response_info, &response_info, @@ -
424,7 +424,7 @@ test_op_new_mode(uint8_t session_less)
              first_xform = &cipher_xform;
              sym_op->xform = first_xform;
              uint32_t len = IV_OFFSET + MAXIMUM_IV_LENGTH +
-                             (sizeof(struct rte_crypto_sym_xform) * 2);
+                             (sizeof(union
+ rte_event_crypto_metadata));
              op->private_data_offset = len;
              /* Fill in private data information */
              rte_memcpy(&m_data.response_info, &response_info,
--
2.25.1

-- 

Brandon Lo

UNH InterOperability Laboratory

21 Madbury Rd, Suite 100, Durham, NH 03824

blo@iol.unh.edu

www.iol.unh.edu
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help