Re: [bug] SLUB + mm/slab.c boot crash in -rc9

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Ingo Molnar
Date: Monday, April 14, 2008 - 11:25 pm

you asked me to run with the debug patch attached below. I just tried 
vanilla -rc9 (head 120dd64cacd4fb7) and it still crashes with this 
config:

  http://redhat.com/~mingo/misc/config-Thu_Apr_10_10_41_16_CEST_2008.bad.rc9

debug output is:

  http://redhat.com/~mingo/misc/log-Thu_Apr_10_10_41_16_CEST_2008.bad.rc9

so it's probably the first few page allocations (setup_cpu_cache()) 
going wrong already - suggesting a some fundamental borkage in SLAB?

note, when i change SLAB to SLUB (and keep the config unchanged 
otherwise), i get a similar early crash:

  http://redhat.com/~mingo/misc/log-Tue_Apr_15_07_24_59_CEST_2008.bad
  http://redhat.com/~mingo/misc/config-Tue_Apr_15_07_24_59_CEST_2008.bad

i've also uploaded a bzImage (SLUB, debug patch not applied) that you 
can pick up and run on any 32-bit test-system:

  http://redhat.com/~mingo/misc/bzImage-Thu_Apr_10_10_41_16_CEST_2008.bad.rc9

it's a relatively generic bzImage that should boot on most whitebox PCs 
on most distros as long as you use a pure ext3 setup and might even give 
you networking (no modules or initrd is needed). It boots fine on two 
other 32-bit PCs i have (an Intel laptop and an AMD desktop).

	Ingo

Index: linux/mm/page_alloc.c
===================================================================
--- linux.orig/mm/page_alloc.c
+++ linux/mm/page_alloc.c
@@ -1485,6 +1485,7 @@ restart:
 		 * Happens if we have an empty zonelist as a result of
 		 * GFP_THISNODE being used on a memoryless node
 		 */
+		WARN_ON(1);
 		return NULL;
 	}
 
Index: linux/mm/slab.c
===================================================================
--- linux.orig/mm/slab.c
+++ linux/mm/slab.c
@@ -1682,6 +1682,7 @@ static void *kmem_getpages(struct kmem_c
 		flags |= __GFP_RECLAIMABLE;
 
 	page = alloc_pages_node(nodeid, flags, cachep->gfporder);
+	WARN_ON(!page);
 	if (!page)
 		return NULL;
 
@@ -2620,6 +2621,7 @@ static struct slab *alloc_slabmgmt(struc
 		/* Slab management obj is off-slab. */
 		slabp = kmem_cache_alloc_node(cachep->slabp_cache,
 					      local_flags & ~GFP_THISNODE, nodeid);
+		WARN_ON(!slabp);
 		if (!slabp)
 			return NULL;
 	} else {
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [bug] SLUB + mm/slab.c boot crash in -rc9, Ingo Molnar, (Mon Apr 14, 11:25 pm)
Re: [bug] SLUB + mm/slab.c boot crash in -rc9, Pekka Enberg, (Mon Apr 14, 11:41 pm)
Re: [bug] SLUB + mm/slab.c boot crash in -rc9, Ingo Molnar, (Tue Apr 15, 12:08 am)
Re: [bug] SLUB + mm/slab.c boot crash in -rc9, Yinghai Lu, (Tue Apr 15, 1:31 am)
Re: [bug] SLUB + mm/slab.c boot crash in -rc9, Ingo Molnar, (Tue Apr 15, 1:46 am)
Re: [bug] SLUB + mm/slab.c boot crash in -rc9, Ingo Molnar, (Tue Apr 15, 2:11 am)
Re: [bug] SLUB + mm/slab.c boot crash in -rc9, Linus Torvalds, (Tue Apr 15, 9:02 am)
Re: [bug] SLUB + mm/slab.c boot crash in -rc9, Ingo Molnar, (Tue Apr 15, 9:15 am)
Re: [bug] SLUB + mm/slab.c boot crash in -rc9, Linus Torvalds, (Tue Apr 15, 10:23 am)
Re: [bug] SLUB + mm/slab.c boot crash in -rc9, Ingo Molnar, (Tue Apr 15, 12:35 pm)
Re: [bug] SLUB + mm/slab.c boot crash in -rc9, Christoph Lameter, (Tue Apr 15, 12:39 pm)
Re: [bug] SLUB + mm/slab.c boot crash in -rc9, Ingo Molnar, (Tue Apr 15, 12:41 pm)
Re: [bug] SLUB + mm/slab.c boot crash in -rc9, Ingo Molnar, (Tue Apr 15, 12:54 pm)
Re: [bug] SLUB + mm/slab.c boot crash in -rc9, Christoph Lameter, (Tue Apr 15, 1:03 pm)
Re: [bug] SLUB + mm/slab.c boot crash in -rc9, Ingo Molnar, (Tue Apr 15, 1:17 pm)
Re: [bug] SLUB + mm/slab.c boot crash in -rc9, Ingo Molnar, (Tue Apr 15, 1:23 pm)
Re: [bug] SLUB + mm/slab.c boot crash in -rc9, Ingo Molnar, (Tue Apr 15, 1:28 pm)
Re: [bug] SLUB + mm/slab.c boot crash in -rc9, Ingo Molnar, (Tue Apr 15, 1:34 pm)
Re: [bug] SLUB + mm/slab.c boot crash in -rc9, Pekka Enberg, (Tue Apr 15, 1:34 pm)
Re: [bug] SLUB + mm/slab.c boot crash in -rc9, Ingo Molnar, (Tue Apr 15, 1:40 pm)
Re: [bug] SLUB + mm/slab.c boot crash in -rc9, Ingo Molnar, (Tue Apr 15, 1:42 pm)
Re: [bug] SLUB + mm/slab.c boot crash in -rc9, Christoph Lameter, (Tue Apr 15, 1:50 pm)
Re: [bug] SLUB + mm/slab.c boot crash in -rc9, Christoph Lameter, (Tue Apr 15, 1:54 pm)
Re: [bug] SLUB + mm/slab.c boot crash in -rc9, Ingo Molnar, (Tue Apr 15, 1:58 pm)
Re: [bug] SLUB + mm/slab.c boot crash in -rc9, Ingo Molnar, (Tue Apr 15, 1:58 pm)
Re: [bug] SLUB + mm/slab.c boot crash in -rc9, Linus Torvalds, (Tue Apr 15, 2:06 pm)
Re: [bug] SLUB + mm/slab.c boot crash in -rc9, Christoph Lameter, (Tue Apr 15, 2:08 pm)
Re: [bug] SLUB + mm/slab.c boot crash in -rc9, Ingo Molnar, (Tue Apr 15, 2:08 pm)
Re: [bug] SLUB + mm/slab.c boot crash in -rc9, Ingo Molnar, (Tue Apr 15, 2:13 pm)
Re: [bug] SLUB + mm/slab.c boot crash in -rc9, Mike Travis, (Tue Apr 15, 2:16 pm)
Re: [bug] SLUB + mm/slab.c boot crash in -rc9, Ingo Molnar, (Tue Apr 15, 2:19 pm)
Re: [bug] SLUB + mm/slab.c boot crash in -rc9, Christoph Lameter, (Tue Apr 15, 2:21 pm)
Re: [bug] SLUB + mm/slab.c boot crash in -rc9, Ingo Molnar, (Tue Apr 15, 2:23 pm)
Re: [bug] SLUB + mm/slab.c boot crash in -rc9, Ingo Molnar, (Tue Apr 15, 2:24 pm)
Re: [bug] SLUB + mm/slab.c boot crash in -rc9, Christoph Lameter, (Tue Apr 15, 2:24 pm)
Re: [bug] SLUB + mm/slab.c boot crash in -rc9, Mike Travis, (Tue Apr 15, 2:27 pm)
Re: [bug] SLUB + mm/slab.c boot crash in -rc9, Ingo Molnar, (Tue Apr 15, 2:28 pm)
Re: [bug] SLUB + mm/slab.c boot crash in -rc9, Christoph Lameter, (Tue Apr 15, 2:33 pm)
Re: [bug] SLUB + mm/slab.c boot crash in -rc9, Christoph Lameter, (Tue Apr 15, 2:42 pm)
Re: [bug] SLUB + mm/slab.c boot crash in -rc9, Mike Travis, (Tue Apr 15, 2:43 pm)
Re: [bug] SLUB + mm/slab.c boot crash in -rc9, Ingo Molnar, (Tue Apr 15, 2:55 pm)
Re: [bug] SLUB + mm/slab.c boot crash in -rc9, Christoph Lameter, (Tue Apr 15, 3:06 pm)
Re: [bug] SLUB + mm/slab.c boot crash in -rc9, Ingo Molnar, (Tue Apr 15, 3:07 pm)
Re: [bug] SLUB + mm/slab.c boot crash in -rc9, Ingo Molnar, (Tue Apr 15, 3:13 pm)
Re: [bug] SLUB + mm/slab.c boot crash in -rc9, Christoph Lameter, (Tue Apr 15, 3:27 pm)
Re: [bug] SLUB + mm/slab.c boot crash in -rc9, Ingo Molnar, (Tue Apr 15, 3:32 pm)
Re: [bug] SLUB + mm/slab.c boot crash in -rc9, Yinghai Lu, (Tue Apr 15, 4:18 pm)
Re: [bug] SLUB + mm/slab.c boot crash in -rc9, Christoph Lameter, (Tue Apr 15, 4:22 pm)
Re: [bug] SLUB + mm/slab.c boot crash in -rc9, Ingo Molnar, (Tue Apr 15, 4:27 pm)
Re: [bug] SLUB + mm/slab.c boot crash in -rc9, Christoph Lameter, (Tue Apr 15, 4:32 pm)
Re: [bug] SLUB + mm/slab.c boot crash in -rc9, Christoph Lameter, (Tue Apr 15, 5:04 pm)
Re: [patch] mm: sparsemem memory_present() memory corrupti ..., Christoph Lameter, (Tue Apr 15, 5:10 pm)
Re: [patch] mm: sparsemem memory_present() memory corrupti ..., Christoph Lameter, (Tue Apr 15, 5:19 pm)
Re: [patch] mm: sparsemem memory_present() memory corrupti ..., Christoph Lameter, (Tue Apr 15, 5:45 pm)
Re: [patch] mm: sparsemem memory_present() memory corrupti ..., Christoph Lameter, (Tue Apr 15, 5:46 pm)
Re: [patch] mm: sparsemem memory_present() memory corrupti ..., KAMEZAWA Hiroyuki, (Tue Apr 15, 6:48 pm)
Re: [patch] mm: sparsemem memory_present() memory corrupti ..., KAMEZAWA Hiroyuki, (Tue Apr 15, 7:20 pm)