[PATCH v3 0/3] ptrace: ensure arch_ptrace/ptrace_request can never race with SIGKILL

Oleg Nesterov
2013-01-21T19:48:11Z

On 01/21, Linus Torvalds wrote:
>
> I guess that works then. It's a bit sad, but at least I see why you did it.

OK, please see v3 rebased on top of "unexport ptrace_check_attach()" you
already applied.

I tried to update the comment in ptrace_check_attach(), and changed unfreeze()
to simply do WARN_ON() without if/return.

There is also the cosmetic change in 1/3,

- ptrace_signal_wake_up(child, task_is_traced(child));
+ ptrace_signal_wake_up(child, true);

in __ptrace_unlink().

Oleg.