[RFC PATCH v3 03/13] rootns: Track init lifecycle via copy_process() and pid_namespace

sashiko-bot at kernel.org sashiko-bot at kernel.org
Thu Nov 19 19:36:49 UTC 2026


> A root namespace needs to record its init thread group's PID when
> bootstrapped and capture its exit status and resource usage once all
> processes in the root namespace have terminated, without serializing
> normal fork() and exit() paths inside the container.
> 
> Commit the bootstrap child reaper, bind pid_ns->rootns, and wake waiters
> in copy_rootns() after attach_pid(PIDTYPE_PID), and invoke exit_rootns()
> from zap_pid_ns_processes() after the root namespace's PID namespace has
> killed and reaped all member tasks.
> 
> Co-developed-by: David Howells <dhowells at redhat.com>
> Signed-off-by: David Howells <dhowells at redhat.com>
> Signed-off-by: Jarkko Sakkinen <jarkko at kernel.org>

Sashiko has reviewed this patch and found no issues.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261118193539.240065-1-jarkko@kernel.org?part=3




More information about the Linux-security-module-archive mailing list