[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20210528072712.GK7392@gondor.apana.org.au>
Date: Fri, 28 May 2021 15:27:12 +0800
From: Herbert Xu <herbert@...dor.apana.org.au>
To: Thara Gopinath <thara.gopinath@...aro.org>
Cc: davem@...emloft.net, bjorn.andersson@...aro.org,
ebiggers@...gle.com, ardb@...nel.org, linux-crypto@...r.kernel.org,
linux-kernel@...r.kernel.org, linux-arm-msm@...r.kernel.org
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@...aro.org>
> ---
> drivers/crypto/qce/skcipher.c | 15 ++++++++-------
> 1 file changed, 8 insertions(+), 7 deletions(-)
Patch applied. Thanks.
--
Email: Herbert Xu <herbert@...dor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
Powered by blists - more mailing lists