• Roland McGrath's avatar
    [PATCH] ptrace userspace API preservation · fad0738b
    Roland McGrath authored
    This makes any ptrace operation that finds the target in TASK_STOPPED state
    morph it into TASK_TRACED state before doing anything.  This necessitates
    reverting the last_siginfo accesses to check instead of assume last_siginfo
    is set, since it's no longer impossible to be in TASK_TRACED without being
    stopped in ptrace_stop (though there are no associated races to worry
    about).
    Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
    fad0738b
ptrace.c 7.63 KB