From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.ozlabs.org (lists.ozlabs.org [112.213.38.117]) (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 D3C03606A333 for ; Wed, 2 Dec 2026 21:06:16 +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: from boromir.ozlabs.org (localhost [127.0.0.1]) by lists.ozlabs.org (Postfix) with ESMTP id 4jfr073lNqz3bkd; Thu, 03 Dec 2026 08:06:15 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; arc=none smtp.remote-ip="2600:3c04:e001:324:0:1991:8:25" ARC-Seal: i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707; t=1796245575; cv=none; b=icocHZx3cqNRF0xUHvLCJ+fIvy9b6Q/qv+/yiQ2ir5HaGScxtfDFXbUDUSdnoGfLAoFIa9UNbS2Zdfyz/yRLYBbG+nNdQ0teqUqjNIsC/1oCiV1dBT5n1V7cn9yK68Z9eu42BRg+PzGD0sQt5ANa/m/XqemMah5YgG+CQY3+qDZFCl7KCbvhI3YLwWn6hPpu7a9Lzpeke3aIJ/lwx210uNMKMqeldC3zbMEULTXRqLWXRhEh4K06/erDAaKe+ywCNNlcZiQpMoG57RZKifXUm8UfDZu41h/6ZpzSd4a0k3tNXgeMk34jxqtnpScVtkQY55mdoNpq0F405qiPgKccMg== ARC-Message-Signature: i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707; t=1796245575; c=relaxed/relaxed; bh=kZMAtHrdfjezJivrZLICUFsmHkXfik2AMEUuuPfiWDE=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=K9WZcZLjAibGr07ntr3XJJoTHUp7GynjqR9bIh7c9qvLkHKFBuNagIxgnWrt1qag+DkVyXqbhPs7aM8Fej27auz9YJgx57hfCQPi7juKHz6QnFsb6OIOe6UpjlRFz1gjnaIsqRDsrkNTkl6JwWGYZ802yFJAerDuCCqjm7caOdDxBEW+3UvjCOJRmxjEFJfCYtI4CFguy6DesDMk+kY+bPrplTYVg2IQ0efHGDscOY9sHESXwJPe/c6cm/TFOmgMrVFoyeOGUSIhxlWTF2dMgjND013Yb47EA4IE9mcItxR6Ux7OxR0AM0uwEyrK9/RV4BdVz7JttAG5YRrLK+8jLg== ARC-Authentication-Results: i=1; lists.ozlabs.org; dmarc=pass (p=quarantine dis=none) header.from=kernel.org; dkim=pass (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=PS+4WfHU; dkim-atps=neutral; spf=pass (client-ip=2600:3c04:e001:324:0:1991:8:25; helo=tor.source.kernel.org; envelope-from=ljs@kernel.org; receiver=lists.ozlabs.org) smtp.mailfrom=kernel.org Authentication-Results: lists.ozlabs.org; dmarc=pass (p=quarantine dis=none) header.from=kernel.org Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=PS+4WfHU; dkim-atps=neutral Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=kernel.org (client-ip=2600:3c04:e001:324:0:1991:8:25; helo=tor.source.kernel.org; envelope-from=ljs@kernel.org; receiver=lists.ozlabs.org) Received: from tor.source.kernel.org (tor.source.kernel.org [IPv6:2600:3c04:e001:324:0:1991:8:25]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4jfr062GtWz3bf3; Thu, 03 Dec 2026 08:06:14 +1100 (AEDT) Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) by tor.source.kernel.org (Postfix) with ESMTP id AD01261B1C; Wed, 2 Dec 2026 21:06:11 +0000 (UTC) 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-aspeed@lists.ozlabs.org List-Id: List-Help: List-Owner: List-Post: List-Archive: , List-Subscribe: , , Precedence: list X-Archived-By: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Spam-Status: No, score=-15.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_PASS, SPF_PASS autolearn=unavailable autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 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