linux-stable/arch/arm64/tools
James Morse a47761562c arm64: errata: Remove AES hwcap for COMPAT tasks
[ Upstream commit 44b3834b2e ]

Cortex-A57 and Cortex-A72 have an erratum where an interrupt that
occurs between a pair of AES instructions in aarch32 mode may corrupt
the ELR. The task will subsequently produce the wrong AES result.

The AES instructions are part of the cryptographic extensions, which are
optional. User-space software will detect the support for these
instructions from the hwcaps. If the platform doesn't support these
instructions a software implementation should be used.

Remove the hwcap bits on affected parts to indicate user-space should
not use the AES instructions.

Acked-by: Ard Biesheuvel <ardb@kernel.org>
Signed-off-by: James Morse <james.morse@arm.com>
Link: https://lore.kernel.org/r/20220714161523.279570-3-james.morse@arm.com
Signed-off-by: Will Deacon <will@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-08-17 14:40:21 +02:00
..
Makefile arm64: clean up tools Makefile 2022-03-08 11:17:10 +00:00
cpucaps arm64: errata: Remove AES hwcap for COMPAT tasks 2022-08-17 14:40:21 +02:00
gen-cpucaps.awk