No functional changes, preparation for utrace-ptrace.
ptrace_init_task() looks confusing, as if we always auto-attach when
bool ptrace argument is true, while in fact we attach only if current
is traced.
Make the code more explicit and kill now unused ptrace_link().
Signed-off-by: Oleg Nesterov
No functional changes, preparation for utrace-ptrace.
Change ptrace_signal() to check PT_PTRACED instead of task_ptrace() != 0.
Currently this is the same, PT_PTRACED must be always set if the task is
ptraced.
This change is needed to make sure ptrace_sgnal() does nothing if ptrace
is
No functional changes, preparation for utrace-ptrace.
Move the call to do_signal_stop() down, after tracehook call.
This makes -group_stop_count condition visible to tracers before
do_signal_stop() will participate in this group-stop.
Currently the patch has no effect, tracehook_get_signal()
No functional changes, preparation for utrace-ptrace.
Introduce kernel/ptrace.h and move the code which can be shared
with the new implementation into this new header.
Signed-off-by: Oleg Nesterov o...@redhat.com
---
kernel/ptrace-common.h | 278
On 10/26, Oleg Nesterov wrote:
For early review.
Patches 1-5 can be sent upstream right now. The last 2 patches
add the new implementation.
utrace.patch can come before or after, I think after is better.
Forgot to mention, this series is against Linus's tree.
Oleg.