From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Thu, 23 Aug 2007 14:07:32 +0100 Subject: Re: [BUG] 2.6.23-rc3-mm1 kernel BUG at mm/page_alloc.c:2876! Message-ID: <20070823130732.GC18456@skynet.ie> References: <46CC9A7A.2030404@linux.vnet.ibm.com> <20070822134800.ce5a5a69.akpm@linux-foundation.org> <20070822135024.dde8ef5a.akpm@linux-foundation.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline In-Reply-To: <20070822135024.dde8ef5a.akpm@linux-foundation.org> From: mel@skynet.ie (Mel Gorman) Sender: owner-linux-mm@kvack.org Return-Path: To: Andrew Morton Cc: Kamalesh Babulal , linux-kernel@vger.kernel.org, Balbir Singh , Christoph Lameter , linux-mm@kvack.org List-ID: On (22/08/07 13:50), Andrew Morton didst pronounce: > On Wed, 22 Aug 2007 13:48:00 -0700 > Andrew Morton wrote: > > > This: > > > > --- a/mm/page_alloc.c~a > > +++ a/mm/page_alloc.c > > @@ -2814,6 +2814,8 @@ static int __cpuinit process_zones(int c > > return 0; > > bad: > > for_each_zone(dzone) { > > + if (!populated_zone(zone)) > > + continue; > > if (dzone == zone) > > break; > > kfree(zone_pcp(dzone, cpu)); > > _ > > > > might help avoid the crash > > err, make that > We're already in the error path at this point and it's going to blow up. The real problem is kmalloc_node() returning NULL for whatever reason. > --- a/mm/page_alloc.c~a > +++ a/mm/page_alloc.c > @@ -2814,6 +2814,8 @@ static int __cpuinit process_zones(int c > return 0; > bad: > for_each_zone(dzone) { > + if (!populated_zone(dzone)) > + continue; > if (dzone == zone) > break; > kfree(zone_pcp(dzone, cpu)); > _ > > -- -- Mel Gorman Part-time Phd Student Linux Technology Center University of Limerick IBM Dublin Software Lab -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org