kernel-fork-convert-vma-assignment-to-a-memcpy.patch removed from -mm tree
The quilt patch titled
Subject: kernel/fork: convert vma assignment to a memcpy
has been removed from the -mm tree. Its filename was
kernel-fork-convert-vma-assignment-to-a-memcpy.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: Suren Baghdasaryan <[email protected]>
Subject: kernel/fork: convert vma assignment to a memcpy
Date: Thu, 26 Jan 2023 11:37:46 -0800
Patch series "introduce vm_flags modifier functions", v4.
This patchset was originally published as a part of per-VMA locking [1] and was split after suggestion that it's viable on its own and to facilitate the review process. It is now a preprequisite for the next version of per-VMA lock patchset, which reuses vm_flags modifier functions to lock the VMA when vm_flags are being updated.
VMA vm_flags modifications are usually done under exclusive mmap_lock protection because this attrubute affects other decisions like VMA merging or splitting and races should be prevented. Introduce vm_flags modifier functions to enforce correct locking.
This patch (of 7):
Convert vma assignment in vm_area_dup() to a memcpy() to prevent compiler errors when we add a const modifier to vma->vm_flags.
---
kernel/fork.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
kernel/fork.c renamed from kernel/fork.c~kernel-fork-convert-vma-assignment-to-a-memcpy +1 -1
@@ -472,7 +472,7 @@ struct vm_area_struct *vm_area_dup(struc* orig->shared.rb may be modified concurrently, but the clone * will be reinitialized. */ - *new =data_race (*orig); +data_race (memcpy (new, orig,sizeof (*new)));INIT_LIST_HEAD (&new->anon_vma_chain);dup_anon_vma_name (orig, new); }
_
Patches currently in -mm which might be from [email protected] are