• Linus Torvalds's avatar
    x86: make traps on 'iret' be debuggable in user space · a879cbbb
    Linus Torvalds authored
    This makes a trap on the 'iret' that returns us to user space
    cause a nice clean SIGSEGV, instead of just a hard (and silent)
    exit.
    
    That way a debugger can actually try to see what happened, and
    we also properly notify everybody who might be interested about
    us being gone.
    
    This loses the error code, but tells the debugger what happened
    with ILL_BADSTK in the siginfo.
    a879cbbb
traps.c 27.7 KB