[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CAMZfGtXbU5EzVD8SH3S0vvTvzzHN7UE6qJ51KU9P5n_KC8JLJA@mail.gmail.com>
Date: Fri, 18 Mar 2022 16:24:48 +0800
From: Muchun Song <songmuchun@...edance.com>
To: Miaohe Lin <linmiaohe@...wei.com>
Cc: Andrew Morton <akpm@...ux-foundation.org>, Zi Yan <ziy@...dia.com>,
baolin.wang@...ux.alibaba.com, Huang Ying <ying.huang@...el.com>,
Alistair Popple <apopple@...dia.com>,
Linux Memory Management List <linux-mm@...ck.org>,
LKML <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH v2 09/11] mm/migration: fix potential page refcounts leak
in migrate_pages
On Thu, Mar 17, 2022 at 10:41 PM Miaohe Lin <linmiaohe@...wei.com> wrote:
>
> In -ENOMEM case, there might be some subpages of fail-to-migrate THPs
> left in thp_split_pages list. We should move them back to migration
> list so that they could be put back to the right list by the caller
> otherwise the page refcnt will be leaked here. Also adjust nr_failed
> and nr_thp_failed accordingly to make vm events account more accurate.
>
> Fixes: b5bade978e9b ("mm: migrate: fix the return value of migrate_pages()")
> Signed-off-by: Miaohe Lin <linmiaohe@...wei.com>
> Reviewed-by: Zi Yan <ziy@...dia.com>
> Reviewed-by: "Huang, Ying" <ying.huang@...el.com>
> Reviewed-by: Baolin Wang <baolin.wang@...ux.alibaba.com>
Reviewed-by: Muchun Song <songmuchun@...edance.com>
Powered by blists - more mailing lists