]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit459b3b2b99d6b9ef009c01f6ddf6eac75b3712a5
treec84816eb04b65c9c89fe29e873fc311e108b532f
parent3812e7e74796b0fde191567eda0e6d6ee264a867
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