Re: [patch] mm, hugetlb: close race when setting PageTail for gigantic pages

From: Davidlohr Bueso
Date: Tue Feb 24 2015 - 21:20:40 EST


On Tue, 2015-02-24 at 16:16 -0800, David Rientjes wrote:
> 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 <rientjes@xxxxxxxxxx>

Acked-by: Davidlohr Bueso <dave@xxxxxxxxxxxx>


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/