acrn-kernel/arch/arm64/crypto
Eric Biggers b952a9cf3d crypto: arm64/aes-neonbs - fix crash with CFI enabled
commit 47446d7cd4 upstream.

aesbs_ecb_encrypt(), aesbs_ecb_decrypt(), aesbs_xts_encrypt(), and
aesbs_xts_decrypt() are called via indirect function calls.  Therefore
they need to use SYM_TYPED_FUNC_START instead of SYM_FUNC_START to cause
their type hashes to be emitted when the kernel is built with
CONFIG_CFI_CLANG=y.  Otherwise, the code crashes with a CFI failure if
the compiler doesn't happen to optimize out the indirect calls.

Fixes: c50d32859e ("arm64: Add types to indirect called assembly functions")
Cc: stable@vger.kernel.org
Signed-off-by: Eric Biggers <ebiggers@google.com>
Reviewed-by: Ard Biesheuvel <ardb@kernel.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-05-11 23:03:02 +09:00
..
.gitignore
Kconfig
Makefile
aes-ce-ccm-core.S
aes-ce-ccm-glue.c
aes-ce-core.S
aes-ce-glue.c
aes-ce-setkey.h
aes-ce.S
aes-cipher-core.S
aes-cipher-glue.c
aes-glue.c
aes-modes.S
aes-neon.S
aes-neonbs-core.S
aes-neonbs-glue.c
chacha-neon-core.S
chacha-neon-glue.c
crct10dif-ce-core.S
crct10dif-ce-glue.c
ghash-ce-core.S
ghash-ce-glue.c
nh-neon-core.S
nhpoly1305-neon-glue.c
poly1305-armv8.pl
poly1305-glue.c
polyval-ce-core.S
polyval-ce-glue.c
sha1-ce-core.S
sha1-ce-glue.c
sha2-ce-core.S
sha2-ce-glue.c
sha3-ce-core.S
sha3-ce-glue.c
sha256-glue.c
sha512-armv8.pl
sha512-ce-core.S
sha512-ce-glue.c
sha512-glue.c
sm3-ce-core.S
sm3-ce-glue.c
sm3-neon-core.S
sm3-neon-glue.c
sm4-ce-cipher-core.S
sm4-ce-cipher-glue.c
sm4-ce-core.S
sm4-ce-glue.c
sm4-neon-core.S
sm4-neon-glue.c