Guardia Tercerização

2009-11-01 Thread Guardia Terceriza��o de Servi�os
Precisando de servios ou Segurana ? acesse nossosite:www.guardia.com.br Se no estiver visualizado a imagem, favor acessar o seguinte endereo:http://www.guardia.com.br/marketing/ ou nosso site: www.guardia.com.br Clique Aqui para se descadastrar de nossa lista.

upstream/utrace: copy_process() TIF_SINGLESTEP

2009-11-01 Thread Oleg Nesterov
shouldn't copy_process() do clear_tsk_thread_flag(child, TIF_SINGLESTEP) ? I'll recheck this, but looks like both upstream and utrace-ptrace should do this. Otherwise, the new child can start with TIF_SINGLESTEP copied from parent's ti-flags. This looks just wrong, but if we do not auto-attach

[PATCH 125-129] SIGTRAP changes

2009-11-01 Thread Oleg Nesterov
It took me more time/efforts than I expected, and probably needs more changes. I still owe you review/fixes for utrace-cleanup branch. Oleg.

[PATCH 125] ptrace_request: turn ptrace_resume() into default case

2009-11-01 Thread Oleg Nesterov
As you suggested, we can simplify ptrace_request()-ptrace_resume() path, ptrace_resume_action() checks all for resume requests except PTRACE_CONT. --- kernel/ptrace.c | 22 ++ 1 file changed, 6 insertions(+), 16 deletions(-) ---

[PATCH 126] prepare ptrace_report_signal() to synthesize SIGTRAP

2009-11-01 Thread Oleg Nesterov
Preparation, no functional changes. - change ptrace_report_signal()-resume_signal() to clear ctx-signr, not only ctx-siginfo. This allows us to overload ctx-signr. IOW, with this patch ctx-signr != 0 is only possible when a tracee is stopped with the valid ctx-siginfo after reporting the

[PATCH 127] move ptrace_resume()-send_sigtrap() logic into ptrace_report_signal()

2009-11-01 Thread Oleg Nesterov
Move send_sigtrap() logic from ptrace_resume() to ptrace_report_signal(). ptrace_resume() sets ctx-signr = SIGTRAP and returns UTRACE_INTERRUPT. ptrace_report_signal() notices SIGTRAP, fills *info and reports the signal. fill_sigtrap_info() mimics x86-specific send_sigtrap(), therefore:

[PATCH 128] introduce suppress_sigtrap() to prevent unwanted send_sigtrap()

2009-11-01 Thread Oleg Nesterov
Suppose that a PTRACE_O_TRACEFORK tracee does fork() and stops in SYSCALL_ENTRY state. The tracer does PTRACE_SINGLESTEP. In this case the tracee resumes and stops after syscall_trace_leave() to report PTRACE_EVENT_FORK, but since it passes syscall_trace_leave() with TIF_SINGLESTEP set the tracee