[lkml]   [2006]   [Jan]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    Patch in this message
    Subject[patch 3/6] [SPARC64]: Fix ptrace/strace
    -stable review patch.  If anyone has any objections, please let us know.

    From: Richard Mortimer <>

    Don't clobber register %l0 while checking TI_SYS_NOERROR value in
    syscall return path. This bug was introduced by:


    Problem narrowed down by Luis F. Ortiz and Richard Mortimer.

    I tried using %l2 as suggested by Luis and that works for me.

    Looking at the code I wonder if it makes sense to simplify the code
    a little bit. The following works for me but I'm not sure how to
    exercise the "NOERROR" codepath.

    Signed-off-by: David S. Miller <>
    Signed-off-by: Chris Wright <>
    Signed-off-by: Greg Kroah-Hartman <>
    arch/sparc64/kernel/entry.S | 7 ++-----
    1 file changed, 2 insertions(+), 5 deletions(-)

    --- linux-
    +++ linux-
    @@ -1657,13 +1657,10 @@ ret_sys_call:
    /* Check if force_successful_syscall_return()
    * was invoked.
    - ldub [%curptr + TI_SYS_NOERROR], %l0
    - brz,pt %l0, 1f
    - nop
    - ba,pt %xcc, 80f
    + ldub [%curptr + TI_SYS_NOERROR], %l2
    + brnz,a,pn %l2, 80f
    stb %g0, [%curptr + TI_SYS_NOERROR]

    bgeu,pn %xcc, 1f
    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-01-28 03:24    [W:0.019 / U:6.412 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site