On Fri, Oct 26, 2007 at 03:37:38PM -0400, Mathieu Desnoyers wrote:
Yes. The code was not designed to allow that. The syscall path
has been optimized to go as fast as possible.
ptrace only changes state in stopped processes; and those are not hanging
in syscalls. So no there is no race in a standard kernel.
If you wanted to change it the right way would be probably to test
for SYSCALL_TRACE too in the work flags and handle it there
-Andi
-