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 1CFE3606A33F for ; Wed, 2 Dec 2026 16:47:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.a=rsa-sha256 header.s=korg header.b=sE7W745C Received: from boromir.ozlabs.org (localhost [127.0.0.1]) by lists.ozlabs.org (Postfix) with ESMTP id 4jfkFk3jWHz3bf3; Thu, 03 Dec 2026 03:47:38 +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=1796230058; cv=none; b=SBq0TY7Kovd34CqCkmEtgILs+id0v68XmvSMNMHZ9rQDuRIsJBqpYP4rrZENb2cZflosyREtpQhV/F5e32WJ93505z9RKVPIdvALSsCoQDjBul3sBg2Cj+19Db3pMVLTPqW9wi8GIp1w4kxBrQGxCKn/B1E7WQ9P7XcXNcKcjoFi+j+6RA7F5Jc98VNb4HJD91y+6+Jdp2of7i1ApYLjAgSoLV0E8vpO1L1dHbliUAat7tsx5014UKfRj4F/p48AJOZLivtdFVJmJg1/gm1JkSpHdkRp/Hekvow9C1yg/f6ATEefYudjTVJtXury3/6VAPlaWDR5AQuEHa9bZoV82g== ARC-Message-Signature: i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707; t=1796230058; c=relaxed/relaxed; bh=pW3zjbmGXlzeMxGZpDFoTsqL/ZFwduuCstdLh41G944=; h=Date:From:To:Cc:Subject:Message-Id:In-Reply-To:References: Mime-Version:Content-Type; b=WqZVq0fn6G59VGCnWuc0knec7WD6/70aY0qu9y/iXQODPCOAi2fAwWACfqEnRo4qqGq9ZJLOINnernnmBWlw0z3Vr0i+2ZVhyI3we/CBnpc1d2Q+44mMG4RqtAsozuZStRIGzg7NiueFHYoa9gzNKkStGWK0OXtBrm6v5ZkRfdogLBa6gBskAHgbEv54nIunrPZ7ywQIEp6DTeA9yX38078ZV1VVgMt6peguqc3WjkowXlrFh8WgcAb+Hk5ax/lYLq1AP1ipo53BCXeB6bKAZ7asxaezZqaiLua63Ue0uCEQ0Tz2qyVPWCEqmOv7RCkmDuLpag+fzWPvR8IwEeWyTw== ARC-Authentication-Results: i=1; lists.ozlabs.org; dmarc=none (p=none dis=none) header.from=linux-foundation.org; dkim=pass (1024-bit key; unprotected) header.d=linux-foundation.org header.i=@linux-foundation.org header.a=rsa-sha256 header.s=korg header.b=sE7W745C; dkim-atps=neutral; spf=pass (client-ip=2600:3c04:e001:324:0:1991:8:25; helo=tor.source.kernel.org; envelope-from=akpm@linux-foundation.org; receiver=lists.ozlabs.org) smtp.mailfrom=linux-foundation.org Authentication-Results: lists.ozlabs.org; dmarc=none (p=none dis=none) header.from=linux-foundation.org Authentication-Results: lists.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=linux-foundation.org header.i=@linux-foundation.org header.a=rsa-sha256 header.s=korg header.b=sE7W745C; dkim-atps=neutral Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=linux-foundation.org (client-ip=2600:3c04:e001:324:0:1991:8:25; helo=tor.source.kernel.org; envelope-from=akpm@linux-foundation.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) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4jfkFh6QmWz3bV6; Thu, 03 Dec 2026 03:47:36 +1100 (AEDT) Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) by tor.source.kernel.org (Postfix) with ESMTP id AAD3B62914; Wed, 2 Dec 2026 16:47:33 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 42A281F0093B; Wed, 2 Dec 2026 16:47:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=korg; t=1796230053; bh=pW3zjbmGXlzeMxGZpDFoTsqL/ZFwduuCstdLh41G944=; h=Date:From:To:Cc:Subject:In-Reply-To:References; b=sE7W745CVgPwUJstspQs7qODnN50kFcj+rjTLBAUGIDQZIdYhVrbKPqnF+n8nAji4 /xQpEFQMaWPRnqpHh2aXk6c1oID5+qgU86XKV37QsYZtqdu4Z+3yVfG/tBdxpi/hfr f4u5Yr+bBjy30Bv8tZ5Ochlwv0wjTmZISXJzBLKg= Date: Wed, 2 Dec 2026 08:47:30 -0800 From: Andrew Morton To: "Lorenzo Stoakes (ARM)" Cc: Paul Moore , 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: <20261202084730.7045b3b9b45fa43a89a9d3ca@linux-foundation.org> In-Reply-To: References: <20261124-late-2026-mmap_prepare-v2-0-0b0d99d655f9@kernel.org> <20261124-late-2026-mmap_prepare-v2-6-0b0d99d655f9@kernel.org> X-Mailer: Sylpheed 3.8.0beta1 (GTK+ 2.24.33; x86_64-pc-linux-gnu) 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-Transfer-Encoding: 8bit X-Spam-Status: No, score=-17.5 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI,NICE_REPLY_A, 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, 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.