diff options
author | Oleg Nesterov <[email protected]> | 2016-01-20 14:59:55 -0800 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2016-01-20 17:09:18 -0800 |
commit | 7c3b00e06d731a28fc3d17ed02ba250642b15b81 (patch) | |
tree | a6367f3ebe8e98bd217336af1f70115ffef5a8b7 /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | 8992de4cec126c6703ece0747239d071dbce725f (diff) |
ptrace: make wait_on_bit(JOBCTL_TRAPPING_BIT) in ptrace_attach() killable
ptrace_attach() can hang waiting for STOPPED -> TRACED transition if the
tracee gets frozen in between, change wait_on_bit() to use TASK_KILLABLE.
This doesn't really solve the problem(s) and we probably need to fix the
freezer. In particular, note that this means that pm freezer will fail if
it races attach-to-stopped-task.
And otoh perhaps we can just remove JOBCTL_TRAPPING_BIT altogether, it is
not clear if we really need to hide this transition from debugger, WNOHANG
after PTRACE_ATTACH can fail anyway if it races with SIGCONT.
Signed-off-by: Oleg Nesterov <[email protected]>
Reported-by: 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 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions