ptrace: ptrace_check_attach() should not do s/STOPPED/TRACED/
authorOleg Nesterov <oleg@redhat.com>
Fri, 1 Apr 2011 18:13:01 +0000 (20:13 +0200)
committerTejun Heo <tj@kernel.org>
Mon, 4 Apr 2011 00:11:05 +0000 (02:11 +0200)
commit321fb561971ba0f10ce18c0f8a4b9fbfc7cef4b9
tree4123410887b549284ed32cf5e8fb799fd2540c14
parentee77f075921730b2b465880f9fd4367003bdab39
ptrace: ptrace_check_attach() should not do s/STOPPED/TRACED/

After "ptrace: Clean transitions between TASK_STOPPED and TRACED"
d79fdd6d96f46fabb779d86332e3677c6f5c2a4f, ptrace_check_attach()
should never see a TASK_STOPPED tracee and s/STOPPED/TRACED/ is
no longer legal. Add the warning.

Note: ptrace_check_attach() can be greatly simplified, in particular
it doesn't need tasklist. But I'd prefer another patch for that.

Signed-off-by: Oleg Nesterov <oleg@redhat.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
kernel/ptrace.c
This page took 0.041885 seconds and 5 git commands to generate.