The patch titled rmap: resurrect page_address_in_vma anon_vma check has been added to the -mm tree. Its filename is rmap-resurrect-page_address_in_vma-anon_vma-check.patch 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/SubmitChecklist when testing your code *** See http://userweb.kernel.org/~akpm/stuff/added-to-mm.txt to find out what to do about this The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/ ------------------------------------------------------ Subject: rmap: resurrect page_address_in_vma anon_vma check From: Andrea Arcangeli <aarcange@xxxxxxxxxx> With root anon-vma it's trivial to keep doing the usual check as in old-anon-vma code. Signed-off-by: Andrea Arcangeli <aarcange@xxxxxxxxxx> Signed-off-by: Rik van Riel <riel@xxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- mm/rmap.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff -puN mm/rmap.c~rmap-resurrect-page_address_in_vma-anon_vma-check mm/rmap.c --- a/mm/rmap.c~rmap-resurrect-page_address_in_vma-anon_vma-check +++ a/mm/rmap.c @@ -367,9 +367,10 @@ vma_address(struct page *page, struct vm */ unsigned long page_address_in_vma(struct page *page, struct vm_area_struct *vma) { - if (PageAnon(page)) - ; - else if (page->mapping && !(vma->vm_flags & VM_NONLINEAR)) { + if (PageAnon(page)) { + if (vma->anon_vma->root != page_anon_vma(page)->root) + return -EFAULT; + } else if (page->mapping && !(vma->vm_flags & VM_NONLINEAR)) { if (!vma->vm_file || vma->vm_file->f_mapping != page->mapping) return -EFAULT; _ Patches currently in -mm which might be from aarcange@xxxxxxxxxx are linux-next.patch hugetlb-call-mmu-notifiers-on-hugepage-cow.patch define-madv_hugepage.patch mmap-remove-unnecessary-lock-from-__vma_link.patch rmap-always-add-new-vmas-at-the-end.patch ksm-fix-ksm-swapin-time-optimization.patch rmap-always-use-anon_vma-root-pointer.patch rmap-resurrect-page_address_in_vma-anon_vma-check.patch add-anon_vma-bug-checks.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