WSL2-Linux-Kernel/kernel/cgroup
Tetsuo Handa 43626dade3 cgroup: Add missing cpus_read_lock() to cgroup_attach_task_all()
syzbot is hitting percpu_rwsem_assert_held(&cpu_hotplug_lock) warning at
cpuset_attach() [1], for commit 4f7e723643 ("cgroup: Fix
threadgroup_rwsem <-> cpus_read_lock() deadlock") missed that
cpuset_attach() is also called from cgroup_attach_task_all().
Add cpus_read_lock() like what cgroup_procs_write_start() does.

Link: https://syzkaller.appspot.com/bug?extid=29d3a3b4d86c8136ad9e [1]
Reported-by: syzbot <syzbot+29d3a3b4d86c8136ad9e@syzkaller.appspotmail.com>
Signed-off-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Fixes: 4f7e723643 ("cgroup: Fix threadgroup_rwsem <-> cpus_read_lock() deadlock")
Signed-off-by: Tejun Heo <tj@kernel.org>
2022-08-25 07:36:30 -10:00
..
Makefile
cgroup-internal.h cgroup: Make !percpu threadgroup_rwsem operations optional 2022-07-23 04:29:02 -10:00
cgroup-v1.c cgroup: Add missing cpus_read_lock() to cgroup_attach_task_all() 2022-08-25 07:36:30 -10:00
cgroup.c cgroup: Fix race condition at rebind_subsystems() 2022-08-23 08:11:06 -10:00
cpuset.c cgroup: Fix threadgroup_rwsem <-> cpus_read_lock() deadlock 2022-08-17 07:36:05 -10:00
debug.c
freezer.c
legacy_freezer.c
misc.c
namespace.c
pids.c
rdma.c
rstat.c sched/core: add forced idle accounting for cgroups 2022-07-04 09:23:07 +02:00