Revision c876ad7682155958d0c9c27afe9017925c230d64 authored by Eric W. Biederman on 22 December 2012, 04:27:12 UTC, committed by Eric W. Biederman on 26 December 2012, 00:10:05 UTC
Oleg pointed out that in a pid namespace the sequence.
- pid 1 becomes a zombie
- setns(thepidns), fork,...
- reaping pid 1.
- The injected processes exiting.

Can lead to processes attempting access their child reaper and
instead following a stale pointer.

That waitpid for init can return before all of the processes in
the pid namespace have exited is also unfortunate.

Avoid these problems by disabling the allocation of new pids in a pid
namespace when init dies, instead of when the last process in a pid
namespace is reaped.

Pointed-out-by:  Oleg Nesterov <oleg@redhat.com>
Reviewed-by: Oleg Nesterov <oleg@redhat.com>
Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
1 parent 8382fca
History
File Mode Size
.gitignore -rw-r--r-- 34 bytes
Makefile -rw-r--r-- 467 bytes
empty.c -rw-r--r-- 54 bytes
file2alias.c -rw-r--r-- 34.5 KB
mk_elfconfig.c -rw-r--r-- 1.2 KB
modpost.c -rw-r--r-- 56.6 KB
modpost.h -rw-r--r-- 4.7 KB
sumversion.c -rw-r--r-- 11.9 KB

back to top