]> bbs.cooldavid.org Git - net-next-2.6.git/commitdiff
x86: Suppress stack overrun message for init_task
authorJan Beulich <JBeulich@novell.com>
Fri, 20 Nov 2009 14:00:14 +0000 (14:00 +0000)
committerIngo Molnar <mingo@elte.hu>
Mon, 23 Nov 2009 10:45:34 +0000 (11:45 +0100)
init_task doesn't get its stack end location set to
STACK_END_MAGIC, and hence the message is confusing
rather than helpful in this case.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
LKML-Reference: <4B06AEFE02000078000211F4@vpn.id2.novell.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/mm/fault.c

index f4cee9028cf0b01e11951662b625f63371f627e6..071eee6041473d7f5da261f07aaad322067bb828 100644 (file)
@@ -658,7 +658,7 @@ no_context(struct pt_regs *regs, unsigned long error_code,
        show_fault_oops(regs, error_code, address);
 
        stackend = end_of_stack(tsk);
-       if (*stackend != STACK_END_MAGIC)
+       if (tsk != &init_task && *stackend != STACK_END_MAGIC)
                printk(KERN_ALERT "Thread overran stack, or stack corrupted\n");
 
        tsk->thread.cr2         = address;