From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7B09D19EED3 for ; Wed, 25 Feb 2026 08:08:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772006930; cv=none; b=OV0488Jv8JCC+BstLZMK5rmjwD4TDpQ5+VxQY2vJCQCHo1njnOHo6SVWxR16FR9he95Y6EKIsbTQt7iMr34alqILzSyJt1DmDv0f9JCN7fACyOsaUroi1nI9/A2nJ/yT7PSmHXwGyPOdbbRMZwFsYLC3hCTZG8hYFrzeIJlX3TM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772006930; c=relaxed/simple; bh=X4e0VinX4vVWC1wSSsomMDZWENzAhvVW+I08eRX5tag=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=FJs3octVFXi7HPqMb+gh05n97ZS+S9Y052PniabldPxdo8164N3rD1Nf6G7iYV03cJpAgpAZ+xUyN+2iua06IrTN64XSwQ4XWXeVQyixheNM92X0GZiMH5MZzPruj7aMxScH1Qu2jpVGlLcPd9ngV+4PsT5v1ASlFldowoipKwc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com; spf=pass smtp.mailfrom=arm.com; arc=none smtp.client-ip=217.140.110.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id E0A4A165C; Wed, 25 Feb 2026 00:08:40 -0800 (PST) Received: from arm.com (usa-sjc-mx-foss1.foss.arm.com [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id CDAFD3F59E; Wed, 25 Feb 2026 00:08:43 -0800 (PST) Date: Wed, 25 Feb 2026 08:08:41 +0000 From: Catalin Marinas To: Deepak Gupta Cc: Andrew Morton , David Hildenbrand , Mark Brown , Rick Edgecombe , Will Deacon , Paul Walmsley , Palmer Dabbelt , Albert Ou , Alexandre Ghiti , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , "H. Peter Anvin" , Kito Cheng , Jesse Huang , valentin.haudiquet@canonical.com, heinrich.schuchardt@canonical.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, linux-mm@kvack.org Subject: Re: [PATCH 0/5] mm: arch/shstk: Common shadow stack mapping helper and VM_NOHUGEPAGE Message-ID: References: <20260224175800.2500729-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: Hi Deepak, On Tue, Feb 24, 2026 at 04:06:13PM -0800, Deepak Gupta wrote: > On Tue, Feb 24, 2026 at 05:57:52PM +0000, Catalin Marinas wrote: > > arm64, riscv and x86 all implement shadow stack support and use a > > similar pattern for mapping the user shadow stack (originally cloned > > from x86). Extract this common pattern into a shared helper - > > vm_mmap_shadow_stack(). [...] > FWIW, I applied your patches on v7.0-rc1 and risc-v cfi kselftest passes [...] > So you can tag tested by for risc-v. That's great, thanks! -- Catalin