On Thu, Mar 17, 2022 at 10:42 PM Miaohe Lin <linmiaohe@xxxxxxxxxx> 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@xxxxxxxxxx> Reviewed-by: Muchun Song <songmuchun@xxxxxxxxxxxxx>