diff options
author | Naoya Horiguchi <[email protected]> | 2016-07-14 12:07:35 -0700 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2016-07-15 14:54:27 +0900 |
commit | 55bda43bb26d2c11eeedac742eff87a8ac34c106 (patch) | |
tree | 7b351dcf9347f16e819f93b35fb31654533fcb47 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 33f4751e99601b7bfd1d66aedabd3ee9140922de (diff) |
mm: rmap: call page_check_address() with sync enabled to avoid racy check
The previous patch addresses the race between split_huge_pmd_address()
and someone changing the pmd. The fix is only for splitting of normal
thp (i.e. pmd-mapped thp,) and for splitting of pte-mapped thp there
still is the similar race.
For splitting pte-mapped thp, the pte's conversion is done by
try_to_unmap_one(TTU_MIGRATION). This function checks
page_check_address() to get the target pte, but it can return NULL under
some race, leading to VM_BUG_ON() in freeze_page(). Fortunately,
page_check_address() already has an argument to decide whether we do a
quick/racy check or not, so let's flip it when called from
freeze_page().
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Naoya Horiguchi <[email protected]>
Cc: Kirill A. Shutemov <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions