[lkml]   [2019]   [Jan]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH v2] kernel: release ptraced tasks before zap_pid_ns_processes
On Thu, 10 Jan 2019 09:52:00 -0800 Andrei Vagin <> wrote:

> Currently, exit_ptrace() adds all ptraced tasks in a dead list, than
> zap_pid_ns_processes() waits all tasks in a current pidns, and only
> then tasks from the dead list are released.
> zap_pid_ns_processes() can stuck on waiting tasks from the dead list. In
> this case, we will have one unkillable process with one or more dead
> children.
> Thanks to Oleg for the advice to release tasks in find_child_reaper().
> Fixes: 7c8bd2322c7f ("exit: ptrace: shift "reap dead" code from exit_ptrace() to forget_original_parent()")
> Cc: "Eric W. Biederman" <>
> Cc: Andrew Morton <>
> Signed-off-by: Oleg Nesterov <>
> Signed-off-by: Andrei Vagin <>

Does this warrant a -stable backport? 7c8bd2322c7f was 4+ years ago...

 \ /
  Last update: 2019-01-11 00:39    [W:0.041 / U:8.304 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site