[PATCH 09/13] fs/proc/task_mmu: convert VMA flag tests to use vma_flags_t

sashiko-bot at kernel.org sashiko-bot at kernel.org
Thu Nov 5 21:45:47 UTC 2026


> Replace use of the legacy vm_flags_t flags with vma_flags_t values where
> VMA flags are tested directly in /proc/$pid/[s]maps, pagemap, clear_refs
> and PROCMAP_QUERY.
> 
> In replacing vm_flags_clear() (which takes the VMA write lock) with
> vma_clear_flags() (which does not) in clear_refs_write(), we explicitly
> write lock the VMA. The mmap write lock is already held at this point.
> 
> The show_vma_header_prefix() and show_smap_vma_flags() output functions and
> the thp_vma_allowable_orders() call continue to use legacy flags for the
> time being.
> 
> No functional change intended.
> 
> Signed-off-by: Lorenzo Stoakes (ARM) <ljs at kernel.org>

Sashiko has reviewed this patch and found no issues.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261105-late-2026-vma-flags-v1-0-0d3cd15ab75f@kernel.org?part=9




More information about the Linux-security-module-archive mailing list