[PATCH 3/7] ptrace_init_task: cleanup the usage of ptrace_link()

2009-10-25 Thread Oleg Nesterov
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

[PATCH 4/7] ptrace_signal: check PT_PTRACED

2009-10-25 Thread 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

[PATCH 5/7] signals: check -group_stop_count after tracehook_get_signal()

2009-10-25 Thread Oleg Nesterov
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()

[PATCH 6/7] introduce kernel/ptrace.h

2009-10-25 Thread Oleg Nesterov
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

Re: [PATCH 0/7] utrace-ptrace V1

2009-10-25 Thread Oleg Nesterov
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.