|
@@ -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;
|