arm64-change-elfcore-for_each_mte_vma-to-use-vma-iterator.patch removed from -mm tree
The quilt patch titled
Subject: arm64: change elfcore for_each_mte_vma() to use VMA iterator
has been removed from the -mm tree. Its filename was
arm64-change-elfcore-for_each_mte_vma-to-use-vma-iterator.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: "Liam R. Howlett" <[email protected]>
Subject: arm64: Change elfcore for_each_mte_vma() to use VMA iterator
Date: Tue, 6 Sep 2022 19:48:53 +0000
Rework for_each_mte_vma() to use a VMA iterator instead of an explicit linked-list.
Signed-off-by Liam R. Howlett <[email protected]>
Acked-by Catalin Marinas <[email protected]>
Signed-off-by Will Deacon <[email protected]>
Reviewed-by Davidlohr Bueso <[email protected]>
Tested-by Yu Zhao <[email protected]>
Cc David Hildenbrand <[email protected]>
Cc David Howells <[email protected]>
Cc "Matthew Wilcox (Oracle)" <[email protected]>
Cc SeongJae Park <[email protected]>
Cc Sven Schnelle <[email protected]>
Cc Vlastimil Babka <[email protected]>
Signed-off-by Andrew Morton <[email protected]>
---
arch/arm64/kernel/elfcore.c | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-)
arch/arm64/kernel/elfcore.c renamed from arch/arm64/kernel/elfcore.c~arm64-change-elfcore-for_each_mte_vma-to-use-vma-iterator +10 -6
@@ -8,9 +8,9 @@#include <asm/cpufeature.h> #include <asm/mte.h> -#define for_each_mte_vma (tsk, vma) \ +#define for_each_mte_vma (vmi, vma) \ if (system_supports_mte()) \ - for (vma = tsk->mm->mmap; vma; vma = vma->vm_next) \ + for_each_vma(vmi, vma) \ if (vma->vm_flags & VM_MTE)static unsigned long mte_vma_tag_dump_size (struct vm_area_struct *vma)
@@ -81,8 +81,9 @@ Elf_Half elf_core_extra_phdrs(void) {struct vm_area_struct *vma;int vma_count =0 ; +VMA_ITERATOR (vmi, current->mm,0 ); -for_each_mte_vma (current, vma) +for_each_mte_vma (vmi, vma) vma_count++;return vma_count;
@@ -91,8 +92,9 @@ Elf_Half elf_core_extra_phdrs(void)int elf_core_write_extra_phdrs (struct coredump_params *cprm,loff_t offset) {struct vm_area_struct *vma; +VMA_ITERATOR (vmi, current->mm,0 ); -for_each_mte_vma (current, vma) { +for_each_mte_vma (vmi, vma) {struct elf_phdr phdr; phdr.p_type =PT_AARCH64_MEMTAG_MTE ;
@@ -116,8 +118,9 @@ size_t elf_core_extra_data_size(void) {struct vm_area_struct *vma;size_t data_size =0 ; +VMA_ITERATOR (vmi, current->mm,0 ); -for_each_mte_vma (current, vma) +for_each_mte_vma (vmi, vma) data_size +=mte_vma_tag_dump_size (vma);return data_size;
@@ -126,8 +129,9 @@ size_t elf_core_extra_data_size(void)int elf_core_write_extra_data (struct coredump_params *cprm) {struct vm_area_struct *vma; +VMA_ITERATOR (vmi, current->mm,0 ); -for_each_mte_vma (current, vma) { +for_each_mte_vma (vmi, vma) {if (vma->vm_flags &VM_DONTDUMP )continue ;
_
Patches currently in -mm which might be from [email protected] are