Re: [PATCH 1/2] cgroup: fix spurious SIGKILL of CLONE_INTO_CGROUP children

From: Tejun Heo

Date: Mon Aug 31 2026 - 19:04:50 EST


Hello,

Applied 1-2 to cgroup/for-7.3-fixes with the comment above kill_seq
updated as Shakeel suggested:

--- a/include/linux/cgroup-defs.h
+++ b/include/linux/cgroup-defs.h
@@ -527,7 +527,10 @@ struct cgroup {

int nr_threaded_children; /* # of live threaded child cgroups */

- /* sequence number for cgroup.kill, serialized by css_set_lock. */
+ /*
+ * Sequence number for cgroup.kill. Incremented with both cgroup_mutex
+ * and css_set_lock held. Readers hold either one.
+ */
unsigned int kill_seq;

struct kernfs_node *kn; /* cgroup kernfs entry */

Thanks.

--
tejun