The patch titled mm: nommu: check the vma list when unmapping file-mapped vma has been removed from the -mm tree. Its filename was mm-nommu-check-the-vma-list-when-unmapping-file-mapped-vma.patch This patch was dropped because it was merged into mainline or a subsystem tree The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/ ------------------------------------------------------ Subject: mm: nommu: check the vma list when unmapping file-mapped vma From: Namhyung Kim <namhyung@xxxxxxxxx> Now we have the sorted vma list, use it in do_munmap() to check that we have an exact match. Signed-off-by: Namhyung Kim <namhyung@xxxxxxxxx> Acked-by: Greg Ungerer <gerg@xxxxxxxxxxx> Cc: David Howells <dhowells@xxxxxxxxxx> Cc: Paul Mundt <lethal@xxxxxxxxxxxx> Cc: Geert Uytterhoeven <geert@xxxxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- mm/nommu.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff -puN mm/nommu.c~mm-nommu-check-the-vma-list-when-unmapping-file-mapped-vma mm/nommu.c --- a/mm/nommu.c~mm-nommu-check-the-vma-list-when-unmapping-file-mapped-vma +++ a/mm/nommu.c @@ -1635,7 +1635,6 @@ static int shrink_vma(struct mm_struct * int do_munmap(struct mm_struct *mm, unsigned long start, size_t len) { struct vm_area_struct *vma; - struct rb_node *rb; unsigned long end = start + len; int ret; @@ -1668,9 +1667,8 @@ int do_munmap(struct mm_struct *mm, unsi } if (end == vma->vm_end) goto erase_whole_vma; - rb = rb_next(&vma->vm_rb); - vma = rb_entry(rb, struct vm_area_struct, vm_rb); - } while (rb); + vma = vma->vm_next; + } while (vma); kleave(" = -EINVAL [split file]"); return -EINVAL; } else { _ Patches currently in -mm which might be from namhyung@xxxxxxxxx are origin.patch memcg-mark-init_section_page_cgroup-properly.patch memcg-fix-off-by-one-when-calculating-swap-cgroup-map-length.patch memcg-move-page-freeing-code-out-of-lock.patch maintainers-add-mm-page_cgroupc-into-memcg-subsystem.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html