RE: [PATCH] crypto/qat: fix stack buffer overflow in SGL loop

2023-05-03 Thread Akhil Goyal
> Acked-by: Kai Ji Applied to dpdk-next-crypto Thanks.

RE: [PATCH] crypto/qat: fix stack buffer overflow in SGL loop

2023-04-14 Thread Dooley, Brian
Hi Ciara, > -Original Message- > From: Ciara Power > Sent: Friday 14 April 2023 13:32 > To: Ji, Kai > Cc: dev@dpdk.org; Power, Ciara ; sta...@dpdk.org > Subject: [PATCH] crypto/qat: fix stack buffer overflow in SGL loop > > The cvec pointer was incremented incor

RE: [PATCH] crypto/qat: fix stack buffer overflow in SGL loop

2023-04-14 Thread Ji, Kai
Acked-by: Kai Ji > -Original Message- > From: Power, Ciara > Sent: Friday, April 14, 2023 1:32 PM > To: Ji, Kai > Cc: dev@dpdk.org; Power, Ciara ; sta...@dpdk.org > Subject: [PATCH] crypto/qat: fix stack buffer overflow in SGL loop > > The cvec pointer was in

[PATCH] crypto/qat: fix stack buffer overflow in SGL loop

2023-04-14 Thread Ciara Power
The cvec pointer was incremented incorrectly in the case where the length of remaining_off equals cvec len, and there is no next cvec. This led to cvec->iova being invalid memory to access. Instead, only increment the cvec pointer when we know there is a next cvec to point to, by checking the i va