From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Thu, 3 Jul 2008 17:36:38 +0100 From: Mel Gorman Subject: [PATCH] Do not clobber pgdat->nr_zones during memory initialisation Message-ID: <20080703163638.GC18055@csn.ul.ie> References: <20080701175855.GI32727@shadowen.org> <20080701190741.GB16501@csn.ul.ie> <1214944175.26855.18.camel@dwillia2-linux.ch.intel.com> <20080702051759.GA26338@csn.ul.ie> <1215049766.2840.43.camel@dwillia2-linux.ch.intel.com> <20080703042750.GB14614@csn.ul.ie> <20080703050036.GD14614@csn.ul.ie> <1215064455.15797.4.camel@dwillia2-linux.ch.intel.com> <486CD623.8030906@linux-foundation.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline In-Reply-To: <486CD623.8030906@linux-foundation.org> Sender: owner-linux-mm@kvack.org Return-Path: To: Christoph Lameter Cc: Dan Williams , Linus Torvalds , Andy Whitcroft , linux-mm@kvack.org, linux-kernel@vger.kernel.org, NeilBrown , babydr@baby-dragons.com, lee.schermerhorn@hp.com, a.beregalov@gmail.com, akpm@linux-foundation.org List-ID: On (03/07/08 08:37), Christoph Lameter didst pronounce: > What a convoluted description. Simply put: We clobber the nr_zones field > because we write beyond the bounds of the node_zonelists[] array in > struct pglist_data. > Subject: [PATCH] Do not clobber pgdat->nr_zones during memory initialisation The nr_zones field is getting clobbered due to a write beyond the bounds of the node_zonelists[] array in struct pglist_data. Signed-off-by: Mel Gorman --- mm/page_alloc.c | 1 - 1 file changed, 1 deletion(-) diff -rup -X /usr/src/patchset-0.6/bin//dontdiff linux-2.6.26-rc8-clean/mm/page_alloc.c linux-2.6.26-rc8-fix-kswapd-on-numa/mm/page_alloc.c --- linux-2.6.26-rc8-clean/mm/page_alloc.c 2008-06-24 18:58:20.000000000 -0700 +++ linux-2.6.26-rc8-fix-kswapd-on-numa/mm/page_alloc.c 2008-07-02 21:49:09.000000000 -0700 @@ -2328,7 +2328,6 @@ static void build_zonelists(pg_data_t *p static void build_zonelist_cache(pg_data_t *pgdat) { pgdat->node_zonelists[0].zlcache_ptr = NULL; - pgdat->node_zonelists[1].zlcache_ptr = NULL; } #endif /* CONFIG_NUMA */ -- 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