Re: [PATCH 1/2] exit: reparent: fix/update the comments in zap_pid_ns_processes()

From: Oleg Nesterov
Date: Mon Nov 24 2014 - 15:14:53 EST


On 11/24, Oleg Nesterov wrote:
>
> + * sys_wait4() above can't reap the TASK_DEAD children but we do not
> + * really care, we could reparent them to the global init. We could
> + * exit and reap ->child_reaper even if it is not the last thread in
> + * this pid_ns, free_pid(nr_hashed == 0) calls proc_cleanup_work(),
> + * pid_ns can not go away until proc_kill_sb() drops the reference.
> + *
> + * But this namespace can also have other tasks injected by setns().
^^^^^
I meant setns() + fork(), but I hope this is clear.

Oleg.

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/