]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
lib/crypto: Switch ARM and arm64 to 'ksimd' scoped guard API
authorArd Biesheuvel <ardb@kernel.org>
Wed, 1 Oct 2025 11:29:23 +0000 (13:29 +0200)
committerArd Biesheuvel <ardb@kernel.org>
Wed, 12 Nov 2025 08:51:13 +0000 (09:51 +0100)
commitf53d18a4e67eacf665e9d60727d508387f84327b
tree94fbda6d3ab2c319d07158593c5b9fcac4e504c6
parent814f5415d3e3084eeb0550acdee5eca8b4966055
lib/crypto: Switch ARM and arm64 to 'ksimd' scoped guard API

Before modifying the prototypes of kernel_neon_begin() and
kernel_neon_end() to accommodate kernel mode FP/SIMD state buffers
allocated on the stack, move arm64 to the new 'ksimd' scoped guard API,
which encapsulates the calls to those functions.

For symmetry, do the same for 32-bit ARM too.

Reviewed-by: Eric Biggers <ebiggers@kernel.org>
Reviewed-by: Jonathan Cameron <jonathan.cameron@huawei.com>
Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
lib/crypto/arm/chacha.h
lib/crypto/arm/curve25519.h
lib/crypto/arm/poly1305.h
lib/crypto/arm/sha1.h
lib/crypto/arm/sha256.h
lib/crypto/arm/sha512.h
lib/crypto/arm64/chacha.h
lib/crypto/arm64/poly1305.h
lib/crypto/arm64/sha1.h
lib/crypto/arm64/sha256.h
lib/crypto/arm64/sha512.h