diff options
Diffstat (limited to 'arch/x86/mm/fault.c')
-rw-r--r-- | arch/x86/mm/fault.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/arch/x86/mm/fault.c b/arch/x86/mm/fault.c index bc23a7043c65..6240bc7ae741 100644 --- a/arch/x86/mm/fault.c +++ b/arch/x86/mm/fault.c | |||
@@ -648,7 +648,6 @@ no_context(struct pt_regs *regs, unsigned long error_code, | |||
648 | unsigned long address, int signal, int si_code) | 648 | unsigned long address, int signal, int si_code) |
649 | { | 649 | { |
650 | struct task_struct *tsk = current; | 650 | struct task_struct *tsk = current; |
651 | unsigned long *stackend; | ||
652 | unsigned long flags; | 651 | unsigned long flags; |
653 | int sig; | 652 | int sig; |
654 | 653 | ||
@@ -708,8 +707,7 @@ no_context(struct pt_regs *regs, unsigned long error_code, | |||
708 | 707 | ||
709 | show_fault_oops(regs, error_code, address); | 708 | show_fault_oops(regs, error_code, address); |
710 | 709 | ||
711 | stackend = end_of_stack(tsk); | 710 | if (task_stack_end_corrupted(tsk)) |
712 | if (*stackend != STACK_END_MAGIC) | ||
713 | printk(KERN_EMERG "Thread overran stack, or stack corrupted\n"); | 711 | printk(KERN_EMERG "Thread overran stack, or stack corrupted\n"); |
714 | 712 | ||
715 | tsk->thread.cr2 = address; | 713 | tsk->thread.cr2 = address; |