On Tue, Nov 28, 2017 at 08:19:41AM -0800, 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.
Fixes: d6810d730022 ("memcg, THP, swap: make mem_cgroup_swapout() support THP") Signed-off-by: Shakeel Butt shakeelb@google.com Cc: stable@vger.kernel.org
Acked-by: Johannes Weiner hannes@cmpxchg.org