diff options
author | Jan Beulich <JBeulich@novell.com> | 2009-11-20 09:00:14 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-11-23 05:45:34 -0500 |
commit | 0e7810be30f66e9f430c4ce2cd3b14634211690f (patch) | |
tree | eb8e4f1c8ed8020c4a7aea9b4dbf66dc33af97b0 | |
parent | 31c997cac76e62918858a432fff6e43fd48425f9 (diff) |
x86: Suppress stack overrun message for init_task
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>
-rw-r--r-- | arch/x86/mm/fault.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/mm/fault.c b/arch/x86/mm/fault.c index f4cee9028cf..071eee60414 100644 --- a/arch/x86/mm/fault.c +++ b/arch/x86/mm/fault.c | |||
@@ -658,7 +658,7 @@ no_context(struct pt_regs *regs, unsigned long error_code, | |||
658 | show_fault_oops(regs, error_code, address); | 658 | show_fault_oops(regs, error_code, address); |
659 | 659 | ||
660 | stackend = end_of_stack(tsk); | 660 | stackend = end_of_stack(tsk); |
661 | if (*stackend != STACK_END_MAGIC) | 661 | if (tsk != &init_task && *stackend != STACK_END_MAGIC) |
662 | printk(KERN_ALERT "Thread overran stack, or stack corrupted\n"); | 662 | printk(KERN_ALERT "Thread overran stack, or stack corrupted\n"); |
663 | 663 | ||
664 | tsk->thread.cr2 = address; | 664 | tsk->thread.cr2 = address; |