On Wed, Aug 07, 2024 at 02:25:23PM GMT, Tejun Heo <tj@xxxxxxxxxx> wrote: > +void cgroup_show_cftype(struct cftype *cft, bool show) > +{ > + struct cgroup_subsys *ss = cft->ss; > + struct cgroup *root = ss ? &ss->root->cgrp : &cgrp_dfl_root.cgrp; Strictly speaking, this (v1) cgroup_root dereference should be guarded with cgroup_mutex too (should be the root destroy concurrently). > + struct cgroup_subsys_state *css; > + > + mutex_lock(&cgroup_mutex);
Attachment:
signature.asc
Description: PGP signature