[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAMZfGtWQO3RAX+86O8=_gbiaWfNvxztfMY4S6zBsaVFDEFJPFQ@mail.gmail.com>
Date: Fri, 18 Mar 2022 14:59:40 +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 11/11] mm/migration: fix possible do_pages_stat_array
racing with memory offline
On Thu, Mar 17, 2022 at 10:42 PM Miaohe Lin <linmiaohe@...wei.com> wrote:
>
> When follow_page peeks a page, the page could be migrated and then be
> offlined while it's still being used by the do_pages_stat_array().
> Use FOLL_GET to hold the page refcnt to fix this potential race.
>
> Signed-off-by: Miaohe Lin <linmiaohe@...wei.com>
Reviewed-by: Muchun Song <songmuchun@...edance.com>
Powered by blists - more mailing lists