From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796245571; b=BsSPTWGV7oil7GL5FwOVCIdbmrT5cCoNQTegII3o516e1wyGmj6W+9Uw+wgrY1eLE7qV wrBP5bSYyQaAiNPbbJQ9WLNKVciP/T6XXRsCt+G7YGyREWWRdRD1BeI+jZbTzs+cSyYEV rKDWl9zD0dyFWtYShWsLabtVysWeKk5f0xfEJW8U4tlni19N3Kugx+c57laBIy9Gtliu/ ZDajaFdSEH5eW7P93vJ94IxLB1hLNfnCCRID3Shchd9SpVcirZVabqp23qBXSQYzv+q6i 0QhCsOXqLJlBFzTLYLAduULqxVOGjGN6wMBdX6TWJoG+mUqsBG3k61/BIKUnbX9I3kg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796245571; h=Received:DKIM-Signature:Date:From:To:Cc:Subject:Message-ID: References:MIME-Version:Content-Type:Content-Disposition: Content-Transfer-Encoding:In-Reply-To; bh=kZMAtHrdfjezJivrZLICUFsmHkXfik2AMEUuuPfiWDE=; b=EWXDtd6Cg0qmRv/mimGfsrKSHTHrM1KzgI33O4gQIatU0ZKxyZcGa/W4v/hzsMS5ztQ9 aAajV+WjgFqBl4mk+JBU4Nd6NdNQbhsPVB2YXqcTj7eZRbHqaroBfoMe67K2mLjzQAbW/ CiS/MP77AXG9jA6FlAtS2n2akbtMw7+kLJkhJISpeNZ6qwwoz8fdPV3Jf0iLchGu0SIUs oNVAUlRnaCR71x8XoaCi2Wk7VLBEhIL9sVtw/eiJA5/QnekpdhHYuye+j99yI5247tHPE aTBF/R3TEV6dxaAC0yDpBtmcn1DJLGGUVTe4jEnYA94UCeuswVe7tT9+j2SECbyme6Q== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=PS+4WfHU; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B5AD7606A322; Wed, 2 Dec 2026 21:06:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=PS+4WfHU Received: by smtp.kernel.org (Postfix) with ESMTPSA id 42EDD1F0089C; Wed, 2 Dec 2026 21:05:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796245571; bh=kZMAtHrdfjezJivrZLICUFsmHkXfik2AMEUuuPfiWDE=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=PS+4WfHUp8ljOXns8PqbGCG5n1Fn9HD7kETdXjFgh1D0uf8O+rV4HPaP//EQwil2f bNvwVXKTtY5ZKNsNROHupHrZxIO2wKK13gWDYM1d8fE6+nBd+o3tvNB2HH/pNTyd/t Hpc9zoUeKIHN2Z4J3XS7/7M+YVcyNc1MbHd2+v+0EGKOt2JDY8Rm7glri44aJAyauQ 1K3K1zR1eVxow1bUjzGN90RYnPtU+B2lT5zETITx3BGABidi3da3LedHUT25LJMfq0 vuyvLvykftM1gUyl/qtGI4tXpaRi//I4y25x9zMxF9TwI8sXueo0KD1qt66zaVL6Aw 89Fhua5zosOhQ== Date: Wed, 2 Dec 2026 21:05:53 +0000 From: "Lorenzo Stoakes (ARM)" To: Paul Moore Cc: Andrew Morton , Juergen Gross , Stefano Stabellini , Oleksandr Tyshchenko , Madhavan Srinivasan , Nicholas Piggin , Michael Ellerman , "Christophe Leroy (CS GROUP)" , "Ritesh Harjani (IBM)" , Shrikanth Hegde , Haiyang Zhang , Wei Liu , Dexuan Cui , "Michael S. Tsirkin" , Jason Wang , Eugenio =?utf-8?B?UMOpcmV6?= , Xuan Zhuo , Jarkko Sakkinen , Dave Hansen , Thomas Gleixner , Ingo Molnar , Borislav Petkov , x86@kernel.org, "H. Peter Anvin" , Jan Kara , Stephen Smalley , Ondrej =?utf-8?B?TW9zbsOhxI1law==?= , Joel Stanley , Andrew Jeffery , Ryan Chen , Billy Tsai , Bjorn Andersson , Konrad Dybcio , Abel Vesa , Jens Wiklander , Sumit Garg , Scott Branden , Broadcom internal kernel review list , Arnd Bergmann , Greg Kroah-Hartman , Richard Cochran , David Woodhouse , Andrew Lunn , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , xen-devel@lists.xenproject.org, linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, kvm@vger.kernel.org, linux-hyperv@vger.kernel.org, virtualization@lists.linux.dev, linux-sgx@vger.kernel.org, selinux@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-aspeed@lists.ozlabs.org, linux-arm-msm@vger.kernel.org, op-tee@lists.trustedfirmware.org, netdev@vger.kernel.org, linux-mm@kvack.org Subject: Re: [PATCH v2 06/13] selinuxfs: convert mmap hooks to mmap_prepare Message-ID: References: <20261124-late-2026-mmap_prepare-v2-0-0b0d99d655f9@kernel.org> <20261124-late-2026-mmap_prepare-v2-6-0b0d99d655f9@kernel.org> <20261202084730.7045b3b9b45fa43a89a9d3ca@linux-foundation.org> X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: On Wed, Dec 02, 2026 at 04:04:18PM -0500, Paul Moore wrote: > On Wed, Dec 2, 2026 at 11:47 AM Andrew Morton wrote: > > On Wed, 2 Dec 2026 11:45:40 +0000 "Lorenzo Stoakes (ARM)" wrote: > > > On Tue, Dec 01, 2026 at 10:53:18PM -0500, Paul Moore wrote: > > > > On Tue, Nov 24, 2026 at 9:04 AM Lorenzo Stoakes (ARM) wrote: > > > > > > > > > > Move from the deprecated mmap hook to the new mmap_prepare hook for the > > > > > policy and status files. > > > > > > > > > > The policy file only sets VMA flags and operations. The status file remaps > > > > > a single page, so use the PFN remap mmap action to do so. > > > > > > > > > > Acked-by: Paul Moore > > > > > Signed-off-by: Lorenzo Stoakes (ARM) > > > > > --- > > > > > security/selinux/selinuxfs.c | 24 +++++++++++------------- > > > > > 1 file changed, 11 insertions(+), 13 deletions(-) > > > > > > > > Similar to the vma_flags_t patch, I didn't see this get picked up so I > > > > just merged it into the selinux/dev branch. If you are merging this > > > > via another route let me know so I can drop it. > > > > > > Andrew's taken it, but I guess similar to vma_flags_t stuff he can drop it so > > > you can keep this in your tree? > > > > > > Andrew? > > > > Yep, I've dropped "selinux: convert VMA flag tests to use vma_flags_t" > > and "selinuxfs: convert mmap hooks to mmap_prepare" "because it was > > merged into selinux/dev". > > > > - assumes that the patches weren't dependent on other things in that > > series > > > > - assumes that Paul doesn't lose the patch ;) Not a very trusting > > soul, sorry. > > > > Traditionally when this happens I hang on to the mm.git copy until broonie > > says "duplicate!", just to make sure it's safe. I'll come up with a > > less disruptive way of doing this check-it-didnt-get-lost thing. > > I'm sure Andrew sent an email when he merged the patches into his > tree, but I didn't see any comments in the patchwork series saying > they had been picked up so I merged them last night while trying to > make a dent in the review backlog. My apologies for the confusion. > > Regardless, both are now in the selinux/dev branch and will be sent up > to Linus during the next merge window. Please note the small tweak to > the selinuxfs/mmap patch's subject line. > > 7826de2fcd50 selinux: convert selinuxfs mmap hooks to mmap_prepare > cae5ac463902 selinux: convert VMA flag tests to use vma_flags_t LGTM and thanks very much for taking these :) > > -- > paul-moore.com -- Cheers, Lorenzo