diff options
author | Thara Gopinath <thara.gopinath@linaro.org> | 2021-05-20 22:20:23 -0400 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2021-05-28 15:11:45 +0800 |
commit | 1339a7c3ba05137a2d2fe75f602311bbfc6fab33 (patch) | |
tree | d4f32635cd154120c2dc5140ebef144cf546e2f1 /kernel/smp.c | |
parent | 9b7b94683a9b9c42a743d591e48b9f51f505dd1f (diff) |
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>
Diffstat (limited to 'kernel/smp.c')
0 files changed, 0 insertions, 0 deletions