diff options
author | Dan Williams <dan.j.williams@intel.com> | 2016-10-08 02:00:18 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2016-10-08 03:46:28 +0200 |
commit | 87744ab3832b83ba71b931f86f9cfdb000d07da5 (patch) | |
tree | 0cf8f43080e8203df182106686e6f8f6403c0de0 /mm/mincore.c | |
parent | memory-hotplug: fix store_mem_state() return value (diff) | |
download | linux-87744ab3832b83ba71b931f86f9cfdb000d07da5.tar.xz linux-87744ab3832b83ba71b931f86f9cfdb000d07da5.zip |
mm: fix cache mode tracking in vm_insert_mixed()
vm_insert_mixed() unlike vm_insert_pfn_prot() and vmf_insert_pfn_pmd(),
fails to check the pgprot_t it uses for the mapping against the one
recorded in the memtype tracking tree. Add the missing call to
track_pfn_insert() to preclude cases where incompatible aliased mappings
are established for a given physical address range.
Link: http://lkml.kernel.org/r/147328717909.35069.14256589123570653697.stgit@dwillia2-desk3.amr.corp.intel.com
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Cc: David Airlie <airlied@linux.ie>
Cc: Matthew Wilcox <mawilcox@microsoft.com>
Cc: Ross Zwisler <ross.zwisler@linux.intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/mincore.c')
0 files changed, 0 insertions, 0 deletions