Skip to content
  • Steven Rostedt's avatar
    x86: check PMD in spurious_fault handler · 3c3e5694
    Steven Rostedt authored
    
    
    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: default avatarSteven Rostedt <srostedt@redhat.com>
    3c3e5694