aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/fs/dax.c
diff options
context:
space:
mode:
authorMiaohe Lin <linmiaohe@huawei.com>2022-04-28 23:16:08 -0700
committerakpm <akpm@linux-foundation.org>2022-04-28 23:16:08 -0700
commit4cd614841c06338a087769ee3cfa96718784d1f5 (patch)
treeee09e7c06e2513b977739324f12cc9ee7d88f263 /fs/dax.c
parentmm/migration: fix potential invalid node access for reclaim-based migration (diff)
downloadwireguard-linux-4cd614841c06338a087769ee3cfa96718784d1f5.tar.xz
wireguard-linux-4cd614841c06338a087769ee3cfa96718784d1f5.zip
mm/migration: fix possible do_pages_stat_array racing with memory offline
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. Link: https://lkml.kernel.org/r/20220318111709.60311-12-linmiaohe@huawei.com Signed-off-by: Miaohe Lin <linmiaohe@huawei.com> Acked-by: "Huang, Ying" <ying.huang@intel.com> Reviewed-by: Muchun Song <songmuchun@bytedance.com> Cc: Alistair Popple <apopple@nvidia.com> Cc: Baolin Wang <baolin.wang@linux.alibaba.com> Cc: Zi Yan <ziy@nvidia.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'fs/dax.c')
0 files changed, 0 insertions, 0 deletions