• Roland McGrath's avatar
    x86: ptrace vs -ENOSYS · a31f8dd7
    Roland McGrath authored
    When we're stopped at syscall entry tracing, ptrace can change the %rax
    value from -ENOSYS to something else.  If no system call is actually made
    because the syscall number (now in orig_rax) is bad, then we now always
    reset %rax to -ENOSYS again.
    
    This changes it to leave the return value alone after entry tracing.
    That way, the %rax value set by ptrace is there to be seen in user mode
    (or in syscall exit tracing).  This is consistent with what the 32-bit
    kernel does.
    Signed-off-by: default avatarRoland McGrath <roland@redhat.com>
    Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
    a31f8dd7
entry_64.S 27.9 KB