Hello, Shakeel. The following is a Claude-generated review. Two problems were found, in 8/9 and 9/9. Both were reproduced in a VM with delays added to widen the windows. The debug patch and the reproducer are attached. 1. A migration that fails before it commits makes the task walk skip a task (8/9 and 9/9). cgroup_migrate_add_task() calls css_set_skip_task_iters() and moves the task to cset->mg_tasks. When ->can_attach() then fails, out_release_tset in cgroup_migrate_execute() splices mg_tasks back onto cset->tasks. An iterator whose next task was that one has already moved past the end of cset->tasks and never returns it. The task didn't change css_set, so neither the kill in cgroup_migrate_execute() nor cgroup_freezer_migrate_task() runs for it. cgroup_mutex used to keep migrations out of the walks. The task has to be the last one on its css_set that the iterator hasn't returned, so a cgroup with one task is enough. With the failed attach between css_task_iter_start() and the first css_task_iter_next(): - cgroup.kill returns success and the task survives. - A freeze leaves cgroup.freeze at 1 with the task running, and the cgroup never reports frozen. - A thaw leaves cgroup.freeze at 0 and "frozen 0" in cgroup.events with the task still frozen. 2. The SIGKILL sent from cgroup_migrate_execute() isn't forced (8/9). send_sig(SIGKILL, task, 0) sends SEND_SIG_NOINFO, which send_signal_locked() forces only when current is outside the target's pid namespace. current is the migrator there, not the cgroup.kill writer. A pid namespace init which writes its own pid to cgroup.procs of a cgroup that the walk has already passed ignores the signal and survives a kill written from the host. The same move made from the host kills it. The other direction follows from the code and wasn't run: a host migration during a kill written inside the container kills an init which that kill would have left alone. A few smaller points, from reading the code only: - 3/9 is only right on top of 2/9, and its stable tag doesn't name 2/9 as a prerequisite. - 8/9: a CLONE_INTO_CGROUP child placed outside the tree by a parent inside it is now killed. The cover letter says so but the documentation update doesn't. cgroup.kill can also fail with EOPNOTSUPP on a domain cgroup while a "threaded" write that later fails is in progress. - 9/9: a task frozen by a freeze that is still in progress runs again when it is moved to a cgroup that the walk hasn't reached, until the walk gets there. Maybe worth documenting? Thanks. -- tejun