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.
Regarding these lines:
sandboxd/pkg/cgroupmanager/ops_v2.go
Lines 217 to 224 in f8b2833
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.