summaryrefslogtreecommitdiff
path: root/kernel
diff options
context:
space:
mode:
authorRoland McGrath <roland@redhat.com>2005-01-14 23:38:36 -0800
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-01-14 23:38:36 -0800
commita6a3f14ce0d747c7dc7ba708cf9290f8c73909fb (patch)
treeef9aedbfecbae9b40c236e7db1ecbfcb0edb677e /kernel
parentba540cf98567d6bb6332c8b11fba1c802126d86b (diff)
[PATCH] fix coredump_wait deadlock with ptracer & tracee on shared mm
In the oddball situation where one thread is using ptrace on another thread sharing the same mm, and then someone sharing that mm causes a coredump, there is a deadlock possible if the traced thread is in TASK_TRACED state. It leaves all the threads sharing that mm wedged and permanently unkillable. This patch checks for that situation and brings a thread out of TASK_TRACED if its tracer is part of the same coredump (i.e. shares the same mm). It's not pretty, but it does the job. Signed-off-by: Roland McGrath <roland@redhat.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'kernel')
0 files changed, 0 insertions, 0 deletions