]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
lib/crypto: arm64/sha1: Remove obsolete chunking logic
authorEric Biggers <ebiggers@kernel.org>
Wed, 1 Apr 2026 00:05:44 +0000 (17:05 -0700)
committerEric Biggers <ebiggers@kernel.org>
Wed, 1 Apr 2026 20:02:10 +0000 (13:02 -0700)
commitfd5017138ce03f34d0e67758df51e8bb30c0d91b
treebfbcf476457f81c0430870d26da9ae51da1fd828
parentdec1061f0ae9e00f13b9e141f3b5cae053da1346
lib/crypto: arm64/sha1: Remove obsolete chunking logic

Since commit aefbab8e77eb ("arm64: fpsimd: Preserve/restore kernel mode
NEON at context switch"), kernel-mode NEON sections have been
preemptible on arm64.  And since commit 7dadeaa6e851 ("sched: Further
restrict the preemption modes"), voluntary preemption is no longer
supported on arm64 either.  Therefore, there's no longer any need to
limit the length of kernel-mode NEON sections on arm64.

Simplify the SHA-1 code accordingly.

Reviewed-by: Ard Biesheuvel <ardb@kernel.org>
Link: https://lore.kernel.org/r/20260401000548.133151-6-ebiggers@kernel.org
Signed-off-by: Eric Biggers <ebiggers@kernel.org>
lib/crypto/arm64/sha1-ce-core.S
lib/crypto/arm64/sha1.h