[PATCH RESEND] crypto: sun8i-ss: do not use sg_dma_len before calling DMA functions
Herbert Xu
herbert at gondor.apana.org.au
Mon Apr 28 04:54:42 PDT 2025
On Sun, Apr 27, 2025 at 01:12:36PM +0200, Corentin Labbe wrote:
> When testing sun8i-ss with multi_v7_defconfig, all CBC algorithm fail crypto
> selftests.
> This is strange since on sunxi_defconfig, everything was ok.
> The problem was in the IV setup loop which never run because sg_dma_len
> was 0.
>
> Fixes: 359e893e8af4 ("crypto: sun8i-ss - rework handling of IV")
> Signed-off-by: Corentin Labbe <clabbe.montjoie at gmail.com>
> ---
>
> If someone know why sunxi_defconfig have sg_dma_len() which always works
> even with any DMA call not done.
>
> drivers/crypto/allwinner/sun8i-ss/sun8i-ss-cipher.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
Patch applied. Thanks.
--
Email: Herbert Xu <herbert at gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
More information about the linux-arm-kernel
mailing list