arm64: Advertise CPUs capable of running 32-bit applications in sysfs
authorWill Deacon <will@kernel.org>
Fri, 30 Jul 2021 11:24:40 +0000 (12:24 +0100)
committerPeter Zijlstra <peterz@infradead.org>
Fri, 20 Aug 2021 10:33:07 +0000 (12:33 +0200)
commit7af33504d1c8077b40121294b5eb6e680a859468
tree0e752bf86c2ee085da287eab821325e9cd6faca0
parentdf950811f4a884d08f05e22a8e0089d54bb4ba70
arm64: Advertise CPUs capable of running 32-bit applications in sysfs

Since 32-bit applications will be killed if they are caught trying to
execute on a 64-bit-only CPU in a mismatched system, advertise the set
of 32-bit capable CPUs to userspace in sysfs.

Signed-off-by: Will Deacon <will@kernel.org>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Reviewed-by: Catalin Marinas <catalin.marinas@arm.com>
Link: https://lore.kernel.org/r/20210730112443.23245-14-will@kernel.org
Documentation/ABI/testing/sysfs-devices-system-cpu
arch/arm64/kernel/cpufeature.c