Skip to content

arm64: set VMAP_STACK by default

Breno Leitao linux-arm-kernel linux-efi lkml 1 version Applied

Status from this message: Applied to arm64 (for-next/vmap-stack), thanks!

Get series with b4
b4 am [email protected] change-id 20250707-arm64_vmap-fa70ba3c9cfb

Versions newest first

  1. v1 Latest8 patches 6 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/8arm64: Enable VMAP_STACK supportarch/arm64/Kconfig+1 -03 replies
2/8arm64: efi: Remove CONFIG_VMAP_STACK checkarch/arm64/kernel/efi.c+0 -50 replies
3/8arm64: Remove CONFIG_VMAP_STACK conditionals from THREAD_SHIFT and THREAD_ALIGNarch/arm64/include/asm/memory.h+1 -50 replies
4/8arm64: remove CONFIG_VMAP_STACK conditionals from irq stack setuparch/arm64/kernel/irq.c+0 -130 replies
5/8arm64: remove CONFIG_VMAP_STACK conditionals from traps overflow stackarch/arm64/kernel/traps.c+0 -30 replies
6/8arm64: remove CONFIG_VMAP_STACK checks from stacktrace overflow logicarch/arm64/include/asm/stacktrace.h arch/arm64/kernel/stacktrace.c+2 -80 replies
7/8arm64: remove CONFIG_VMAP_STACK checks from SDEI stack handlingarch/arm64/kernel/sdei.c+2 -60 replies
8/8arm64: remove CONFIG_VMAP_STACK checks from entry codearch/arm64/kernel/entry-common.c arch/arm64/kernel/entry.S+0 -80 replies

Reviews trailers per patch

None of the 8 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchMark RutlandArd Biesheuvel
SeriesA-b A-b
1/8
2/8
3/8
4/8
5/8
6/8
7/8
8/8

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/8] arm64: set VMAP_STACK by default

Hi all,

This patchset select VMAP_STACK on arm64 by default, and cleans up the code by removing all associated CONFIG_VMAP_STACK conditionals.

This is a suggestion from Will Deacon from another discussion[1].

With VMAP_STACK now always enabled on arm64, the code can be significantly simplified, reducing complexity and potential for misconfiguration.

Overview of Changes

* Remove all #ifdef CONFIG_VMAP_STACK and related runtime checks throughout the architecture codebase.
* Replace runtime checks with build-time assertions where appropriate.

---
Breno Leitao (8):
arm64: Enable VMAP_STACK support
arm64: efi: Remove CONFIG_VMAP_STACK check
arm64: Remove CONFIG_VMAP_STACK conditionals from THREAD_SHIFT and THREAD_ALIGN
arm64: remove CONFIG_VMAP_STACK conditionals from irq stack setup
arm64: remove CONFIG_VMAP_STACK conditionals from traps overflow stack
arm64: remove CONFIG_VMAP_STACK checks from stacktrace overflow logic
arm64: remove CONFIG_VMAP_STACK checks from SDEI stack handling
arm64: remove CONFIG_VMAP_STACK checks from entry code

 arch/arm64/Kconfig                  |  1 +
 arch/arm64/include/asm/memory.h     |  6 +-----
 arch/arm64/include/asm/stacktrace.h |  6 +-----
 arch/arm64/kernel/efi.c             |  5 -----
 arch/arm64/kernel/entry-common.c    |  2 --
 arch/arm64/kernel/entry.S           |  6 ------
 arch/arm64/kernel/irq.c             | 13 -------------
 arch/arm64/kernel/sdei.c            |  8 ++------
 arch/arm64/kernel/stacktrace.c      |  4 +---
 arch/arm64/kernel/traps.c           |  3 ---
 10 files changed, 6 insertions(+), 48 deletions(-)

---
base-commit: 9dd1757493416310a5e71146a08bc228869f8dae
change-id: 20250707-arm64_vmap-fa70ba3c9cfb

Best regards,

Signature · 1 line
Breno Leitao <[email protected]>