• Dave Hansen's avatar
    x86/mm: Break out kernel address space handling · 8fed6200
    Dave Hansen authored
    The page fault handler (__do_page_fault())  basically has two sections:
    one for handling faults in the kernel portion of the address space
    and another for faults in the user portion of the address space.
    
    But, these two parts don't stick out that well.  Let's make that more
    clear from code separation and naming.  Pull kernel fault
    handling into its own helper, and reflect that naming by renaming
    spurious_fault() -> spurious_kernel_fault().
    
    Also, rewrite the vmalloc() handling comment a bit.  It was a bit
    stale and also glossed over the reserved bit handling.
    
    Cc: x86@kernel.org
    Cc: Jann Horn <jannh@google.com>
    Cc: Sean Christopherson <sean.j.christopherson@intel.com>
    Cc: Thomas Gleixner <tglx@linutronix.de>
    Cc: Andy Lutomirski <luto@kernel.org>
    Signed-off-by: default avatarDave Hansen <dave.hansen@linux.intel.com>
    Signed-off-by: default avatarPeter Zijlstra (Intel) <peterz@infradead.org>
    Link: http://lkml.kernel.org/r/20180928160222.401F4E10@viggo.jf.intel.com
    8fed6200
fault.c 38.9 KB