From: Kamezawa Hiroyuki Subject: Re: [PATCH 03/12] Revert "memcg: avoid dangling reference count in creation failure." Date: Tue, 09 Apr 2013 11:50:05 +0900 Message-ID: <516381DD.8050706@jp.fujitsu.com> References: <5162648B.9070802@huawei.com> <516264BF.2020009@huawei.com> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <516264BF.2020009@huawei.com> Sender: owner-linux-mm@kvack.org List-ID: Content-Type: text/plain; charset="us-ascii" To: Li Zefan Cc: Andrew Morton , Tejun Heo , Glauber Costa , Johannes Weiner , LKML , Cgroups , linux-mm@kvack.org (2013/04/08 15:33), Li Zefan wrote: > From: Michal Hocko > > 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 > Signed-off-by: Michal Hocko Acked-by: KAMEZAWA Hiroyuki -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org