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 A38F12C08DC for ; Wed, 25 Feb 2026 20:12:14 +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=1772050334; cv=none; b=P4vEtoK88M4Qg0PMiiDW9erQbZbkwsFt/R360eoXhle3vlFv+MT4Q7KF6e+iqFBn5x2yaFMoMHlLDaVxoAqgrpvB/UmqqHyZU/GFxwboGV1UgG7xxl8/VVZkGxv9CbaAhjrbyjwhaqHFX6qr2v/itgipYXDPCUlPl8ZYAfBQooY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772050334; c=relaxed/simple; bh=PjnaX0nrKvXjwoSWqMyc2RZCBMHlMtQJ84VIGiaaCKQ=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=TgqCG9wrgbeUsv/vLLwuSzhvpVcCEf0p7xUVkfamFz4IqtzyyUPY2cHrDXvep042vGLONAvfN32h/qJ2O3NqEGVOliFZMKiB1veDU3pj3zEqHh4ShMWdiJ3J+l6Wq3d9dE93UUsxn/yr2crlVjkcXbPsmh1QX/EA0QTVzbIvfMQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=g3ryCiLc; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="g3ryCiLc" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8D57AC116D0; Wed, 25 Feb 2026 20:12:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1772050334; bh=PjnaX0nrKvXjwoSWqMyc2RZCBMHlMtQJ84VIGiaaCKQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=g3ryCiLcJGsyHMU46ADgUo9zZyQbXK8ByyDOF6ZcP79iIzgOgLMp8mEQdmmUcqZf5 Pxf++y4Y5IDWpJZbdark3vMfgh0qpC6jyr0Cs59TzUh+PhVJVr7yjO9PHAHFXkVuB+ aII7SnpUP3wUPYgewdTvtioSYsECISw4h5NkzOYRc9FWs1BhDAuC8lA+bmmvWFVGjZ eg1b1L7gNZAOmxN0ZP2giZPs0eltQWZJZ1T2pzdz4tBSjGGKqRHqmfl3skOpCffwj2 kIhQM6Il91b2LvNC+n/LzZHXloJl3DVXyOn1di3ZKkEPuxg7ZgbHQCLs1QBl6Jktj/ LHkOZijjnfmWw== Date: Wed, 25 Feb 2026 22:12:05 +0200 From: Mike Rapoport To: Catalin Marinas Cc: Andrew Morton , David Hildenbrand , Mark Brown , Deepak Gupta , Rick Edgecombe , 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: Re: [PATCH v2 0/5] mm: arch/shstk: Common shadow stack mapping helper and VM_NOHUGEPAGE Message-ID: References: <20260225161404.3157851-1-catalin.marinas@arm.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20260225161404.3157851-1-catalin.marinas@arm.com> On Wed, Feb 25, 2026 at 04:13:57PM +0000, Catalin Marinas wrote: > 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 Reviewed-by: Mike Rapoport (Microsoft) > 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(-) > > -- Sincerely yours, Mike.