Commit 71290d21 authored by Manfred Spraul's avatar Manfred Spraul Committed by David S. Miller

[PATCH] Prepare for page unmapper

Avoid touching the next page in the NMI handler stack validity check.

That way, we can start unmapping pages that aren't in use, without
triggering this case.
parent 9910824e
......@@ -508,6 +508,15 @@ debug_stack_correct:
ENTRY(nmi)
cmpl $sysenter_entry,(%esp)
je nmi_stack_fixup
pushl %eax
movl %esp,%eax
/* Do not access memory above the end of our stack page,
* it might not exist.
*/
andl $0x1fff,%eax
cmpl $0x1fec,%eax
popl %eax
jae nmi_stack_correct
cmpl $sysenter_entry,12(%esp)
je nmi_debug_stack_check
nmi_stack_correct:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment