cgroup: Prevent kill_css() from being called more than once
authorWaiman Long <longman@redhat.com>
Mon, 15 May 2017 13:34:06 +0000 (09:34 -0400)
committerRaspbian kernel package updater <root@raspbian.org>
Sun, 23 Jul 2017 02:55:54 +0000 (02:55 +0000)
commitc5691b452ad7b461b2765c7faaecafca226ed62a
tree7023bb14f3db23b6b6888d28ea76d07deb44805e
parent8473e7b09d63e8f484dcc7d524a1786e1c51261a
cgroup: Prevent kill_css() from being called more than once

commit 33c35aa4817864e056fd772230b0c6b552e36ea2 upstream.

The kill_css() function may be called more than once under the condition
that the css was killed but not physically removed yet followed by the
removal of the cgroup that is hosting the css. This patch prevents any
harmm from being done when that happens.

Signed-off-by: Waiman Long <longman@redhat.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
include/linux/cgroup-defs.h
kernel/cgroup.c