From: Mark Rutland <mark.rutland@arm.com>
To: Breno Leitao <leitao@debian.org>
Cc: Catalin Marinas <catalin.marinas@arm.com>,
Will Deacon <will@kernel.org>, Ard Biesheuvel <ardb@kernel.org>,
linux-arm-kernel@lists.infradead.org,
linux-kernel@vger.kernel.org, linux-efi@vger.kernel.org,
leo.yan@arm.com, kernel-team@meta.com
Subject: Re: [PATCH 0/8] arm64: set VMAP_STACK by default
Date: Mon, 7 Jul 2025 18:25:57 +0100 [thread overview]
Message-ID: <aGwDJXTGAdV_VqY2@J2N7QTR9R3> (raw)
In-Reply-To: <20250707-arm64_vmap-v1-0-8de98ca0f91c@debian.org>
On Mon, Jul 07, 2025 at 09:01:00AM -0700, Breno Leitao wrote:
> 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.
>
> Link: https://lore.kernel.org/all/aGfYL8eXjTA9puQr@willie-the-truck/ [1]
>
> Signed-off-by: Breno Leitao <leitao@debian.org>
Nice!
Aside from a minor comment on the first patch, this all looks good to
me. For the series:
Acked-by: Mark Rutland <mark.rutland@arm.com>
Mark.
> ---
> 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,
> --
> Breno Leitao <leitao@debian.org>
>
next prev parent reply other threads:[~2025-07-07 18:28 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-07-07 16:01 [PATCH 0/8] arm64: set VMAP_STACK by default Breno Leitao
2025-07-07 16:01 ` [PATCH 1/8] arm64: Enable VMAP_STACK support Breno Leitao
2025-07-07 17:23 ` Mark Rutland
2025-07-08 9:39 ` Breno Leitao
2025-07-08 12:14 ` Will Deacon
2025-07-07 16:01 ` [PATCH 2/8] arm64: efi: Remove CONFIG_VMAP_STACK check Breno Leitao
2025-07-07 16:01 ` [PATCH 3/8] arm64: Remove CONFIG_VMAP_STACK conditionals from THREAD_SHIFT and THREAD_ALIGN Breno Leitao
2025-07-07 16:01 ` [PATCH 4/8] arm64: remove CONFIG_VMAP_STACK conditionals from irq stack setup Breno Leitao
2025-07-07 16:01 ` [PATCH 5/8] arm64: remove CONFIG_VMAP_STACK conditionals from traps overflow stack Breno Leitao
2025-07-07 16:01 ` [PATCH 6/8] arm64: remove CONFIG_VMAP_STACK checks from stacktrace overflow logic Breno Leitao
2025-07-07 16:01 ` [PATCH 7/8] arm64: remove CONFIG_VMAP_STACK checks from SDEI stack handling Breno Leitao
2025-07-07 16:01 ` [PATCH 8/8] arm64: remove CONFIG_VMAP_STACK checks from entry code Breno Leitao
2025-07-07 17:25 ` Mark Rutland [this message]
2025-07-08 1:13 ` [PATCH 0/8] arm64: set VMAP_STACK by default Ard Biesheuvel
2025-07-08 14:44 ` Will Deacon
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=aGwDJXTGAdV_VqY2@J2N7QTR9R3 \
--to=mark.rutland@arm.com \
--cc=ardb@kernel.org \
--cc=catalin.marinas@arm.com \
--cc=kernel-team@meta.com \
--cc=leitao@debian.org \
--cc=leo.yan@arm.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-efi@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=will@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox