arm64: Kill 32-bit applications scheduled on 64-bit-only CPUs
authorWill Deacon <will@kernel.org>
Tue, 8 Jun 2021 18:02:57 +0000 (19:02 +0100)
committerWill Deacon <will@kernel.org>
Fri, 11 Jun 2021 12:25:41 +0000 (13:25 +0100)
commit873c3e89777c8c56f936ae7aceca1a102aac6b9e
treec84816eb04b65c9c89fe29e873fc311e108b532f
parent2f6a49bbc01da17867c26f6f650b1142e1d7c69d
arm64: Kill 32-bit applications scheduled on 64-bit-only CPUs

Scheduling a 32-bit application on a 64-bit-only CPU is a bad idea.

Ensure that 32-bit applications always take the slow-path when returning
to userspace on a system with mismatched support at EL0, so that we can
avoid trying to run on a 64-bit-only CPU and force a SIGKILL instead.

Reviewed-by: Catalin Marinas <catalin.marinas@arm.com>
Link: https://lore.kernel.org/r/20210608180313.11502-5-will@kernel.org
Signed-off-by: Will Deacon <will@kernel.org>
arch/arm64/kernel/process.c
arch/arm64/kernel/signal.c