VOOZH about

URL: https://www.phoronix.com/news/Linux-7.1-clone3

⇱ Linux 7.1 Adds New Child Auto-Reap & PIDFD Auto-Kill Flags For clone3() - Phoronix


👁 Phoronix

Linux 7.1 Adds New Child Auto-Reap & PIDFD Auto-Kill Flags For clone3()

Written by Michael Larabel in Linux Kernel on 15 April 2026 at 08:45 AM EDT. 1 Comment
The clone3() system call in Linux 7.1 is adding three new flags for greater control over the creation of child processes.

One of the new flags for clone3() in Linux 7.1 is CLONE_AUTOREAP. Using the CLONE_AUTOREAP flag will make child processes auto-reap on exit without the chance of becoming a zombie process.

Another new flag is CLONE_PIDFD_AUTOKILL to tie the child's lifetime to the process ID file descriptor returned from the clone3() system call. The CLONE_PIDFD_AUTOKILL is intended to help with container runtimes, service managers, sandboxed sub-process execution and other workloads where the child processes should die if the parent process crashes.

There is also CLONE_NNP added to allow enforcing no new privileges beavhior (akin to the "no_new_privs" prctl flag on itself) on children at creation time, benefiting spawn-and-sandbox approaches.

These new clone3() flags have been merged via this pull request for Linux 7.1.

Michael Larabel is the principal author of Phoronix.com and founded the site in 2004 with a focus on enriching the Linux hardware experience. Michael has written more than 20,000 articles covering the state of Linux hardware support, Linux performance, graphics drivers, and other topics. Michael is also the lead developer of the Phoronix Test Suite, Phoromatic, and OpenBenchmarking.org automated benchmarking software. He can be followed via Twitter, LinkedIn, or contacted via MichaelLarabel.com.