From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754179AbdK1UJ2 (ORCPT ); Tue, 28 Nov 2017 15:09:28 -0500 Received: from mail-wm0-f66.google.com ([74.125.82.66]:34057 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752426AbdK1UJ0 (ORCPT ); Tue, 28 Nov 2017 15:09:26 -0500 X-Google-Smtp-Source: AGs4zMZhOaTYDkJIcH/YHFIe25EdB+cvdM/COU81+kJLpMfPjWBKfVT3GQnj543TsCKeRwNEjJAxs2oR1iWff7TtMQY= MIME-Version: 1.0 In-Reply-To: <20171128200005.67grhk2arm2ivgug@dhcp22.suse.cz> References: <20171128161941.20931-1-shakeelb@google.com> <20171128200005.67grhk2arm2ivgug@dhcp22.suse.cz> From: Shakeel Butt Date: Tue, 28 Nov 2017 12:09:23 -0800 Message-ID: Subject: Re: [PATCH] mm, memcg: fix mem_cgroup_swapout() for THPs To: Michal Hocko Cc: Huang Ying , Vladimir Davydov , Greg Thelen , Johannes Weiner , Andrew Morton , Linux MM , LKML , Cgroups , stable@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Nov 28, 2017 at 12:00 PM, Michal Hocko wrote: > On Tue 28-11-17 08:19:41, Shakeel Butt wrote: >> The commit d6810d730022 ("memcg, THP, swap: make mem_cgroup_swapout() >> support THP") changed mem_cgroup_swapout() to support transparent huge >> page (THP). However the patch missed one location which should be >> changed for correctly handling THPs. The resulting bug will cause the >> memory cgroups whose THPs were swapped out to become zombies on >> deletion. > > Very well spotted! Have you seen this triggering or you found it by the > code inspection? > By code inspection.