|
@@ -3,7 +3,6 @@
|
|
* Copyright (C) 2001, 2002 Andi Kleen, SuSE Labs.
|
|
* Copyright (C) 2001, 2002 Andi Kleen, SuSE Labs.
|
|
* Copyright (C) 2008-2009, Red Hat Inc., Ingo Molnar
|
|
* Copyright (C) 2008-2009, Red Hat Inc., Ingo Molnar
|
|
*/
|
|
*/
|
|
-#include <linux/magic.h> /* STACK_END_MAGIC */
|
|
|
|
#include <linux/sched.h> /* test_thread_flag(), ... */
|
|
#include <linux/sched.h> /* test_thread_flag(), ... */
|
|
#include <linux/kdebug.h> /* oops_begin/end, ... */
|
|
#include <linux/kdebug.h> /* oops_begin/end, ... */
|
|
#include <linux/module.h> /* search_exception_table */
|
|
#include <linux/module.h> /* search_exception_table */
|
|
@@ -710,7 +709,7 @@ no_context(struct pt_regs *regs, unsigned long error_code,
|
|
show_fault_oops(regs, error_code, address);
|
|
show_fault_oops(regs, error_code, address);
|
|
|
|
|
|
stackend = end_of_stack(tsk);
|
|
stackend = end_of_stack(tsk);
|
|
- if (tsk != &init_task && *stackend != STACK_END_MAGIC)
|
|
|
|
|
|
+ if (*stackend != STACK_END_MAGIC)
|
|
printk(KERN_EMERG "Thread overran stack, or stack corrupted\n");
|
|
printk(KERN_EMERG "Thread overran stack, or stack corrupted\n");
|
|
|
|
|
|
tsk->thread.cr2 = address;
|
|
tsk->thread.cr2 = address;
|