]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
crypto: arm64/aes - Fix 32-bit aes_mac_update() arg treated as 64-bit
authorEric Biggers <ebiggers@kernel.org>
Wed, 18 Feb 2026 21:34:49 +0000 (13:34 -0800)
committerEric Biggers <ebiggers@kernel.org>
Mon, 9 Mar 2026 20:27:20 +0000 (13:27 -0700)
commitf8f08d7cc43237e91e3aedf7b67d015d24c38fcc
treed86608e74a48ee18b9ad6990c8eef082485cfd43
parent7137cbf2b5c9feb6302d6da116eab2047c5f05d2
crypto: arm64/aes - Fix 32-bit aes_mac_update() arg treated as 64-bit

Since the 'enc_after' argument to neon_aes_mac_update() and
ce_aes_mac_update() has type 'int', it needs to be accessed using the
corresponding 32-bit register, not the 64-bit register.  The upper half
of the corresponding 64-bit register may contain garbage.

Fixes: 4860620da7e5 ("crypto: arm64/aes - add NEON/Crypto Extensions CBCMAC/CMAC/XCBC driver")
Cc: stable@vger.kernel.org
Reviewed-by: Ard Biesheuvel <ardb@kernel.org>
Link: https://lore.kernel.org/r/20260218213501.136844-4-ebiggers@kernel.org
Signed-off-by: Eric Biggers <ebiggers@kernel.org>
arch/arm64/crypto/aes-modes.S