Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753869AbbBYCUf (ORCPT ); Tue, 24 Feb 2015 21:20:35 -0500 Received: from smtp2.provo.novell.com ([137.65.250.81]:34087 "EHLO smtp2.provo.novell.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752720AbbBYCUd (ORCPT ); Tue, 24 Feb 2015 21:20:33 -0500 Message-ID: <1424830824.6539.85.camel@stgolabs.net> Subject: Re: [patch] mm, hugetlb: close race when setting PageTail for gigantic pages From: Davidlohr Bueso To: David Rientjes Cc: Andrew Morton , Luiz Capitulino , Joonsoo Kim , linux-kernel@vger.kernel.org, linux-mm@kvack.org Date: Tue, 24 Feb 2015 18:20:24 -0800 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.12.9 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 640 Lines: 17 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 Acked-by: Davidlohr Bueso -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/