Article View: linux.kernel.netdev
Article #25966Re: [PATCH v2 06/13] selinuxfs: convert mmap hooks to mmap_prepare
From: "Lorenzo Stoakes (ARM)"
Date: Wed, 02 Dec 2026 21:05
Date: Wed, 02 Dec 2026 21:05
62 lines
12904 bytes
12904 bytes
On Wed, Dec 02, 2026 at 04:04:18PM -0500, Paul Moore wrote: > On Wed, Dec 2, 2026 at 11:47 AM Andrew Morton <akpm@linux-foundation.org> wrote: > > On Wed, 2 Dec 2026 11:45:40 +0000 "Lorenzo Stoakes (ARM)" <ljs@kernel.org> 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@kernel.org> 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@paul-moore.com> > > > > > Signed-off-by: Lorenzo Stoakes (ARM) <ljs@kernel.org> > > > > > --- > > > > > 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
Technical Details
Message-ID:
<axCIH8JzS6jRtFtg@gremlin>Path:
mbox-mo1.pugleaf.net!srv.newsdeef.eu.MISMATCH!feed-us-txt.newsdeef.eu!feed-us-ny.newsdeef.eu!srv.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-376052-linux-kernel-netdev=dewy.ruReferences:
<20261124-late-2026-mmap_prepare-v2-0-0b0d99d655f9@kernel.org> <20261124-late-2026-mmap_prepare-v2-6-0b0d99d655f9@kernel.org> <CAHC9VhSmBBCFSsG8jXm7fKfPEBLY+sSy4mca3-iwMK2H_Niq8w@mail.gmail.com> <axAEv-44Uw5tOsBE@gremlin> <20261202084730.7045b3b9b45fa43a89a9d3ca@linux-foundation.org> <CAHC9VhQGnnoik9ZvD4mVcuvwCXg0pz-FCzP46Ado6bwoO3-i6g@mail.gmail.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu.MISMATCH!feed-us-txt.newsdeef.eu!feed-us-ny.newsdeef.eu!srv.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-376052-linux-kernel-netdev=dewy.ru
From: ljs@kernel.org ("Lorenzo Stoakes (ARM)")
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH v2 06/13] selinuxfs: convert mmap hooks to mmap_prepare
Date: Wed, 2 Dec 2026 21:05:53 +0000
Organization: Usenet Network
Message-ID: <axCIH8JzS6jRtFtg@gremlin>
References: <20261124-late-2026-mmap_prepare-v2-0-0b0d99d655f9@kernel.org>
<20261124-late-2026-mmap_prepare-v2-6-0b0d99d655f9@kernel.org>
<CAHC9VhSmBBCFSsG8jXm7fKfPEBLY+sSy4mca3-iwMK2H_Niq8w@mail.gmail.com>
<axAEv-44Uw5tOsBE@gremlin>
<20261202084730.7045b3b9b45fa43a89a9d3ca@linux-foundation.org>
<CAHC9VhQGnnoik9ZvD4mVcuvwCXg0pz-FCzP46Ado6bwoO3-i6g@mail.gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
logging-data="2061358"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:P2nRnpnkRUsN+ICuezyjLD/24GM= sha256:mpQVGalu4dGpJtOvNEPij9mADGZ+cxP1QW/rVmzMxJA=
sha1:n1vCLVwf/JH+Ej5lTi98lUCpXCw= sha256:MYv5cpwJzTm0na5vBc0MjKq6htxrrPVsstIqJrM4eJ0=
Content-Disposition: inline
List-ID: <netdev.vger.kernel.org>
X-Mailpost-Empty-Hdrs: X-Spam-Level
X-Received: from localhost (localhost [127.0.0.1])
by mail.dewy.ru (Postfix) with ESMTP id D83AE117727; Thu, 3 Dec 2026 00:06:32 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.4
X-Spam-Status: No, score=-3.4 tagged_above=-9999 required=6.31
tests=[DCC_REPUT_70_89=0.1, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1,
DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,
MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001,
SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key)
header.d=kernel.org
X-Received: from mail.dewy.ru ([127.0.0.1])
by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024)
with ESMTP id NTFVPS2oLuR9;
Thu, 3 Dec 2026 00:06:29 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=netdev+bounces-376052-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN>
X-Authentication-Results: OpenDMARC; dmarc=pass (p=quarantine dis=none) header.from=kernel.org
X-Received: from tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114])
by mail.dewy.ru (Postfix) with ESMTPS id 44B90117707; Thu, 3 Dec 2026 00:06:20 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
by tor.lore.kernel.org (Postfix) with ESMTP id 81A6B23C76; Wed, 2 Dec 2026 21:06:18 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass;
t=1796245577;
b=0WFcQvxgiCdFKgr0iEPe9X603/sWxIwht/4//lcJtTxnogepmw0Jh0bRNFZ/4QO+MrSQ
QtIdzbmmlONQbxpiyMFQzyijB3zbbcqRaG+Ri1TMENkHpLlpzp3iPguki/iXvY92UZA0E
65LHU4K5a+bA9l4OXedSHg9zpvchhAan7fgTHjfTbrE0SJ71VlNG4XTHpKHPwtnUHfPnp
SMzRY8xVahFruMTFiQS2HEG+UWP8GjLhEiwYhuAvlSKmpe2f7PTlamjLWpxVd7F8CSRu2
Qzq7LfqrT+zhvOSoNZ2sET1cuj9oRqMnncm2J/TP23/uT8PeY3xTuavCzFzmNvF9NIw==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1796245577;
h=X-Original-To:Received:Received:DKIM-Signature:Date:From:To:Cc:
Subject:Message-ID:References:X-Mailing-List:List-Id:List-Post:
List-Help:List-Subscribe:List-Unsubscribe:List-Owner:Precedence:
MIME-Version:Content-Type:Content-Disposition:
Content-Transfer-Encoding:In-Reply-To;
bh=kZMAtHrdfjezJivrZLICUFsmHkXfik2AMEUuuPfiWDE=;
b=kYNJtDfzh8tXy9uAuURSCwhFRvRWhfMHliVyoVIz8mMG+be95ZIy4iz4iM49II3ve4+C
ADQ6tWixwKkE6f5Xl5K/z0Xq073/SEVq9Hb/kYcCbIJvNxFH6j6ATCpijdZ8Bb887ZI3r
R2BEHnsWDIKsvsp+Sa1rJaCr9ldfXPbJ+RvVgKNmD9aaHMBMJFity+FMg3UfAzGMVSmDP
9PwispOtAVQ5JG9W6feKGU7YJXXt0tLrfypBT4iHcTC7ldeEllkod93aa/eWW6au9XbgI
4rNU9+XUntIEkbPYtISQpTspiKz1rfpCmmlrG9RrKB/4Q/WMUliLtpPP8Ic7zTYtswA==
X-ARC-Authentication-Results: i=2; 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=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-Received: from localhost.localdomain (localhost [127.0.0.1])
by smtp.subspace.kernel.org (Postfix) with ESMTP id 9B23A606A335;
Wed, 2 Dec 2026 21:06:17 +0000 (UTC)
X-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
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18
X-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==
X-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==
X-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
X-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)
X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 42EDD1F0089C;
Wed, 2 Dec 2026 21:05:56 +0000 (UTC)
X-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==
X-Cc: Andrew Morton <akpm@linux-foundation.org>,
Juergen Gross <jgross@suse.com>, Stefano Stabellini <sstabellini@kernel.org>,
Oleksandr Tyshchenko <oleksandr_tyshchenko@epam.com>, Madhavan Srinivasan <maddy@linux.ibm.com>,
Nicholas Piggin <npiggin@gmail.com>, Michael Ellerman <mpe@ellerman.id.au>,
"Christophe Leroy (CS GROUP)" <chleroy@kernel.org>, "Ritesh Harjani (IBM)" <ritesh.list@gmail.com>,
Shrikanth Hegde <sshegde@linux.ibm.com>, Haiyang Zhang <haiyangz@microsoft.com>,
Wei Liu <wei.liu@kernel.org>, Dexuan Cui <decui@microsoft.com>,
"Michael S. Tsirkin" <mst@redhat.com>, Jason Wang <jasowangio@gmail.com>,
Eugenio Pérez <eperezma@redhat.com>, Xuan Zhuo <xuanzhuo@linux.alibaba.com>,
Jarkko Sakkinen <jarkko@kernel.org>, Dave Hansen <dave.hansen@linux.intel.com>,
Thomas Gleixner <tglx@kernel.org>, Ingo Molnar <mingo@redhat.com>, Borislav Petkov <bp@alien8.de>,
x86@kernel.org, "H. Peter Anvin" <hpa@zytor.com>, Jan Kara <jack@suse.com>,
Stephen Smalley <stephen.smalley.work@gmail.com>, Ondrej Mosnáček <omosnacek@gmail.com>,
Joel Stanley <joel@jms.id.au>, Andrew Jeffery <andrew@codeconstruct.com.au>,
Ryan Chen <ryan_chen@aspeedtech.com>, Billy Tsai <billy_tsai@aspeedtech.com>,
Bjorn Andersson <andersson@kernel.org>, Konrad Dybcio <konradybcio@kernel.org>,
Abel Vesa <abelvesa@kernel.org>, Jens Wiklander <jenswi@kernel.org>,
Sumit Garg <sumit.garg@kernel.org>, Scott Branden <scott.branden@broadcom.com>,
Broadcom internal kernel review list <bcm-kernel-feedback-list@broadcom.com>, Arnd Bergmann <arnd@arndb.de>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>, Richard Cochran <richardcochran@gmail.com>,
David Woodhouse <dwmw2@infradead.org>, Andrew Lunn <andrew+netdev@lunn.ch>,
"David S. Miller" <davem@davemloft.net>, Eric Dumazet <edumazet@kernel.org>,
Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>, 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
X-Mailing-List: netdev@vger.kernel.org
X-List-Post: <mailto:netdev@vger.kernel.org>
X-List-Help: <mailto:netdev+help@vger.kernel.org>
X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org>
X-List-Owner: <mailto:netdev+owner@vger.kernel.org>
X-Precedence: list
X-In-Reply-To: <CAHC9VhQGnnoik9ZvD4mVcuvwCXg0pz-FCzP46Ado6bwoO3-i6g@mail.gmail.com>