Re: [PATCH] mm: Fix the pgtable leak

From: Minchan Kim
Date: Wed Feb 13 2019 - 06:33:22 EST


On Wed, Feb 13, 2019 at 08:29:00PM +0900, Minchan Kim wrote:
> [1] was backported to v4.9 stable tree but it introduces pgtable
> memory leak because with fault retrial, preallocated pagetable
> could be leaked in second iteration.
> To fix the problem, this patch backport [2].
>
> [1] 5cf3e5ff95876, mm, memcg: fix reclaim deadlock with writeback
> [2] b0b9b3df27d10, mm: stop leaking PageTables
>
> Fixes: 5cf3e5ff95876 ("mm, memcg: fix reclaim deadlock with writeback")
> Cc: Johannes Weiner <hannes@xxxxxxxxxxx>
> Cc: Kirill A. Shutemov <kirill.shutemov@xxxxxxxxxxxxxxx>
> Cc: Michal Hocko <mhocko@xxxxxxxx>
> Cc: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
> Cc: Hugh Dickins <hughd@xxxxxxxxxx>
> Cc: Liu Bo <bo.liu@xxxxxxxxxxxxxxxxx>
> Cc: <stable@xxxxxxxxxxxxxxx> [4.9]
> Signed-off-by: Minchan Kim <minchan@xxxxxxxxxx>
Reported-by: Martin Liu <liumartin@xxxxxxxxxx>