x86: check PMD in spurious_fault handler
authorSteven Rostedt <srostedt@redhat.com>
Thu, 19 Feb 2009 16:46:36 +0000 (11:46 -0500)
committerSteven Rostedt <srostedt@redhat.com>
Fri, 20 Feb 2009 16:44:47 +0000 (11:44 -0500)
Impact: fix to prevent hard lockup on bad PMD permissions

If the PMD does not have the correct permissions for a page access,
but the PTE does, the spurious fault handler will mistake the fault
as a lazy TLB transaction. This will result in an infinite loop of:

 fault -> spurious_fault check (pass) -> return to code -> fault

This patch adds a check and a warn on if the PTE passes the permissions
but the PMD does not.

[ Updated: Ingo Molnar suggested using WARN_ONCE with some text ]

Signed-off-by: Steven Rostedt <srostedt@redhat.com>

No differences found