[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v2 06/13] selinuxfs: convert mmap hooks to mmap_prepare
- To: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
- From: Paul Moore <paul@xxxxxxxxxxxxxx>
- Date: Wed, 2 Dec 2026 16:04:18 -0500
- Arc-authentication-results: i=1; mx.google.com; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20260327; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=IMLxRGXu3w+/9GSWnnMrp200pn3E/CURWnJtjseoowY=; fh=bjrTNhyqaYw9sbjNUFKppAXsqaBR4+Zp8EX9LcZTmpw=; b=qUlpK2KkI/ODS46i1iwKrjrXyFIYyqv7hjN5TlzF4fCApUxZsCjAvBCb/qe/FvPXlW LtVYJCRzWTT58WbxKAyQnirarISIpYwk8BKPonzrLbKEFIBv78Y6taBsXLjzYNVm8Ccw sVhAhKdCqF5Pb+BPZ5rTGfJ8mOJITKsDNF0yuSlrWSbnN2dxvWdSWzAVYV3N9nlcFnYO HQIjzQwYvdwuOf5vUkrkLFBid3YxRp+mZkY+X9Duh34yNtlKLnDN8IRWdI3KLt1wqaMI LoEM7Ubk+bALLFSFt/QAkdWr80juVz3/Z/1yoLfSn8TdAQvX7oRtG6uPJ+8hG/DM6dcM qNJQ==; darn=lists.xenproject.org
- Arc-seal: i=1; a=rsa-sha256; t=1796245470; cv=none; d=google.com; s=arc-20260327; b=nH5BG1tfemOuoxmmC7e0PMMVZkKSDRPqiodE6a9iuYcRC+Vn+q8qFPH58pWEsElmw0 qW7bNtte43kIuOu2LxMGEE7lYUhrmnizqbFRqOZ12jbMtxAFZ5DKXQ1WFcgVoT8L/sB0 y2k7UIhUtRle2JN+mQA+oUM9BxuEO1lMyerlnXlHcanQ3B3SAj1ADtvzmnqRGzaArQmr iHX1+1gRX909mxjsUE5ejtlpW7EVELal27mYZ4J6OpNQdMf+lefyS37MNAb7WfDUDx7y eHosYXDm3EJzlnyQ7JUxT7hgzhD8rPigDWbLMWm2Z6bLukiL22XdZOhzUzXu0GRzr6Ri fpZg==
- Authentication-results: eu.smtp.expurgate.cloud; dkim=pass header.s=google header.d=paul-moore.com header.i="@paul-moore.com" header.h="Content-Transfer-Encoding:Content-Type:Cc:To:Subject:Message-ID:Date:From:In-Reply-To:References:MIME-Version"
- Cc: "Lorenzo Stoakes (ARM)" <ljs@xxxxxxxxxx>, Juergen Gross <jgross@xxxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Oleksandr Tyshchenko <oleksandr_tyshchenko@xxxxxxxx>, Madhavan Srinivasan <maddy@xxxxxxxxxxxxx>, Nicholas Piggin <npiggin@xxxxxxxxx>, Michael Ellerman <mpe@xxxxxxxxxxxxxx>, "Christophe Leroy (CS GROUP)" <chleroy@xxxxxxxxxx>, "Ritesh Harjani (IBM)" <ritesh.list@xxxxxxxxx>, Shrikanth Hegde <sshegde@xxxxxxxxxxxxx>, Haiyang Zhang <haiyangz@xxxxxxxxxxxxx>, Wei Liu <wei.liu@xxxxxxxxxx>, Dexuan Cui <decui@xxxxxxxxxxxxx>, "Michael S. Tsirkin" <mst@xxxxxxxxxx>, Jason Wang <jasowangio@xxxxxxxxx>, Eugenio Pérez <eperezma@xxxxxxxxxx>, Xuan Zhuo <xuanzhuo@xxxxxxxxxxxxxxxxx>, Jarkko Sakkinen <jarkko@xxxxxxxxxx>, Dave Hansen <dave.hansen@xxxxxxxxxxxxxxx>, Thomas Gleixner <tglx@xxxxxxxxxx>, Ingo Molnar <mingo@xxxxxxxxxx>, Borislav Petkov <bp@xxxxxxxxx>, x86@xxxxxxxxxx, "H. Peter Anvin" <hpa@xxxxxxxxx>, Jan Kara <jack@xxxxxxxx>, Stephen Smalley <stephen.smalley.work@xxxxxxxxx>, Ondrej Mosnáček <omosnacek@xxxxxxxxx>, Joel Stanley <joel@xxxxxxxxx>, Andrew Jeffery <andrew@xxxxxxxxxxxxxxxxxxxx>, Ryan Chen <ryan_chen@xxxxxxxxxxxxxx>, Billy Tsai <billy_tsai@xxxxxxxxxxxxxx>, Bjorn Andersson <andersson@xxxxxxxxxx>, Konrad Dybcio <konradybcio@xxxxxxxxxx>, Abel Vesa <abelvesa@xxxxxxxxxx>, Jens Wiklander <jenswi@xxxxxxxxxx>, Sumit Garg <sumit.garg@xxxxxxxxxx>, Scott Branden <scott.branden@xxxxxxxxxxxx>, Broadcom internal kernel review list <bcm-kernel-feedback-list@xxxxxxxxxxxx>, Arnd Bergmann <arnd@xxxxxxxx>, Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>, Richard Cochran <richardcochran@xxxxxxxxx>, David Woodhouse <dwmw2@xxxxxxxxxxxxx>, Andrew Lunn <andrew+netdev@xxxxxxx>, "David S. Miller" <davem@xxxxxxxxxxxxx>, Eric Dumazet <edumazet@xxxxxxxxxx>, Jakub Kicinski <kuba@xxxxxxxxxx>, Paolo Abeni <pabeni@xxxxxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxxx, linux-kernel@xxxxxxxxxxxxxxx, linuxppc-dev@xxxxxxxxxxxxxxxx, kvm@xxxxxxxxxxxxxxx, linux-hyperv@xxxxxxxxxxxxxxx, virtualization@xxxxxxxxxxxxxxx, linux-sgx@xxxxxxxxxxxxxxx, selinux@xxxxxxxxxxxxxxx, linux-arm-kernel@xxxxxxxxxxxxxxxxxxx, linux-aspeed@xxxxxxxxxxxxxxxx, linux-arm-msm@xxxxxxxxxxxxxxx, op-tee@xxxxxxxxxxxxxxxxxxxxxxxxx, netdev@xxxxxxxxxxxxxxx, linux-mm@xxxxxxxxx
- Delivery-date: Wed, 02 Dec 2026 21:04:48 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
On Wed, Dec 2, 2026 at 11:47 AM Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> wrote:
> On Wed, 2 Dec 2026 11:45:40 +0000 "Lorenzo Stoakes (ARM)" <ljs@xxxxxxxxxx>
> 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) <ljs@xxxxxxxxxx>
> > > 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 <paul@xxxxxxxxxxxxxx>
> > > > Signed-off-by: Lorenzo Stoakes (ARM) <ljs@xxxxxxxxxx>
> > > > ---
> > > > 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
--
paul-moore.com
|