• A
    x86/entry: Remove exception_enter() from most trap handlers · 8c84014f
    Andy Lutomirski 提交于
    On 64-bit kernels, we don't need it any more: we handle context
    tracking directly on entry from user mode and exit to user mode.
    
    On 32-bit kernels, we don't support context tracking at all, so
    these callbacks had no effect.
    
    Note: this doesn't change do_page_fault().  Before we do that,
    we need to make sure that there is no code that can page fault
    from kernel mode with CONTEXT_USER.  The 32-bit fast system call
    stack argument code is the only offender I'm aware of right now.
    Signed-off-by: NAndy Lutomirski <luto@kernel.org>
    Cc: Andy Lutomirski <luto@amacapital.net>
    Cc: Borislav Petkov <bp@alien8.de>
    Cc: Brian Gerst <brgerst@gmail.com>
    Cc: Denys Vlasenko <dvlasenk@redhat.com>
    Cc: Denys Vlasenko <vda.linux@googlemail.com>
    Cc: Frederic Weisbecker <fweisbec@gmail.com>
    Cc: H. Peter Anvin <hpa@zytor.com>
    Cc: Kees Cook <keescook@chromium.org>
    Cc: Linus Torvalds <torvalds@linux-foundation.org>
    Cc: Oleg Nesterov <oleg@redhat.com>
    Cc: Peter Zijlstra <peterz@infradead.org>
    Cc: Rik van Riel <riel@redhat.com>
    Cc: Thomas Gleixner <tglx@linutronix.de>
    Cc: paulmck@linux.vnet.ibm.com
    Link: http://lkml.kernel.org/r/ae22f4dfebd799c916574089964592be218151f9.1435952415.git.luto@kernel.orgSigned-off-by: NIngo Molnar <mingo@kernel.org>
    8c84014f
p5.c 1.7 KB