From: Steven Rostedt Date: Thu, 19 Feb 2009 16:46:36 +0000 (-0500) Subject: x86: check PMD in spurious_fault handler X-Git-Tag: v2.6.30-rc1~211^2~43^5~15^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3c3e5694add02e665bbbd0fecfbbdcc0b903097a;p=pandora-kernel.git x86: check PMD in spurious_fault handler 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 --- Reading git-diff-tree failed