diff options
author | 2009-02-19 11:46:36 -0500 | |
---|---|---|
committer | 2009-02-20 11:44:47 -0500 | |
commit | 3c3e5694add02e665bbbd0fecfbbdcc0b903097a (patch) | |
tree | 949dd1e8f6f5903bedf3e20b407da1b4d2823881 /include/linux/kernel.h | |
parent | x86: use the right protections for split-up pagetables (diff) | |
download | wireguard-linux-3c3e5694add02e665bbbd0fecfbbdcc0b903097a.tar.xz wireguard-linux-3c3e5694add02e665bbbd0fecfbbdcc0b903097a.zip |
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 <srostedt@redhat.com>
Diffstat (limited to 'include/linux/kernel.h')
0 files changed, 0 insertions, 0 deletions