]> Git Repo - linux.git/commit
x86/mm/pat: Don't implicitly allow _PAGE_RW in kernel_map_pages_in_pgd()
authorSai Praneeth <[email protected]>
Wed, 17 Feb 2016 12:36:04 +0000 (12:36 +0000)
committerIngo Molnar <[email protected]>
Mon, 22 Feb 2016 07:26:28 +0000 (08:26 +0100)
commit15f003d20782a4079e078d16df57081ebd1fc150
treec606c64f7f1123cbbbbca830ffa37e07ef7c4af3
parentb9d6769b5678dbd6cb328d20716561d35b2b1510
x86/mm/pat: Don't implicitly allow _PAGE_RW in kernel_map_pages_in_pgd()

As part of the preparation for the EFI_MEMORY_RO flag added in the UEFI
2.5 specification, we need the ability to map pages in kernel page
tables without _PAGE_RW being set.

Modify kernel_map_pages_in_pgd() to require its callers to pass _PAGE_RW
if the pages need to be mapped read/write. Otherwise, we'll map the
pages as read-only.

Signed-off-by: Sai Praneeth Prakhya <[email protected]>
Signed-off-by: Matt Fleming <[email protected]>
Cc: Andrew Morton <[email protected]>
Cc: Andy Lutomirski <[email protected]>
Cc: Ard Biesheuvel <[email protected]>
Cc: Borislav Petkov <[email protected]>
Cc: Brian Gerst <[email protected]>
Cc: Denys Vlasenko <[email protected]>
Cc: H. Peter Anvin <[email protected]>
Cc: Hugh Dickins <[email protected]>
Cc: Lee, Chun-Yi <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: Luis R. Rodriguez <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Ravi Shankar <[email protected]>
Cc: Ricardo Neri <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: Toshi Kani <[email protected]>
Cc: [email protected]
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Ingo Molnar <[email protected]>
arch/x86/mm/pageattr.c
arch/x86/platform/efi/efi_64.c
This page took 0.055242 seconds and 4 git commands to generate.