]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
crypto: arm/crc32 - add kCFI annotations to asm routines
authorArd Biesheuvel <ardb@kernel.org>
Mon, 10 Jun 2024 15:26:39 +0000 (17:26 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 21 Jun 2024 12:30:33 +0000 (22:30 +1000)
commitff33c2e6af99afcac3024a5c3ec8730d1e6b8ac7
tree3817c49ad2bdb463a55e6b19e1e84d2eed7c63d6
parent3cbe18b0bc9f0653709adbdadad04491a190c71a
crypto: arm/crc32 - add kCFI annotations to asm routines

The crc32/crc32c implementations using the scalar CRC32 instructions are
accessed via indirect calls, and so they must be annotated with type ids
in order to execute correctly when kCFI is enabled.

Cc: Kees Cook <keescook@chromium.org>
Cc: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Reviewed-by: Kees Cook <kees@kernel.org>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
arch/arm/crypto/crc32-ce-core.S