From: Naoya Horiguchi Date: Mon, 23 Jun 2014 20:22:03 +0000 (-0700) Subject: hugetlb: fix copy_hugetlb_page_range() to handle migration/hwpoisoned entry X-Git-Tag: omap-for-v3.16/fixes-rc4~63^2~25 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4a705fef986231a3e7a6b1a6d3c37025f021f49f;p=pandora-kernel.git hugetlb: fix copy_hugetlb_page_range() to handle migration/hwpoisoned entry There's a race between fork() and hugepage migration, as a result we try to "dereference" a swap entry as a normal pte, causing kernel panic. The cause of the problem is that copy_hugetlb_page_range() can't handle "swap entry" family (migration entry and hwpoisoned entry) so let's fix it. [akpm@linux-foundation.org: coding-style fixes] Signed-off-by: Naoya Horiguchi Acked-by: Hugh Dickins Cc: Christoph Lameter Cc: [2.6.37+] Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed