Tetsuo Handa
5db17805b6
cgroup: Add missing cpus_read_lock() to cgroup_attach_task_all()
...
commit 43626dade36fa74d3329046f4ae2d7fdefe401c6 upstream.
syzbot is hitting percpu_rwsem_assert_held(&cpu_hotplug_lock) warning at
cpuset_attach() [1], for commit 4f7e7236435ca0ab ("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: 4f7e7236435ca0ab ("cgroup: Fix threadgroup_rwsem <-> cpus_read_lock() deadlock")
Signed-off-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-09-23 14:15:52 +02:00
..
2022-09-08 12:28:01 +02:00
2022-09-23 14:15:52 +02:00
2021-05-07 00:26:34 -07:00
2022-05-25 09:57:37 +02:00
2022-09-15 11:30:07 +02:00
2022-09-20 12:39:42 +02:00
2022-07-29 17:25:11 +02:00
2021-06-22 11:07:18 -07:00
2022-08-17 14:23:14 +02:00
2021-09-02 13:00:15 -07:00
2022-04-08 14:23:29 +02:00
2022-09-20 12:39:42 +02:00
2022-08-17 14:23:04 +02:00
2022-06-09 10:22:49 +02:00
2022-08-17 14:23:23 +02:00
2022-09-20 12:39:42 +02:00
2022-08-17 14:24:24 +02:00
2022-09-20 12:39:43 +02:00
2021-05-02 00:43:35 +09:00
2021-09-08 11:50:26 -07:00
2022-02-23 12:03:07 +01:00
2022-08-31 17:16:33 +02:00
2021-08-24 18:52:36 -04:00
2022-02-08 18:34:03 +01:00
2022-04-08 14:23:06 +02:00
2022-04-08 14:23:06 +02:00
2022-06-22 14:22:04 +02:00
2021-09-08 15:32:35 -07:00
2021-08-16 18:55:32 +02:00
2022-05-30 09:29:09 +02:00
2021-12-29 12:28:49 +01:00
2022-02-23 12:03:20 +01:00
2021-05-12 11:43:25 +02:00
2022-07-21 21:24:11 +02:00
2022-09-15 11:30:06 +02:00
2021-06-18 11:43:08 +02:00
2021-09-03 23:00:22 +02:00
2021-05-27 04:01:50 +09:00
2021-07-02 12:08:10 -07:00
2021-06-10 10:00:08 +02:00
2021-07-05 10:46:20 +02:00
2021-07-08 11:48:22 -07:00
2021-08-17 17:50:51 +02:00
2021-06-28 22:43:05 +02:00
2021-08-30 16:36:10 +02:00
2022-07-21 21:24:29 +02:00
2021-09-08 15:32:34 -07:00
2021-05-07 00:26:33 -07:00
2022-09-15 11:30:02 +02:00
2021-06-29 17:29:11 -07:00
2022-04-13 20:59:28 +02:00
2022-07-12 16:35:09 +02:00
2021-08-16 18:55:32 +02:00
2021-09-03 09:58:12 -07:00
2021-08-27 16:30:18 +08:00
2021-08-30 16:36:10 +02:00
2021-08-16 14:42:22 +02:00
2021-09-03 09:58:12 -07:00
2021-08-10 12:53:07 +02:00
2022-08-17 14:24:04 +02:00
2022-06-09 10:22:29 +02:00
2021-06-21 13:08:36 +01:00
2022-04-08 14:23:43 +02:00
2022-04-08 14:23:10 +02:00
2022-06-09 10:22:46 +02:00
2021-11-18 19:16:29 +01:00
2022-02-16 12:56:38 +01:00
2022-07-21 21:24:42 +02:00
2022-08-17 14:24:24 +02:00
2021-08-10 14:57:42 +02:00
2021-08-10 22:50:07 +02:00
2022-02-23 12:03:07 +01:00
2022-04-13 20:59:28 +02:00
2022-04-13 20:59:28 +02:00
2022-04-13 20:59:28 +02:00
2022-08-31 17:16:33 +02:00
2022-02-23 12:03:20 +01:00
2021-06-23 16:41:24 -06:00
2022-07-29 17:25:11 +02:00
2021-04-30 11:20:42 -07:00
2021-08-10 10:48:07 -07:00
2021-08-16 11:39:51 -04:00
2022-01-27 11:05:35 +01:00
2022-02-23 12:03:20 +01:00
2021-05-07 00:26:34 -07:00
2021-05-09 13:07:03 -07:00
2022-03-08 19:12:42 +01:00
2021-09-08 11:50:27 -07:00
2021-07-03 11:41:14 -07:00
2022-08-03 12:03:43 +02:00
2022-08-25 11:40:43 +02:00
2021-08-17 07:49:10 -10:00
2022-01-16 09:12:41 +01:00