Re: [PATCH RFC v3 2/4] pidfd: add CLONE_PIDFD_AUTOKILL
From: Linus Torvalds
Date: Tue Feb 17 2026 - 18:18:25 EST
On Tue, 17 Feb 2026 at 14:36, Christian Brauner <brauner@xxxxxxxxxx> wrote:
>
> Add a new clone3() flag CLONE_PIDFD_AUTOKILL that ties a child's
> lifetime to the pidfd returned from clone3(). When the last reference to
> the struct file created by clone3() is closed the kernel sends SIGKILL
> to the child.
Did I read this right? You can now basically kill suid binaries that
you started but don't have rights to kill any other way.
If I'm right, this is completely broken. Please explain.
Linus