The patch titled fix hugetlb page allocation leak has been added to the -mm tree. Its filename is fix-hugetlb-page-allocation-leak.patch *** Remember to use Documentation/SubmitChecklist when testing your code *** See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find out what to do about this ------------------------------------------------------ Subject: fix hugetlb page allocation leak From: "Ken Chen" <kenchen@xxxxxxxxxx> dequeue_huge_page() has a serious memory leak upon hugetlb page allocation. The for loop continues on allocating hugetlb pages out of all allowable zone, where this function is supposedly only dequeue one and only one pages. Fixed it by breaking out of the for loop once a hugetlb page is found. Signed-off-by: Ken Chen <kenchen@xxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- mm/hugetlb.c | 1 + 1 files changed, 1 insertion(+) diff -puN mm/hugetlb.c~fix-hugetlb-page-allocation-leak mm/hugetlb.c --- a/mm/hugetlb.c~fix-hugetlb-page-allocation-leak +++ a/mm/hugetlb.c @@ -84,6 +84,7 @@ static struct page *dequeue_huge_page(st list_del(&page->lru); free_huge_pages--; free_huge_pages_node[nid]--; + break; } } return page; _ Patches currently in -mm which might be from kenchen@xxxxxxxxxx are fix-hugetlb-page-allocation-leak.patch cache-pipe-buf-page-address-for-non-highmem-arch.patch writeback-fix-periodic-superblock-dirty-inode-flushing.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