diff options
| author | Etienne Perot <eperot@google.com> | 2026-08-28 21:52:52 +0000 |
|---|---|---|
| committer | Tejun Heo <tj@kernel.org> | 2026-08-31 06:19:53 -1000 |
| commit | 3f4b7d1a49c5c826f3be9b684313eea5b83ac232 (patch) | |
| tree | 88470aa88b7acc11bbeda48ca55cfb83770597d9 /rust/alloc | |
| parent | 8e359920216689b3b79e0fe8961a77fe312a511f (diff) | |
selftests/cgroup: test clone3() into a previously killed cgroup
Once cgroup.kill had been written to a cgroup, a stale kill_seq
snapshot (taken in cgroup_css_set_fork() before the target cgroup was
resolved) caused every child subsequently cloned into that cgroup with
clone3(CLONE_INTO_CGROUP) to be SIGKILLed on the spot.
Add a regression test: create a cgroup, kill it while it is empty,
then clone a child into it and check that the child runs and exits
cleanly. On a kernel without the fix, the test fails:
not ok 4 test_cgkill_clone_into_killed
The test is skipped on kernels without clone3() or without
CLONE_INTO_CGROUP.
Cc: Shakeel Butt <shakeel.butt@linux.dev>
Assisted-by: LLM
Signed-off-by: Etienne Perot <eperot@google.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'rust/alloc')
0 files changed, 0 insertions, 0 deletions
