Skip to content
Commit 660ca947 authored by Herbert Xu's avatar Herbert Xu
Browse files

crypto: caam - Fix edesc/iv ordering mixup



The attempt to add DMA alignment padding by moving IV to the front
of edesc was completely broken as it didn't change the places where
edesc was freed.

It's also wrong as the IV may still share a cache-line with the
edesc.

Fix this by restoring the original layout and simply reserving
enough memmory so that the IV is on a DMA cache-line by itself.

Reported-by: default avatarMeenakshi Aggarwal <meenakshi.aggarwal@nxp.com>
Fixes: 199354d7

 ("crypto: caam - Remove GFP_DMA and add DMA alignment padding")
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent 8b844753
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment