Roughly. The caller is not in the pid namespace so shows up as pid 0.
Good question. I need to go back and look at that.
do_wait() can't work and I missed that dependency the first time
around. Having looked at my earlier bug report from Daniel when
I was playing with this patchset earlier it is clear that he was
triggering the proc_mnt race with such a process.
So except for ptrace I don't think the proc_mnt problem is possible
to trigger in the current code.
ns->dead is just a flag to say no more processes in the pid namespace.
Which means an unshare into the pid namespace after zap_pid_ns_processes
has been called will fail().
Eric
--