Tetsuo Handa
321488cfac
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: Cai Xinchen <caixinchen1@huawei.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-04-05 11:15:43 +02:00
..
2023-04-05 11:15:34 +02:00
2023-04-05 11:15:43 +02:00
2021-03-04 09:39:31 +01:00
2022-07-02 16:27:40 +02:00
2023-01-18 11:30:05 +01:00
2023-01-18 11:30:39 +01:00
2023-03-11 16:31:52 +01:00
2022-10-26 13:19:23 +02:00
2021-11-26 11:36:04 +01:00
2022-11-03 23:52:31 +09:00
2022-04-15 14:14:45 +02:00
2023-03-11 16:31:45 +01:00
2023-04-05 11:15:39 +02:00
2023-03-11 16:31:46 +01:00
2023-03-22 13:27:12 +01:00
2023-01-18 11:30:34 +01:00
2022-02-23 11:58:38 +01:00
2022-09-05 10:26:28 +02:00
2019-12-13 08:51:11 +01:00
2020-10-01 13:14:33 +02:00
2022-02-08 18:23:13 +01:00
2020-06-22 09:05:13 +02:00
2020-06-22 09:05:13 +02:00
2019-12-01 09:17:17 +01:00
2018-11-13 11:08:47 -08:00
2020-01-23 08:21:29 +01:00
2023-04-05 11:15:39 +02:00
2020-06-22 09:05:28 +02:00
2022-06-25 11:49:07 +02:00
2018-08-22 10:52:47 -07:00
2020-01-09 10:19:00 +01:00
2023-02-06 07:49:46 +01:00
2020-11-24 13:27:23 +01:00
2021-09-22 11:48:09 +02:00
2018-08-06 12:35:20 +02:00
2021-07-11 12:49:30 +02:00
2019-04-20 09:16:02 +02:00
2019-05-31 06:46:19 -07:00
2021-03-04 09:39:30 +01:00
2020-07-16 08:17:26 +02:00
2018-08-02 08:06:54 +09:00
2019-02-12 19:47:20 +01:00
2021-02-03 23:23:23 +01:00
2022-07-02 16:27:39 +02:00
2018-07-16 12:31:57 -07:00
2020-04-17 10:48:52 +02:00
2023-03-11 16:31:51 +01:00
2021-07-11 12:49:31 +02:00
2021-02-10 09:21:06 +01:00
2020-01-29 16:43:27 +01:00
2023-02-06 07:49:41 +01:00
2020-03-25 08:06:13 +01:00
2021-08-08 08:54:30 +02:00
2023-02-06 07:49:46 +01:00
2021-09-22 11:48:09 +02:00
2019-01-13 09:51:06 +01:00
2022-08-25 11:15:20 +02:00
2022-06-14 16:59:14 +02:00
2020-11-18 19:18:52 +01:00
2023-01-18 11:30:08 +01:00
2019-09-16 08:22:20 +02:00
2022-02-16 12:51:47 +01:00
2022-07-21 21:09:32 +02:00
2022-04-20 09:12:50 +02:00
2021-02-07 14:48:38 +01:00
2018-08-03 15:52:10 +02:00
2018-08-13 11:25:07 -07:00
2022-09-05 10:26:28 +02:00
2023-01-24 07:11:49 +01:00
2022-12-08 11:18:32 +01:00
2020-01-09 10:18:59 +01:00
2021-07-20 16:15:42 +02:00
2022-02-23 11:58:39 +01:00
2020-10-14 10:31:21 +02:00
2021-05-22 10:59:39 +02:00
2018-11-13 11:09:00 -08:00
2018-08-22 10:52:47 -07:00
2018-08-11 02:05:53 -05:00
2018-08-30 12:56:40 +02:00
2022-08-25 11:15:46 +02:00
2022-09-28 11:02:58 +02:00