Re: [PATCH 0/9] lib/crypto: arm64: Remove obsolete chunking logic

From: Ard Biesheuvel

Date: Wed Apr 01 2026 - 03:01:27 EST


On Wed, 1 Apr 2026, at 02:05, Eric Biggers wrote:
> 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.
>
> This series simplifies the code in lib/crypto/arm64/ accordingly by
> using longer kernel-mode NEON sections instead of multiple shorter ones.
>
> This series is targeting libcrypto-next.
>
> Eric Biggers (9):
> lib/crypto: arm64/aes: Remove obsolete chunking logic
> lib/crypto: arm64/chacha: Remove obsolete chunking logic
> lib/crypto: arm64/gf128hash: Remove obsolete chunking logic
> lib/crypto: arm64/poly1305: Remove obsolete chunking logic
> lib/crypto: arm64/sha1: Remove obsolete chunking logic
> lib/crypto: arm64/sha256: Remove obsolete chunking logic
> lib/crypto: arm64/sha512: Remove obsolete chunking logic
> lib/crypto: arm64/sha3: Remove obsolete chunking logic
> arm64: fpsimd: Remove obsolete cond_yield macro
>

Reviewed-by: Ard Biesheuvel <ardb@xxxxxxxxxx>