[lkml]   [2006]   [Jun]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    Patch in this message
    Subject[PATCH 10/11] x86_64: Dont do syscall exit tracing twice
    -stable review patch.  If anyone has any objections, please let us know.

    From: Andi Kleen <>

    This fixes a regression from the earlier DOS fix for non canonical
    IRET addresses. It broke UML.

    int_ret_from_syscall already does syscall exit tracing, so
    no need to do it again in the caller.

    This caused problems for UML and some other special programs doing
    syscall interception.

    Signed-off-by: Andi Kleen <>
    Signed-off-by: Chris Wright <>
    arch/x86_64/kernel/entry.S | 7 +------
    1 file changed, 1 insertion(+), 6 deletions(-)

    --- linux-
    +++ linux-
    @@ -281,12 +281,7 @@ tracesys:
    ja 1f
    movq %r10,%rcx /* fixup for C */
    call *sys_call_table(,%rax,8)
    - movq %rax,RAX-ARGOFFSET(%rsp)
    -1: SAVE_REST
    - movq %rsp,%rdi
    - call syscall_trace_leave
    +1: movq %rax,RAX-ARGOFFSET(%rsp)
    /* Use IRET because user could have changed frame */
    jmp int_ret_from_sys_call
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    More majordomo info at
    Please read the FAQ at

     \ /
      Last update: 2006-06-02 21:50    [W:0.020 / U:3.480 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site