diff options
author | Dan Williams <[email protected]> | 2017-03-09 16:16:42 -0800 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2017-03-09 17:01:09 -0800 |
commit | ef947b2529f918d9606533eb9c32b187ed6a5ede (patch) | |
tree | 802fbd6d597c8ab9ae1f2a989a61aa692117502c /tools/perf/scripts/python/export-to-postgresql.py | |
parent | d19469e8415813cceaa494b6f538e327b9a95f3b (diff) |
x86, mm: fix gup_pte_range() vs DAX mappings
gup_pte_range() fails to check pte_allows_gup() before translating a DAX
pte entry, pte_devmap(), to a page. This allows writes to read-only
mappings, and bypasses the DAX cacheline dirty tracking due to missed
'mkwrite' faults. The gup_huge_pmd() path and the gup_huge_pud() path
correctly check pte_allows_gup() before checking for _devmap() entries.
Fixes: 3565fce3a659 ("mm, x86: get_user_pages() for dax mappings")
Link: http://lkml.kernel.org/r/148804251312.36605.12665024794196605053.stgit@dwillia2-desk3.amr.corp.intel.com
Signed-off-by: Ross Zwisler <[email protected]>
Signed-off-by: Dan Williams <[email protected]>
Reported-by: Dave Hansen <[email protected]>
Reported-by: Ross Zwisler <[email protected]>
Cc: Xiong Zhou <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: "H. Peter Anvin" <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: <[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