]> git.baikalelectronics.ru Git - kernel.git/commit
crypto/arm64: aes-ce-gcm - add missing kernel_neon_begin/end pair
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Fri, 27 Jul 2018 12:59:15 +0000 (14:59 +0200)
committerWill Deacon <will.deacon@arm.com>
Tue, 31 Jul 2018 12:20:30 +0000 (13:20 +0100)
commit3cab06a6ba8e305b4529c25b25a902de22bbeff0
treecd4d59d8937424000afd8d7e0a138f8ebd82289b
parentde5c44bd47ded84db2f03e6e3916668ed0e0cdc0
crypto/arm64: aes-ce-gcm - add missing kernel_neon_begin/end pair

Calling pmull_gcm_encrypt_block() requires kernel_neon_begin() and
kernel_neon_end() to be used since the routine touches the NEON
register file. Add the missing calls.

Also, since NEON register contents are not preserved outside of
a kernel mode NEON region, pass the key schedule array again.

Fixes: 3bb8059da599 ("crypto: arm64/aes-ghash - yield NEON after every ...")
Acked-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm64/crypto/ghash-ce-glue.c