diff options
| author | Miaohe Lin <[email protected]> | 2022-04-28 23:16:08 -0700 |
|---|---|---|
| committer | akpm <[email protected]> | 2022-04-28 23:16:08 -0700 |
| commit | 4cd614841c06338a087769ee3cfa96718784d1f5 (patch) | |
| tree | ee09e7c06e2513b977739324f12cc9ee7d88f263 /tools/perf/scripts/python | |
| parent | 3f26c88bd66cd8ab1731763c68df7fe23a7671c0 (diff) | |
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/[email protected]
Signed-off-by: Miaohe Lin <[email protected]>
Acked-by: "Huang, Ying" <[email protected]>
Reviewed-by: Muchun Song <[email protected]>
Cc: Alistair Popple <[email protected]>
Cc: Baolin Wang <[email protected]>
Cc: Zi Yan <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions