mm-mark-vmas-detached-upon-exit.patch removed from -mm tree
The quilt patch titled
Subject: mm: mark vmas detached upon exit
has been removed from the -mm tree. Its filename was
mm-mark-vmas-detached-upon-exit.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: mm: mark vmas detached upon exit
Date: Thu, 13 Feb 2025 14:46:42 -0800
When exit_mmap() removes vmas belonging to an exiting task, it does not mark them as detached since they can't be reached by other tasks and they will be freed shortly. Once we introduce vma reuse, all vmas will have to be in detached state before they are freed to ensure vma when reused is in a consistent state. Add missing vma_mark_detached() before freeing the vma.
---
mm/vma.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)
mm/vma.c renamed from mm/vma.c~mm-mark-vmas-detached-upon-exit +4 -2
@@ -427,10 +427,12 @@ void remove_vma(struct vm_area_struct *vif (vma->vm_file)fput (vma->vm_file);mpol_put (vma_policy (vma)); -if (unreachable) +if (unreachable) { +vma_mark_detached (vma);__vm_area_free (vma); -else + }else {vm_area_free (vma); + } }/*
_
Patches currently in -mm which might be from [email protected] are