Re: [PATCH 03/12] Revert "memcg: avoid dangling reference count increation failure."

From: Kamezawa Hiroyuki
Date: Mon Apr 08 2013 - 22:50:32 EST


(2013/04/08 15:33), Li Zefan wrote:
> From: Michal Hocko <mhocko@xxxxxxx>
>
> This reverts commit e4715f01be697a3730c78f8ffffb595591d6a88c
>
> mem_cgroup_put is hierarchy aware so mem_cgroup_put(memcg) already drops
> an additional reference from all parents so the additional
> mem_cgrroup_put(parent) potentially causes use-after-free.
>
> Signed-off-by: Li Zefan <lizefan@xxxxxxxxxx>
> Signed-off-by: Michal Hocko <mhocko@xxxxxxx>

Acked-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@xxxxxxxxxxxxxx>



--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/