mm-vma-convert-as-much-as-we-can-in-mm-vmac-to-vma_flags_t.patch removed from -mm tree
The quilt patch titled
Subject: mm/vma: convert as much as we can in mm/vma.c to vma_flags_t
has been removed from the -mm tree. Its filename was
mm-vma-convert-as-much-as-we-can-in-mm-vmac-to-vma_flags_t.patch
This patch was dropped because it was merged into the mm-stable branch of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
------------------------------------------------------
From: "Lorenzo Stoakes (Oracle)" <[email protected]>
Subject: mm/vma: convert as much as we can in mm/vma.c to vma_flags_t
Date: Fri, 20 Mar 2026 19:38:38 +0000
Now we have established a good foundation for vm_flags_t to vma_flags_t changes, update mm/vma.c to utilise vma_flags_t wherever possible.
We are able to convert VM_STARTGAP_FLAGS entirely as this is only used in mm/vma.c, and to account for the fact we can't use VM_NONE to make life easier, place the definition of this within existing #ifdef's to be cleaner.
Generally the remaining changes are mechanical.
Also update the VMA tests to reflect the changes.
---
include/linux/mm.h | 6 + mm/vma.c | 89 +++++++++++++++------------- tools/testing/vma/include/dup.h | 4 + tools/testing/vma/include/stubs.h | 2 4 files changed, 59 insertions(+), 42 deletions(-)
include/linux/mm.h renamed from include/linux/mm.h~mm-vma-convert-as-much-as-we-can-in-mm-vmac-to-vma_flags_t +4 -2
@@ -463,8 +463,10 @@ enum {#if defined(CONFIG_X86_USER_SHADOW_STACK ) || defined(CONFIG_ARM64_GCS ) || \ defined(CONFIG_RISCV_USER_CFI )#define VM_SHADOW_STACK INIT_VM_FLAG(SHADOW_STACK) +#define VMA_STARTGAP_FLAGS mk_vma_flags(VMA_GROWSDOWN_BIT, VMA_SHADOW_STACK_BIT)#else #define VM_SHADOW_STACK VM_NONE +#define VMA_STARTGAP_FLAGS mk_vma_flags(VMA_GROWSDOWN_BIT)#endif #if defined(CONFIG_PPC64 )#define VM_SAO INIT_VM_FLAG(SAO)
@@ -539,8 +541,6 @@ enum {/* Temporary until VMA flags conversion complete. */ #define VM_STACK_FLAGS vma_flags_to_legacy(VMA_STACK_FLAGS) -#define VM_STARTGAP_FLAGS (VM_GROWSDOWN | VM_SHADOW_STACK) -#ifdef CONFIG_MSEAL_SYSTEM_MAPPINGS #define VM_SEALED_SYSMAP VM_SEALED#else
@@ -584,6 +584,8 @@ enum {/* This mask represents all the VMA flag bits used by mlock */ #define VM_LOCKED_MASK (VM_LOCKED | VM_LOCKONFAULT) +#define VMA_LOCKED_MASK mk_vma_flags(VMA_LOCKED_BIT, VMA_LOCKONFAULT_BIT) +/* These flags can be updated atomically via VMA/mmap read lock. */ #define VM_ATOMIC_SET_ALLOWED VM_MAYBE_GUARD
mm/vma.c renamed from mm/vma.c~mm-vma-convert-as-much-as-we-can-in-mm-vmac-to-vma_flags_t +50 -39
283 lines not on this page · raw message
tools/testing/vma/include/dup.h renamed from tools/testing/vma/include/dup.h~mm-vma-convert-as-much-as-we-can-in-mm-vmac-to-vma_flags_t +4 -0
@@ -267,8 +267,10 @@ enum {#endif /* CONFIG_ARCH_HAS_PKEYS */ #if defined(CONFIG_X86_USER_SHADOW_STACK ) || defined(CONFIG_ARM64_GCS )#define VM_SHADOW_STACK INIT_VM_FLAG(SHADOW_STACK) +#define VMA_STARTGAP_FLAGS mk_vma_flags(VMA_GROWSDOWN_BIT, VMA_SHADOW_STACK_BIT)#else #define VM_SHADOW_STACK VM_NONE +#define VMA_STARTGAP_FLAGS mk_vma_flags(VMA_GROWSDOWN_BIT)#endif #if defined(CONFIG_PPC64 )#define VM_SAO INIT_VM_FLAG(SAO)
@@ -366,6 +368,8 @@ enum {/* This mask represents all the VMA flag bits used by mlock */ #define VM_LOCKED_MASK (VM_LOCKED | VM_LOCKONFAULT) +#define VMA_LOCKED_MASK mk_vma_flags(VMA_LOCKED_BIT, VMA_LOCKONFAULT_BIT) +#define RLIMIT_STACK 3/* max stack size */ #define RLIMIT_MEMLOCK 8/* max locked-in-memory address space */
tools/testing/vma/include/stubs.h renamed from tools/testing/vma/include/stubs.h~mm-vma-convert-as-much-as-we-can-in-mm-vmac-to-vma_flags_t +1 -1
@@ -229,7 +229,7 @@ static inline bool signal_pending(void *return false; } -static inline bool is_file_hugepages (struct file *file) +static inline bool is_file_hugepages (const struct file *file) {return false; }
_
Patches currently in -mm which might be from [email protected] are
maintainers-update-mglru-entry-to-reflect-current-status.patch selftests-mm-add-merge-test-for-partial-msealed-range.patch