The patch titled enforce proper tlb flush in unmap_hugepage_range has been removed from the -mm tree. Its filename is enforce-proper-tlb-flush-in-unmap_hugepage_range.patch This patch was dropped because it was merged into mainline or a subsystem tree ------------------------------------------------------ Subject: enforce proper tlb flush in unmap_hugepage_range From: "Chen, Kenneth W" <kenneth.w.chen@xxxxxxxxx> Spotted by Hugh that hugetlb page is free'ed back to global pool before performing any TLB flush in unmap_hugepage_range(). This potentially allow threads to abuse free-alloc race condition. The generic tlb gather code is unsuitable to use by hugetlb, I just open coded a page gathering list and delayed put_page until tlb flush is performed. Cc: Hugh Dickins <hugh@xxxxxxxxxxx> Signed-off-by: Ken Chen <kenneth.w.chen@xxxxxxxxx> Acked-by: William Irwin <wli@xxxxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxx> --- mm/hugetlb.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff -puN mm/hugetlb.c~enforce-proper-tlb-flush-in-unmap_hugepage_range mm/hugetlb.c --- a/mm/hugetlb.c~enforce-proper-tlb-flush-in-unmap_hugepage_range +++ a/mm/hugetlb.c @@ -364,6 +364,8 @@ void unmap_hugepage_range(struct vm_area pte_t *ptep; pte_t pte; struct page *page; + struct page *tmp; + LIST_HEAD(page_list); WARN_ON(!is_vm_hugetlb_page(vma)); BUG_ON(start & ~HPAGE_MASK); @@ -384,12 +386,16 @@ void unmap_hugepage_range(struct vm_area continue; page = pte_page(pte); - put_page(page); + list_add(&page->lru, &page_list); add_mm_counter(mm, file_rss, (int) -(HPAGE_SIZE / PAGE_SIZE)); } spin_unlock(&mm->page_table_lock); flush_tlb_range(vma, start, end); + list_for_each_entry_safe(page, tmp, &page_list, lru) { + list_del(&page->lru); + put_page(page); + } } static int hugetlb_cow(struct mm_struct *mm, struct vm_area_struct *vma, _ Patches currently in -mm which might be from kenneth.w.chen@xxxxxxxxx are origin.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