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

2015-02-24 Thread Hillf Danton
> 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: Hillf Danton

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

2015-02-24 Thread Davidlohr Bueso
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. > > Signe

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

2015-02-24 Thread David Rientjes
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 --- mm/hugetlb.c | 4 +++- 1 file changed, 3