Michal Koutný
713f26696c
cgroup: Iterate tasks that did not finish do_exit()
...
commit 9c974c7724 upstream.
PF_EXITING is set earlier than actual removal from css_set when a task
is exitting. This can confuse cgroup.procs readers who see no PF_EXITING
tasks, however, rmdir is checking against css_set membership so it can
transitionally fail with EBUSY.
Fix this by listing tasks that weren't unlinked from css_set active
lists.
It may happen that other users of the task iterator (without
CSS_TASK_ITER_PROCS) spot a PF_EXITING task before cgroup_exit(). This
is equal to the state before commit c03cd7738a ("cgroup: Include dying
leaders with live threads in PROCS iterations") but it may be reviewed
later.
Reported-by: Suren Baghdasaryan <surenb@google.com >
Fixes: c03cd7738a ("cgroup: Include dying leaders with live threads in PROCS iterations")
Signed-off-by: Michal Koutný <mkoutny@suse.com >
Signed-off-by: Tejun Heo <tj@kernel.org >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2020-03-20 10:54:14 +01:00
..
2020-01-14 20:05:42 +01:00
2019-09-10 10:32:19 +01:00
2019-12-05 15:37:22 +01:00
2019-05-31 06:47:29 -07:00
2020-01-27 14:46:30 +01:00
2019-12-17 20:39:59 +01:00
2020-01-27 14:46:41 +01:00
2020-01-27 14:46:52 +01:00
2019-12-17 20:38:32 +01:00
2020-01-29 15:02:39 +01:00
2020-01-27 14:46:50 +01:00
2020-01-23 08:20:37 +01:00
2019-12-05 15:38:25 +01:00
2019-11-24 08:22:52 +01:00
2020-02-05 14:17:59 +00:00
2019-12-17 20:38:09 +01:00
2020-01-09 10:17:55 +01:00
2019-12-17 20:38:59 +01:00
2019-07-03 13:15:58 +02:00
2020-01-29 15:02:39 +01:00
2020-03-11 18:02:52 +01:00
2019-04-17 08:37:52 +02:00
2019-05-14 19:18:42 +02:00
2020-01-23 08:20:30 +01:00
2019-12-05 15:37:57 +01:00
2019-04-20 09:15:09 +02:00
2019-05-25 18:25:37 +02:00
2019-10-05 12:48:01 +02:00
2019-08-16 10:13:47 +02:00
2019-08-09 17:53:36 +02:00
2020-03-20 10:54:14 +01:00
2019-08-06 19:05:24 +02:00
2019-08-06 19:05:23 +02:00
2019-12-05 15:38:23 +01:00
2019-06-09 09:18:19 +02:00
2019-06-09 09:18:19 +02:00
2019-07-31 07:28:44 +02:00
2019-11-12 19:19:04 +01:00
2019-11-20 18:00:23 +01:00
2019-07-31 07:28:30 +02:00
2019-07-31 07:28:58 +02:00
2020-01-27 14:46:39 +01:00
2019-12-17 20:38:13 +01:00
2020-02-28 16:36:01 +01:00
2019-11-20 18:00:45 +01:00
2019-05-16 19:42:22 +02:00
2019-11-24 08:22:48 +01:00
2019-08-25 10:50:23 +02:00
2019-07-31 07:28:47 +02:00
2019-12-05 15:38:28 +01:00
2019-12-05 15:37:52 +01:00
2019-11-10 11:25:26 +01:00
2019-09-10 10:32:13 +01:00
2020-03-11 18:02:49 +01:00
2020-01-04 14:00:08 +01:00
2019-05-31 06:47:12 -07:00
2019-10-11 18:18:49 +02:00
2020-01-12 12:12:04 +01:00
2019-08-09 17:53:35 +02:00
2020-03-20 10:54:13 +01:00
2019-11-20 17:59:32 +01:00
2020-02-28 16:36:15 +01:00
2019-08-04 09:32:02 +02:00
2019-12-17 20:38:50 +01:00
2019-07-21 09:04:41 +02:00
2019-12-17 20:38:50 +01:00
2019-04-27 09:35:38 +02:00
2020-02-14 16:32:20 -05:00
2020-02-28 16:36:16 +01:00
2020-01-04 13:59:54 +01:00
2019-06-09 09:18:17 +02:00
2020-02-28 16:36:03 +01:00
2019-05-21 18:50:12 +02:00
2019-12-01 09:13:57 +01:00
2019-12-31 12:37:21 +01:00
2019-11-12 19:18:00 +01:00
2019-11-12 19:18:00 +01:00
2019-12-31 12:36:40 +01:00
2019-06-09 09:18:19 +02:00
2020-01-29 15:02:36 +01:00
2019-09-06 10:21:00 +02:00
2019-09-06 10:21:00 +02:00
2020-01-09 10:17:50 +01:00
2019-05-25 18:25:19 +02:00
2019-11-12 19:18:00 +01:00
2019-05-25 18:25:32 +02:00
2020-03-20 10:54:12 +01:00
2019-05-04 09:15:18 +02:00
2020-01-17 19:45:41 +01:00
2020-01-04 14:00:12 +01:00
2019-06-11 12:21:48 +02:00
2019-06-15 11:54:59 +02:00
2019-12-17 20:38:38 +01:00
2020-01-04 13:59:43 +01:00
2019-12-17 20:39:43 +01:00
2020-02-28 16:36:03 +01:00
2019-07-31 07:28:25 +02:00
2019-12-05 15:36:51 +01:00
2019-11-12 19:18:30 +01:00
2019-12-05 15:38:28 +01:00
2019-12-05 15:37:26 +01:00
2019-12-17 20:37:33 +01:00
2020-01-27 14:46:43 +01:00
2019-06-09 09:18:10 +02:00
2020-01-04 14:00:08 +01:00
2019-05-31 06:47:23 -07:00
2019-04-17 08:37:44 +02:00
2019-12-05 15:37:51 +01:00
2019-06-17 19:52:43 +02:00
2019-12-21 10:47:36 +01:00
2020-02-28 16:36:12 +01:00
2019-05-08 07:20:46 +02:00
2019-04-17 08:37:53 +02:00
2019-07-21 09:04:37 +02:00