From: David Rientjes Date: Thu, 12 Mar 2015 23:25:54 +0000 (-0700) Subject: mm, hugetlb: close race when setting PageTail for gigantic pages X-Git-Tag: omap-for-v4.1/wl12xx-dt~22^2~9 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=44fc80573cc760a7154f41fd0a958ee10eba1a81;p=pandora-kernel.git mm, hugetlb: close race when setting PageTail for gigantic pages Now that gigantic pages are dynamically allocatable, care must be taken to ensure that p->first_page is valid before setting PageTail. If this isn't done, then it is possible to race and have compound_head() return NULL. Signed-off-by: David Rientjes Acked-by: Davidlohr Bueso Cc: Luiz Capitulino Cc: Joonsoo Kim Acked-by: Hillf Danton Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed