arm64: remove CONFIG_VMAP_STACK checks from entry code
authorBreno Leitao <leitao@debian.org>
Mon, 7 Jul 2025 16:01:08 +0000 (09:01 -0700)
committerWill Deacon <will@kernel.org>
Tue, 8 Jul 2025 12:41:09 +0000 (13:41 +0100)
commit9d1869f0f537d26005a521a141dde759fc3303f5
tree499efa5785f9d7274f90c1ec73e45e295ac4dc38
parent3e72b9e9f01a4851640a095de688a031d9259f5d
arm64: remove CONFIG_VMAP_STACK checks from entry code

With VMAP_STACK now always enabled on arm64, remove all CONFIG_VMAP_STACK
conditionals from entry handling in arch/arm64/kernel/entry-common.c and
arch/arm64/kernel/entry.S.

This change unconditionally includes the bad stack handling and overflow
detection logic, simplifying the code and reflecting the mandatory use of
VMAP_STACK for all arm64 kernel builds.

Signed-off-by: Breno Leitao <leitao@debian.org>
Acked-by: Ard Biesheuvel <ardb@kernel.org>
Acked-by: Mark Rutland <mark.rutland@arm.com>
Link: https://lore.kernel.org/r/20250707-arm64_vmap-v1-8-8de98ca0f91c@debian.org
Signed-off-by: Will Deacon <will@kernel.org>
arch/arm64/kernel/entry-common.c
arch/arm64/kernel/entry.S