• Frederic Weisbecker's avatar
    x86/context-tracking: Remove exception_enter/exit() from do_page_fault() · ee6352b2
    Frederic Weisbecker authored
    do_page_fault(), like other exceptions, is already covered by
    user_enter() and user_exit() when the exception triggers in userspace.
    
    As explained in:
    
      8c84014f ("x86/entry: Remove exception_enter() from most trap handlers")
    
    exception_enter/exit() only remained to handle possible page fault from
    kernel mode while context tracking is in CONTEXT_USER mode, ie: on
    kernel entry before we manage to call user_exit(). The only known
    offender was do_fast_syscall_32() fetching EBP register from where
    vDSO stashed it.
    
    Meanwhile this got fixed in:
    
      9999c8c0 ("x86/entry: Call enter_from_user_mode() with IRQs off")
    
    that moved enter_from_user_mode() before the call to get_user().
    
    So we can safely remove it now.
    Signed-off-by: default avatarFrederic Weisbecker <frederic@kernel.org>
    Cc: Andy Lutomirski <luto@kernel.org>
    Cc: Borislav Petkov <bp@alien8.de>
    Cc: Jim Mattson <jmattson@google.com>
    Cc: Joerg Roedel <joro@8bytes.org>
    Cc: Linus Torvalds <torvalds@linux-foundation.org>
    Cc: Paolo Bonzini <pbonzini@redhat.com>
    Cc: Peter Zijlstra <peterz@infradead.org>
    Cc: Radim Krčmář <rkrcmar@redhat.com>
    Cc: Sean Christopherson <sean.j.christopherson@intel.com>
    Cc: Thomas Gleixner <tglx@linutronix.de>
    Cc: Vitaly Kuznetsov <vkuznets@redhat.com>
    Cc: Wanpeng Li <wanpengli@tencent.com>
    Link: https://lkml.kernel.org/r/20191227163612.10039-2-frederic@kernel.orgSigned-off-by: default avatarIngo Molnar <mingo@kernel.org>
    ee6352b2
fault.c 39.3 KB