diff options
author | Oleg Nesterov <oleg@redhat.com> | 2016-01-21 01:59:58 +0300 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2016-01-21 04:09:18 +0300 |
commit | 570ac9337b5c13dbf46ca6758c376e2e13e8956f (patch) | |
tree | 361e5714890df92ffe88ea81b6125ed165511d61 /Documentation/mic | |
parent | 7c3b00e06d731a28fc3d17ed02ba250642b15b81 (diff) | |
download | linux-570ac9337b5c13dbf46ca6758c376e2e13e8956f.tar.xz |
ptrace: task_stopped_code(ptrace => true) can't see TASK_STOPPED task
task_stopped_code()->task_is_stopped_or_traced() doesn't look right, the
traced task must never be TASK_STOPPED.
We can not add WARN_ON(task_is_stopped(p)), but this is only because
do_wait() can race with PTRACE_ATTACH from another thread.
[akpm@linux-foundation.org: teeny cleanup]
Signed-off-by: Oleg Nesterov <oleg@redhat.com>
Cc: Andrey Ryabinin <aryabinin@virtuozzo.com>
Cc: Roland McGrath <roland@hack.frob.com>
Acked-by: Tejun Heo <tj@kernel.org>
Cc: Pedro Alves <palves@redhat.com>
Cc: Jan Kratochvil <jan.kratochvil@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'Documentation/mic')
0 files changed, 0 insertions, 0 deletions