Skip to content

Revert cgroup.kill workaround once upstream Linux fixes clone3(CLONE_INTO_CGROUP) interaction #38

Description

@EtiennePerot

Regarding these lines:

// cgroup.kill is sticky while tasks from the previous sandbox are still
// being reaped. Writing it for an already empty cgroup can therefore kill
// the first process cloned into a recycled cgroup.
if len(processes) > 0 {
if err := group.Kill(); err != nil {
return err
}
}

This behavior is not intended Linux behavior. I have sent an upstream kernel patch here: https://lore.kernel.org/all/20260828215252.4126811-1-eperot@google.com/T/

Once/if this is merged, it may be useful to remove this.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions