Messages in this thread | | | Date | Fri, 28 May 2021 15:27:12 +0800 | From | Herbert Xu <> | Subject | Re: [PATCH] crypto: qce: skcipher: Fix incorrect sg count for dma transfers |
| |
On Thu, May 20, 2021 at 10:20:23PM -0400, Thara Gopinath wrote: > Use the sg count returned by dma_map_sg to call into > dmaengine_prep_slave_sg rather than using the original sg count. dma_map_sg > can merge consecutive sglist entries, thus making the original sg count > wrong. This is a fix for memory coruption issues observed while testing > encryption/decryption of large messages using libkcapi framework. > > Patch has been tested further by running full suite of tcrypt.ko tests > including fuzz tests. > > Signed-off-by: Thara Gopinath <thara.gopinath@linaro.org> > --- > drivers/crypto/qce/skcipher.c | 15 ++++++++------- > 1 file changed, 8 insertions(+), 7 deletions(-)
Patch applied. Thanks. -- Email: Herbert Xu <herbert@gondor.apana.org.au> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
| |