diff options
| author | Oleg Nesterov <[email protected]> | 2016-01-20 22:59:58 +0000 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2016-01-21 01:09:18 +0000 |
| commit | 570ac9337b5c13dbf46ca6758c376e2e13e8956f (patch) | |
| tree | 361e5714890df92ffe88ea81b6125ed165511d61 /fs/proc/array.c | |
| parent | ptrace: make wait_on_bit(JOBCTL_TRAPPING_BIT) in ptrace_attach() killable (diff) | |
| download | kernel-570ac9337b5c13dbf46ca6758c376e2e13e8956f.tar.gz kernel-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.
[[email protected]: teeny cleanup]
Signed-off-by: Oleg Nesterov <[email protected]>
Cc: Andrey Ryabinin <[email protected]>
Cc: Roland McGrath <[email protected]>
Acked-by: Tejun Heo <[email protected]>
Cc: Pedro Alves <[email protected]>
Cc: Jan Kratochvil <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'fs/proc/array.c')
0 files changed, 0 insertions, 0 deletions
