From: Catalin Marinas <catalin.marinas@arm.com>
To: linux-arm-kernel@lists.infradead.org
Cc: Mark Brown <broonie@kernel.org>, Will Deacon <will@kernel.org>,
David Hildenbrand <david@kernel.org>,
Emanuele Rocca <emanuele.rocca@arm.com>,
Mark Rutland <mark.rutland@arm.com>
Subject: [PATCH 0/3] arm64: Assorted GCS fixes
Date: Fri, 20 Feb 2026 14:05:28 +0000 [thread overview]
Message-ID: <20260220140532.285011-1-catalin.marinas@arm.com> (raw)
The first patch fixes a kernel panic when LPA2 is enabled together with
GCS because of the PTE_SHARED bits in _PAGE_GCS{,RO} overlapping with
OA[9:8].
The second patch allows PROT_NONE mappings even with GCS, useful for
NUMA balancing.
The third patch is an optimisation that was added to the normal stacks
as well (when mapped with MAP_STACK) as it doesn't make sense to use a
THP for a small GCS mapping. This patch also updates the do_mmap() call
in alloc_gcs() to use PROT_WRITE instead of VM_WRITE for consistency.
Thanks.
Catalin Marinas (3):
arm64: gcs: Do not set PTE_SHARED on GCS mappings if FEAT_LPA2 is
enabled
arm64: gcs: Allow PAGE_NONE mappings for NUMA balancing
arm64: gcs: Do not map the guarded control stack as THP
arch/arm64/include/asm/pgtable-prot.h | 4 ++--
arch/arm64/mm/gcs.c | 8 ++++++--
arch/arm64/mm/mmap.c | 10 +++++++++-
3 files changed, 17 insertions(+), 5 deletions(-)
next reply other threads:[~2026-02-20 14:05 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-02-20 14:05 Catalin Marinas [this message]
2026-02-20 14:05 ` [PATCH 1/3] arm64: gcs: Do not set PTE_SHARED on GCS mappings if FEAT_LPA2 is enabled Catalin Marinas
2026-02-20 15:56 ` David Hildenbrand (Arm)
2026-02-20 16:45 ` Catalin Marinas
2026-02-20 16:47 ` Catalin Marinas
2026-02-20 14:05 ` [PATCH 2/3] arm64: gcs: Allow PAGE_NONE mappings for NUMA balancing Catalin Marinas
2026-02-20 16:16 ` David Hildenbrand (Arm)
2026-02-20 19:52 ` Catalin Marinas
2026-02-20 14:05 ` [PATCH 3/3] arm64: gcs: Do not map the guarded control stack as THP Catalin Marinas
2026-02-20 14:34 ` Mark Brown
2026-02-20 15:13 ` Catalin Marinas
2026-02-20 16:17 ` Mark Brown
2026-02-20 15:33 ` David Hildenbrand (Arm)
2026-02-20 15:36 ` Mark Brown
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=20260220140532.285011-1-catalin.marinas@arm.com \
--to=catalin.marinas@arm.com \
--cc=broonie@kernel.org \
--cc=david@kernel.org \
--cc=emanuele.rocca@arm.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=mark.rutland@arm.com \
--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