]> git.baikalelectronics.ru Git - kernel.git/commit
exit: reparent: fix the dead-parent PR_SET_CHILD_SUBREAPER reparenting
authorOleg Nesterov <oleg@redhat.com>
Wed, 10 Dec 2014 23:54:59 +0000 (15:54 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 11 Dec 2014 01:41:17 +0000 (17:41 -0800)
commit7731fd7938c4b313cb8b5a21a94253bad235e7fb
tree81e2f96286e523330c2d698d742899ef3dd1909b
parentef132399b58850b8ae116c163cb6faa9ea43fc65
exit: reparent: fix the dead-parent PR_SET_CHILD_SUBREAPER reparenting

The ->has_child_subreaper code in find_new_reaper() finds alive "thread"
but returns another "reaper" thread which can be dead.

Signed-off-by: Oleg Nesterov <oleg@redhat.com>
Cc: Aaron Tomlin <atomlin@redhat.com>
Cc: "Eric W. Biederman" <ebiederm@xmission.com>
Cc: Kay Sievers <kay@vrfy.org>
Cc: Lennart Poettering <lennart@poettering.net>
Cc: Sterling Alexander <stalexan@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
kernel/exit.c