mm: fix cache mode tracking in vm_insert_mixed()
authorDan Williams <[email protected]>
Sat, 8 Oct 2016 00:00:18 +0000 (17:00 -0700)
committerLinus Torvalds <[email protected]>
Sat, 8 Oct 2016 01:46:28 +0000 (18:46 -0700)
commit87744ab3832b83ba71b931f86f9cfdb000d07da5
tree0cf8f43080e8203df182106686e6f8f6403c0de0
parentd66ba15bde22703b3c0cec6782519cb0765a6777
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 <[email protected]>
Cc: David Airlie <[email protected]>
Cc: Matthew Wilcox <[email protected]>
Cc: Ross Zwisler <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
mm/memory.c