diff options
author | Matthew Wilcox <willy@linux.intel.com> | 2016-01-25 18:25:15 +0100 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2016-02-09 15:25:36 +0100 |
commit | dd7b6847670a84b7bb7c38f8e69b2f12059bca66 (patch) | |
tree | 53167f5e71727b1a24cde404650be94d28e06f8f /mm | |
parent | x86/asm/bitops: Force inlining of test_and_set_bit and friends (diff) | |
download | linux-dd7b6847670a84b7bb7c38f8e69b2f12059bca66.tar.xz linux-dd7b6847670a84b7bb7c38f8e69b2f12059bca66.zip |
x86/mm: Honour passed pgprot in track_pfn_insert() and track_pfn_remap()
track_pfn_insert() overwrites the pgprot that is passed in with a value
based on the VMA's page_prot. This is a problem for people trying to
do clever things with the new vm_insert_pfn_prot() as it will simply
overwrite the passed protection flags. If we use the current value of
the pgprot as the base, then it will behave as people are expecting.
Also fix track_pfn_remap() in the same way.
Signed-off-by: Matthew Wilcox <willy@linux.intel.com>
Acked-by: Andy Lutomirski <luto@kernel.org>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Andy Lutomirski <luto@amacapital.net>
Cc: Kees Cook <keescook@chromium.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: linux-mm@kvack.org
Link: http://lkml.kernel.org/r/1453742717-10326-2-git-send-email-matthew.r.wilcox@intel.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'mm')
0 files changed, 0 insertions, 0 deletions