]> Gentwo Git Trees - linux/.git/commit
crypto/arm64: sm4 - Switch to 'ksimd' scoped guard API
authorArd Biesheuvel <ardb@kernel.org>
Wed, 1 Oct 2025 11:50:51 +0000 (13:50 +0200)
committerArd Biesheuvel <ardb@kernel.org>
Wed, 12 Nov 2025 08:52:02 +0000 (09:52 +0100)
commit03bc4768fbf1bfe72497204410b58dacf29730d2
tree9323a710a2dcd1dade937d33f7b9771cd2e3e9c1
parentab9615b5013fe8a62933212b37faa28d09fe0cbf
crypto/arm64: sm4 - Switch to 'ksimd' scoped guard API

Switch to the more abstract 'scoped_ksimd()' API, which will be modified
in a future patch to transparently allocate a kernel mode FP/SIMD state
buffer on the stack, so that kernel mode FP/SIMD code remains
preemptible in principle, but without the memory overhead that adds 528
bytes to the size of struct task_struct.

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>
arch/arm64/crypto/sm4-ce-ccm-glue.c
arch/arm64/crypto/sm4-ce-cipher-glue.c
arch/arm64/crypto/sm4-ce-gcm-glue.c
arch/arm64/crypto/sm4-ce-glue.c
arch/arm64/crypto/sm4-neon-glue.c