[PATCH 1/1] cgroup: Fix race condition at rebind_subsystems()
Tejun Heo
tj at kernel.org
Tue Aug 23 11:12:12 PDT 2022
On Tue, Aug 23, 2022 at 01:41:46PM +0800, Jing-Ting Wu wrote:
> Root cause:
> The rebind_subsystems() is no lock held when move css object from A
> list to B list,then let B's head be treated as css node at
> list_for_each_entry_rcu().
>
> Solution:
> Add grace period before invalidating the removed rstat_css_node.
>
> Reported-by: Jing-Ting Wu <jing-ting.wu at mediatek.com>
> Suggested-by: Michal Koutný <mkoutny at suse.com>
> Signed-off-by: Jing-Ting Wu <jing-ting.wu at mediatek.com>
> Tested-by: Jing-Ting Wu <jing-ting.wu at mediatek.com>
> Link: https://lore.kernel.org/linux-arm-kernel/d8f0bc5e2fb6ed259f9334c83279b4c011283c41.camel@mediatek.com/T/
Applied to cgroup/for-6.0-fixes w/ stable tag added.
Thanks.
--
tejun
More information about the Linux-mediatek
mailing list