android_kernel_motorola_sm6375/include
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Michal Koutný 21ee296526 UPSTREAM: cgroup: Iterate tasks that did not finish do_exit()
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>
(cherry picked from commit 9c974c77246460fa6a92c18554c3311c8c83c160)
Bug: 141213848
Bug: 146758430
Test: test_cgcore_destroy from linux-kselftest
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
Change-Id: Iac57661b931129ed1e44b89675f8115bb89084ff
2020-03-13 19:49:15 +00:00
..
acpi ACPICA: Introduce ACPI_ACCESS_BYTE_WIDTH() macro 2020-03-05 16:43:42 +01:00
asm-generic This is the 5.4.24 stable release 2020-03-05 17:42:40 +01:00
clocksource
crypto
drm ANDROID: drm: Add support for DP 1.4 Compliance edid corruption test 2020-03-06 20:13:52 +00:00
dt-bindings
keys
kvm
linux UPSTREAM: cgroup: Iterate tasks that did not finish do_exit() 2020-03-13 19:49:15 +00:00
math-emu
media This is the 5.4.22 stable release 2020-02-24 09:16:10 +01:00
misc
net This is the 5.4.24 stable release 2020-03-05 17:42:40 +01:00
pcmcia
ras
rdma IB/core: Let IB core distribute cache update events 2020-02-24 08:36:26 +01:00
scsi This is the 5.4.23 stable release 2020-03-01 10:17:44 +01:00
soc
sound This is the 5.4.23 stable release 2020-03-01 10:17:44 +01:00
target
trace This is the 5.4.22 stable release 2020-02-24 09:16:10 +01:00
uapi This is the 5.4.24 stable release 2020-03-05 17:42:40 +01:00
vdso
video
xen