Skip to contentSkip to conversation

2.6.19-rc6 : Spontaneous reboots, stack overflows - seems to implicate xfs

DISCUSSION Chuck Ebbert 1 participant 1 message Nov 26, 2006

lore
Share & tools
lore
#0 lore raw

In-Reply-To: <[email protected]>

Quoted 6 lines · David Chinner

Also, that means that while XFS is apparently only using <1500 bytes of stack through this path according to the static stack checker tool, there's more than 2k of extra stack usage that the tool is not telling me about. i.e. XFS and whatever is above/below it should have a full 4k to work with. I'd really like to know where that extra stack space is being used....

You could try applying the (untested) patch below and booting with the parameter "kstack=2048", then regenerate the problem stack traces. This should give you a complete raw stack dump in addition to the call trace for each overflow.

(Output could get very large, so maybe adding a counter and stopping after ~100 events might also be a good idea.)

arch/i386/kernel/irq.c +1 -1
@@ -80,7 +80,7 @@ fastcall unsigned int do_IRQ(struct pt_r
 		if (unlikely(esp < (sizeof(struct thread_info) + STACK_WARN))) {
 			printk("do_IRQ: stack overflow: %ld\n",
 				esp - sizeof(struct thread_info));
-			dump_stack();
+			show_stack();
 		}
 	}
 #endif
Signature · 2 lines
Chuck
"Even supernovas have their duller moments."