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=1795542972; b=ZDR/TIPsUeP5Ewc3Nf91wdIt1DD1/t2TAXYjjbPI2dRUaoy40rS5xIgbcFJpNBHgbbt1 uakhwaDHolZOL4CSjczXoTd2VKgunQ8OAyxztnPtIYb3nf0D22OwJwh4F2ZZFRHmXuGyR WPdDystKSXBYP2soEhjQmdkbbdPi1Ve+Xme4AZQQV5k2Adv2fJwBIchbFUw5anhsy7hnA QCitk2Tu+hcAJnieaNXpLijb/rESdom0IE2xAirAxHhAoQyOUJpTHVZcjEfcUinFzPZJP z/nm8i8z2h7ce85qiywL0m8PJ144A9LBNxFcnL7fcQoiiIZypb1q1E6szNWIp40p12Q== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795542972; h=Received:DKIM-Signature:Date:To:From:In-Reply-To:References:Subject: Message-Id; bh=pJCo7eqlHPxXSJNxqMui3CSnE4Dmhyr3humnXRdSoKE=; b=ppgt09uKo+mc1NqMK1OGCGLaRFjcct2PACPJMcEOwC31HaUB+sMExnWZaLYUSovdCBjp 9Pux5nz3y8Ie/xF6RRrXpOLaEjQ4mpsUcq9PDor74TEFkDVUysAU+sintC3FXZ9F+ARLp wKaiE1qiHR+3/b3lVoPygqk6EeRi9UueRLa9Skdji/FprlDDJGvT3xwF5cWN52ojg2vHT cxtWZ3G/ASF5VD4qrIjYXyserIisvoKSHUUjb5r473Dov5BwDINjKuZdyBNQM2BF+yfxc IFwYEhjy2OCXRGfotyq3WNmKYF3GUvbuBwoPL5IWlzCsQrFU04cHD43oZNaru2w53mw== 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=haGt+q70; 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 47335606A336 for ; Tue, 24 Nov 2026 17:56:12 +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=haGt+q70 Received: by smtp.kernel.org (Postfix) with ESMTPSA id CF1191F000D0; Tue, 24 Nov 2026 17:56:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=korg; t=1795542972; bh=pJCo7eqlHPxXSJNxqMui3CSnE4Dmhyr3humnXRdSoKE=; h=Date:To:From:In-Reply-To:References:Subject; b=haGt+q70AjbudT2T71zmbxmfIAjX9ghzBUzVClNw3kR9F7hXnWln5Djjx30UFkwMB XcBDjKsBDgEnFPzWEeGarB0fpe36VVsyA/tnuRU+sHROwtmZAc7u5L4FBOFlfKfkis WyEzpRERRgaJwHr9AqGT5r2kaujLbae+P4r6mEM8= Date: Tue, 24 Nov 2026 09:56:11 -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-5-bf3fade93064@kernel.org> References: <20261124-late-2026-vma-flags-v2-5-bf3fade93064@kernel.org> Subject: + fs-coredump-convert-vma_dump_size-to-use-vma_flags_t.patch added to mm-new branch Message-Id: <20261124175611.CF1191F000D0@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: fs/coredump: convert vma_dump_size() to use vma_flags_t has been added to the -mm mm-new branch. Its filename is fs-coredump-convert-vma_dump_size-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/fs-coredump-convert-vma_dump_size-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: fs/coredump: convert vma_dump_size() to use vma_flags_t Date: Tue, 24 Nov 2026 17:07:57 +0000 Replace use of the legacy vm_flags_t flags with vma_flags_t values when determining how much of a VMA to dump. The flags copied into struct core_vma_metadata remain legacy flags as they are consumed by the binfmt handlers. No functional change intended. Link: https://patch.msgid.link/20261124-late-2026-vma-flags-v2-5-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 fs/coredump.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) --- a/fs/coredump.c~fs-coredump-convert-vma_dump_size-to-use-vma_flags_t +++ a/fs/coredump.c @@ -1837,15 +1837,15 @@ static unsigned long vma_dump_size(struc if (always_dump_vma(vma)) goto whole; - if (vma->vm_flags & VM_DONTDUMP) + if (vma_test(vma, VMA_DONTDUMP_BIT)) return 0; /* support for DAX */ if (vma_is_dax(vma)) { - if ((vma->vm_flags & VM_SHARED) && + if (vma_test(vma, VMA_SHARED_BIT) && COREDUMP_MEMORY_TYPE_INCLUDE(memory_types, DAX_SHARED)) goto whole; - if (!(vma->vm_flags & VM_SHARED) && + if (!vma_test(vma, VMA_SHARED_BIT) && COREDUMP_MEMORY_TYPE_INCLUDE(memory_types, DAX_PRIVATE)) goto whole; return 0; @@ -1853,21 +1853,21 @@ static unsigned long vma_dump_size(struc /* Hugetlb memory check */ if (vma_is_hugetlb(vma)) { - if ((vma->vm_flags & VM_SHARED) && + if (vma_test(vma, VMA_SHARED_BIT) && COREDUMP_MEMORY_TYPE_INCLUDE(memory_types, HUGETLB_SHARED)) goto whole; - if (!(vma->vm_flags & VM_SHARED) && + if (!vma_test(vma, VMA_SHARED_BIT) && COREDUMP_MEMORY_TYPE_INCLUDE(memory_types, HUGETLB_PRIVATE)) goto whole; return 0; } /* Do not dump I/O mapped devices or special mappings */ - if (vma->vm_flags & VM_IO) + if (vma_test(vma, VMA_IO_BIT)) return 0; /* By default, dump shared memory if mapped from an anonymous file. */ - if (vma->vm_flags & VM_SHARED) { + if (vma_test(vma, VMA_SHARED_BIT)) { if (file_inode(vma->vm_file)->i_nlink == 0 ? COREDUMP_MEMORY_TYPE_INCLUDE(memory_types, ANON_SHARED) : COREDUMP_MEMORY_TYPE_INCLUDE(memory_types, FILE_SHARED)) @@ -1890,7 +1890,7 @@ static unsigned long vma_dump_size(struc * dump the first page to aid in determining what was mapped here. */ if (COREDUMP_MEMORY_TYPE_INCLUDE(memory_types, ELF_HEADERS) && - vma->vm_pgoff == 0 && (vma->vm_flags & VM_READ)) { + vma->vm_pgoff == 0 && vma_test(vma, VMA_READ_BIT)) { if ((READ_ONCE(file_inode(vma->vm_file)->i_mode) & 0111) != 0) return PAGE_SIZE; _ 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