Message ID | 2fcd921d-8f42-9d33-951c-899d0bbdd92d@huawei.com |
---|---|
State | New |
Headers | show |
Series | [v2] netprio_cgroup: Fix unlimited memory leak of v2 cgroups | expand |
diff --git a/net/core/netprio_cgroup.c b/net/core/netprio_cgroup.c index 8881dd9..9bd4cab 100644 --- a/net/core/netprio_cgroup.c +++ b/net/core/netprio_cgroup.c @@ -236,6 +236,8 @@ static void net_prio_attach(struct cgroup_taskset *tset) struct task_struct *p; struct cgroup_subsys_state *css; + cgroup_sk_alloc_disable(); + cgroup_taskset_for_each(p, css, tset) { void *v = (void *)(unsigned long)css->id;