• Roland McGrath's avatar
    ptrace: compat_ptrace_request siginfo · e16b2781
    Roland McGrath authored
    This adds support for PTRACE_GETSIGINFO and PTRACE_SETSIGINFO in
    compat_ptrace_request.  It relies on existing arch definitions for
    copy_siginfo_to_user32 and copy_siginfo_from_user32.
    
    On powerpc, this fixes a longstanding regression of 32-bit ptrace
    calls on 64-bit kernels vs native calls (64-bit calls or 32-bit
    kernels).  This can be seen in a 32-bit call using PTRACE_GETSIGINFO
    to examine e.g. siginfo_t.si_addr from a signal that sets it.
    (This was broken as of 2.6.24 and, I presume, many or all prior versions.)
    Signed-off-by: default avatarRoland McGrath <roland@redhat.com>
    Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
    e16b2781
ptrace.c 15.9 KB