]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
lib/crypto: aes: Fix missing MMU protection for AES S-box
authorEric Biggers <ebiggers@kernel.org>
Wed, 7 Jan 2026 05:20:23 +0000 (21:20 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 19 Jan 2026 12:12:08 +0000 (13:12 +0100)
commit5522e64e4ff79e7635cf273875589d4f5a819965
tree50a5e5719dfdef57a5a620992c3aff68850bc5bd
parentf42c84d9fb2929bc03a8ec2c6db3e3ab01c2e319
lib/crypto: aes: Fix missing MMU protection for AES S-box

commit 74d74bb78aeccc9edc10db216d6be121cf7ec176 upstream.

__cacheline_aligned puts the data in the ".data..cacheline_aligned"
section, which isn't marked read-only i.e. it doesn't receive MMU
protection.  Replace it with ____cacheline_aligned which does the right
thing and just aligns the data while keeping it in ".rodata".

Fixes: b5e0b032b6c3 ("crypto: aes - add generic time invariant AES cipher")
Cc: stable@vger.kernel.org
Reported-by: Qingfang Deng <dqfext@gmail.com>
Closes: https://lore.kernel.org/r/20260105074712.498-1-dqfext@gmail.com/
Acked-by: Ard Biesheuvel <ardb@kernel.org>
Link: https://lore.kernel.org/r/20260107052023.174620-1-ebiggers@kernel.org
Signed-off-by: Eric Biggers <ebiggers@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
lib/crypto/aes.c