diff options
author | Oleg Nesterov <oleg@redhat.com> | 2016-01-20 23:59:58 +0100 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2016-01-21 02:09:18 +0100 |
commit | 570ac9337b5c13dbf46ca6758c376e2e13e8956f (patch) | |
tree | 361e5714890df92ffe88ea81b6125ed165511d61 /security/smack | |
parent | ptrace: make wait_on_bit(JOBCTL_TRAPPING_BIT) in ptrace_attach() killable (diff) | |
download | linux-570ac9337b5c13dbf46ca6758c376e2e13e8956f.tar.xz linux-570ac9337b5c13dbf46ca6758c376e2e13e8956f.zip |
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 'security/smack')
0 files changed, 0 insertions, 0 deletions