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=1795542983; b=cg/reoo2KSsXn5d30Cgi5dFDoFj8hT8+4vv75b8Sq2UZkjDEj4GTwru8QAJKUjmWg9Rw cEbt3N58t89OAOjgNsXuSdoaWBQfwCaInll0+0UwUitI47gphlNFOEXiEAvmsKQ4ZBepL hKkyvfZP3L783j+OzJwWYdEbLxxF8/h+qpEua3HqKPd6DAlEHnRruvFFpbpKhjzFD7qtF qYNNxzKZZjqvRAFkzWPwaoUCWHZzewhTYY8w/PyZLXlllWyMuYG2e98noIc+PD0VV9m4H mJ9RMMpWIf09RjrG45dJQ8QxStk2lYG0ukg4K4vTtj9C9qumcGudR0yyT0lE2a5q/ig== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795542983; h=Received:DKIM-Signature:Date:To:From:In-Reply-To:References:Subject: Message-Id; bh=BsRFq2QRf0mWghD9QAHHuBEA/jvtvECOUYK98GT0SL0=; b=uBFs0TUEkU6tuFmKIdbB3NbkiRVjLkimRIVUUqOeZIY5Gz0v8W9pQ01G0gjMB2x9nexN 6rgwuw5d1Tga60YInuJA6WFO92Y35/ibFHep5tnRd24IOUoqXA8JgZgM9V6tyOdzvx6AR w/ZpbC3JZDXZtCO0xKWwpEdbHlXBFF7Pnj4Zc14xoVsDQGtpZra28P0Ki6xCSoOnUj0AH jmCDa5kdQqIEW+D5oZl/N4ENa+BuV7WbxjfDgNBIi9qTlqi58YLRcSLTaimnZx55e/z38 Voxq629qNX73UD1GjBRGvcdUG68lTI5IsovzawpaLudP+muUmqTLDgqH0330gjKQqvg== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linux-foundation.org header.i=@linux-foundation.org header.a=rsa-sha256 header.s=korg header.b=inFVmUxS; 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 BDB64606A321 for ; Tue, 24 Nov 2026 17:56:23 +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=inFVmUxS Received: by smtp.kernel.org (Postfix) with ESMTPSA id 604881F000C6; Tue, 24 Nov 2026 17:56:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=korg; t=1795542983; bh=BsRFq2QRf0mWghD9QAHHuBEA/jvtvECOUYK98GT0SL0=; h=Date:To:From:In-Reply-To:References:Subject; b=inFVmUxSCaBrr37ZDJAstr/NW//mKbhRVrbSXGaq8UCdPYzWmbP/CztoMWqo4RhNx 6PF8pdHG7MNdBlHt8rYJiNWbeEOYMm9xo+tswWPu5oZQvL4I2ZSyXWmTi778W9eFcP rDIeUyoFF+UEwWkxfRs+QMolUL27E30SFnMFBsPE= Date: Tue, 24 Nov 2026 09:56:22 -0800 To: mm-commits@vger.kernel.org,ljs@kernel.org,akpm@linux-foundation.org From: Andrew Morton In-Reply-To: <20261124-late-2026-vma-flags-v2-9-bf3fade93064@kernel.org> References: <20261124-late-2026-vma-flags-v2-9-bf3fade93064@kernel.org> Subject: + apparmor-convert-vma-flag-tests-to-use-vma_flags_t.patch added to mm-new branch Message-Id: <20261124175623.604881F000C6@smtp.kernel.org> X-Mailing-List: mm-commits@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list The patch titled Subject: apparmor: convert VMA flag tests to use vma_flags_t has been added to the -mm mm-new branch. Its filename is apparmor-convert-vma-flag-tests-to-use-vma_flags_t.patch This patch will shortly appear at https://git.kernel.org/pub/scm/linux/kernel/git/akpm/25-new.git/tree/patches/apparmor-convert-vma-flag-tests-to-use-vma_flags_t.patch This patch will later appear in the mm-new branch at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm Note, mm-new is a provisional staging ground for work-in-progress patches, and acceptance into mm-new is a notification for others take notice and to finish up reviews. Please do not hesitate to respond to review feedback and post updated versions to replace or incrementally fixup patches in mm-new. The mm-new branch of mm.git is not included in linux-next If a few days of testing in mm-new is successful, the patch will me moved into mm.git's mm-unstable branch, which is included in linux-next Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/process/submit-checklist.rst when testing your code *** The -mm tree is included into linux-next via various branches at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm and is updated there most days ------------------------------------------------------ From: "Lorenzo Stoakes (ARM)" Subject: apparmor: convert VMA flag tests to use vma_flags_t Date: Tue, 24 Nov 2026 17:08:01 +0000 Replace use of the legacy vm_flags_t flags with vma_flags_t values in the AppArmor mprotect LSM hook. No functional change intended. Link: https://patch.msgid.link/20261124-late-2026-vma-flags-v2-9-bf3fade93064@kernel.org Signed-off-by: Lorenzo Stoakes (ARM) Signed-off-by: Andrew Morton Reviewed-by: Lance Yang Cc: David Hildenbrand Cc: Jason Gunthorpe Cc: John Hubbard Cc: Peter Xu Cc: Matthew Wilcox (Oracle) Cc: Jan Kara Cc: Rik van Riel Cc: Liam R. Howlett Cc: Vlastimil Babka Cc: Harry Yoo Cc: Jann Horn Cc: Zi Yan Cc: Matthew Brost Cc: Joshua Hahn Cc: Byungchul Park Cc: Gregory Price Cc: Ying Huang Cc: Alistair Popple Cc: Baolin Wang Cc: Nico Pache Cc: Ryan Roberts Cc: Dev Jain Cc: Barry Song Cc: Usama Arif Cc: Kiryl Shutsemau Cc: Xu Xin Cc: Chengming Zhou Cc: Madhavan Srinivasan Cc: Nicholas Piggin Cc: Michael Ellerman Cc: Christophe Leroy Cc: Ritesh Harjani (IBM) Cc: Shrikanth Hegde Cc: Pedro Falcato Cc: Kairui Song Cc: Qi Zheng Cc: Shakeel Butt Cc: Axel Rasmussen Cc: Yuanchu Xie Cc: Wei Xu Cc: Baoquan He Cc: Mike Rapoport Cc: Suren Baghdasaryan Cc: Michal Hocko Cc: Leon Romanovsky Cc: SJ Park Cc: Rakie Kim Cc: David Rientjes Cc: Al Viro Cc: Christian Brauner Cc: Peter Zijlstra Cc: Ingo Molnar Cc: Arnaldo Carvalho de Melo Cc: Namhyung Kim Cc: Mark Rutland Cc: Alexander Shishkin Cc: Jiri Olsa Cc: Ian Rogers Cc: Adrian Hunter Cc: James Clark Cc: Masami Hiramatsu Cc: Oleg Nesterov Cc: John Johansen Cc: Georgia Garcia Cc: Paul Moore Cc: James Morris Cc: Serge E. Hallyn Cc: Mimi Zohar Cc: Roberto Sassu Cc: Dmitry Kasatkin Cc: Eric Snowberg Cc: Fan Wu Cc: Stephen Smalley Cc: Ondrej Mosnáček security/apparmor/lsm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/security/apparmor/lsm.c~apparmor-convert-vma-flag-tests-to-use-vma_flags_t +++ a/security/apparmor/lsm.c @@ -591,7 +591,7 @@ static int apparmor_file_mprotect(struct unsigned long reqprot, unsigned long prot) { return common_mmap(OP_FMPROT, vma->vm_file, prot, - !(vma->vm_flags & VM_SHARED) ? MAP_PRIVATE : 0); + !vma_test(vma, VMA_SHARED_BIT) ? MAP_PRIVATE : 0); } #ifdef CONFIG_IO_URING _ Patches currently in -mm which might be from ljs@kernel.org are mm-msync-return-enomem-if-page-aligned-length-overflows.patch mm-vma-drop-mm-asynchronously-in-vma_start_read.patch mm-vma-predicate-vma_assert_stabilised-on-config_debug_vm.patch mm-only-assert-mmap-locks-if-config_debug_vm-or-lockdep-is-set.patch mm-only-assert-vma-locks-if-config_debug_vm-is-set.patch mm-convert-warn_on_onces-to-vm_warn_on_once-in-vma-lock-code.patch mm-madvise-zap-markers-from-guard-regions.patch mm-mmap-free-gathered-pages-before-mmf_oom_skip.patch percpu-fix-contig-hints-that-are-too-low.patch percpu-search-the-whole-reserved-chunk.patch mm-filemap-convert-fault-and-readahead-logic-to-use-vma_flags_t.patch mm-madvise-convert-madvise_vma_behavior-to-use-vma_flags_t.patch mm-convert-miscellaneous-vma-flag-tests-to-use-vma_flags_t.patch fs-proc-task_mmu-convert-vma-flag-tests-to-use-vma_flags_t.patch fs-coredump-convert-vma_dump_size-to-use-vma_flags_t.patch uprobes-convert-vma-flag-tests-to-use-vma_flags_t.patch perf-convert-vma-flag-tests-to-use-vma_flags_t.patch selinux-convert-vma-flag-tests-to-use-vma_flags_t.patch apparmor-convert-vma-flag-tests-to-use-vma_flags_t.patch ima-convert-vma-flag-tests-to-use-vma_flags_t.patch ipe-convert-vma-flag-tests-to-use-vma_flags_t.patch