Re: [PATCH 3/5] ptrace: change tracehook_report_syscall_exit() to handle stepping

2009-11-11 Thread Oleg Nesterov
On 11/10, Roland McGrath wrote: This change affects ia64, microblaze, parisc, powerpc, sh. They pass nonzero step argument to tracehook but since it was ignored the tracee reports via ptrace_notify(), this is not right and not consistent. This could be more explicit about the details of

Re: [PATCH 3/5] ptrace: change tracehook_report_syscall_exit() to handle stepping

2009-11-11 Thread Roland McGrath
Well, ptrace_report_syscall() checks current-exit_code after ptrace_notify() and does send_sig(). But yes, PTRACE_SETSIGINFO is doesn't work. Oh, right. Aside from PTRACE_SETSIGINFO, it's more subtly wrong in that it generates a new signal (to be seen again by ptrace) rather than delivering

[PATCH 3/5] ptrace: change tracehook_report_syscall_exit() to handle stepping

2009-11-10 Thread Oleg Nesterov
Change tracehook_report_syscall_exit() to look at step flag and send the trap signal if needed. This change affects ia64, microblaze, parisc, powerpc, sh. They pass nonzero step argument to tracehook but since it was ignored the tracee reports via ptrace_notify(), this is not right and not