• Andi Kleen's avatar
    [PATCH] x86-64: Fix up handling of non canonical user RIPs · c33d4568
    Andi Kleen authored
    EM64T CPUs have somewhat weird error reporting for non canonical RIPs in
    SYSRET.
    
    We can't handle any exceptions there because the exception handler would
    end up running on the user stack which is unsafe.
    
    To avoid problems any code that might end up with a user touched pt_regs
    should return using int_ret_from_syscall.  int_ret_from_syscall ends up
    using IRET, which allows safe exceptions.
    
    Cc: Ernie Petrides <petrides@redhat.com>
    Signed-off-by: default avatarAndi Kleen <ak@suse.de>
    Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
    c33d4568
entry.S 23.7 KB