From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B0DF63B8D75 for ; Wed, 25 Feb 2026 16:14:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772036050; cv=none; b=bv4VMTWUcU+ixy4mx9uBJX+rIkvg3RqDGLCel2IMLQzcTlxT1LjTKFP/KM4dIZb0f6yNbTpz+o7ldVIlsVoLmgy3NH8ZkyKvwwTbsJqXGpUjBn9AALmPXuTJoW7+tihwul8ZJRWEqpYW7z3/5y/XJt2XXJ72QDjGS3g6zFzHZyI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772036050; c=relaxed/simple; bh=FJ8pqKObBkJho6S/iG2Yj2YnxtTdF2qaP4+s6pSMHiI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Tt0yGwvbHbHRtv1atEm5WXz0jhV+xe/SOhxufOOFOxRTfPviv/qTNaiywBLV/ogHQP4GNqx4ZBNMrkv1kJN+V3H4Ui07GEgog7SUCAHdw4i8JuwiRfAiCy7gSjtyZBns7aaz/oay2HxeZIeMiU6GTb+RzMR949iTIVYrpiHL6vM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 38738C19421; Wed, 25 Feb 2026 16:14:07 +0000 (UTC) From: Catalin Marinas To: Andrew Morton , David Hildenbrand , Mark Brown , Deepak Gupta , Rick Edgecombe Cc: Will Deacon , Paul Walmsley , Palmer Dabbelt , Albert Ou , Alexandre Ghiti , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , "H. Peter Anvin" , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, linux-mm@kvack.org Subject: [PATCH v2 0/5] mm: arch/shstk: Common shadow stack mapping helper and VM_NOHUGEPAGE Date: Wed, 25 Feb 2026 16:13:57 +0000 Message-ID: <20260225161404.3157851-1-catalin.marinas@arm.com> X-Mailer: git-send-email 2.47.3 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit This is v2 of the series extracting the common shadow stack mmap into a separate helper for arm64, riscv and x86. Thanks for the review. Andrew, if you are happy with this, I think taking the patches through the mm tree makes most sense. Minor changes since v1: - Removed #ifdef from the helper function declaration - Used two tabs for the alignment of multi-line function arguments - Added "There is no functional change" to the arch patches log - Collected ack/review/test tags v1: https://lore.kernel.org/r/20260224175800.2500729-1-catalin.marinas@arm.com Catalin Marinas (5): mm: Introduce vm_mmap_shadow_stack() as a helper for VM_SHADOW_STACK mappings arm64: gcs: Use the new common vm_mmap_shadow_stack() helper riscv: shstk: Use the new common vm_mmap_shadow_stack() helper x86: shstk: Use the new common vm_mmap_shadow_stack() helper mm: Do not map the shadow stack as THP arch/arm64/mm/gcs.c | 14 +------------- arch/riscv/kernel/usercfi.c | 12 +----------- arch/x86/kernel/shstk.c | 12 ++---------- include/linux/mm.h | 2 ++ mm/util.c | 29 +++++++++++++++++++++++++++++ 5 files changed, 35 insertions(+), 34 deletions(-)