public inbox for linux-arm-kernel@lists.infradead.org
 help / color / mirror / Atom feed
* [PATCH 0/3] arm64: Assorted GCS fixes
@ 2026-02-20 14:05 Catalin Marinas
  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
                   ` (2 more replies)
  0 siblings, 3 replies; 14+ messages in thread
From: Catalin Marinas @ 2026-02-20 14:05 UTC (permalink / raw)
  To: linux-arm-kernel
  Cc: Mark Brown, Will Deacon, David Hildenbrand, Emanuele Rocca,
	Mark Rutland

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(-)



^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2026-02-20 19:53 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-02-20 14:05 [PATCH 0/3] arm64: Assorted GCS fixes Catalin Marinas
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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox