From: Chen, Kenneth W Date: Wed, 4 Oct 2006 09:15:24 +0000 (-0700) Subject: [PATCH] enforce proper tlb flush in unmap_hugepage_range X-Git-Tag: v2.6.19-rc1~158 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fe1668ae5bf0145014c71797febd9ad5670d5d05;p=pandora-kernel.git [PATCH] enforce proper tlb flush in unmap_hugepage_range 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 Signed-off-by: Ken Chen Acked-by: William Irwin Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed