Searched hist:"1339 a7c3" (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/drivers/crypto/qce/ |
H A D | skcipher.c | 1339a7c3 Thu May 20 21:20:23 CDT 2021 Thara Gopinath <thara.gopinath@linaro.org> crypto: qce: skcipher: Fix incorrect sg count for dma transfers
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> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
|