Re: [PATCH 1/2] x86/mm/pageattr: Don't implicitly allow _PAGE_RW in kernel_map_pages_in_pgd()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, 29 Jan, at 05:04:39PM, Sai Praneeth Prakhya wrote:
> From: Sai Praneeth <sai.praneeth.prakhya@xxxxxxxxx>
> 
> 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.
> 
> Cc: Borislav Petkov <bp@xxxxxxxxx>
> Cc: Lee, Chun-Yi <jlee@xxxxxxxx>
> Cc: Ricardo Neri <ricardo.neri@xxxxxxxxx>
> Cc: Ravi Shankar <ravi.v.shankar@xxxxxxxxx>
> Signed-off-by: Matt Fleming <matt@xxxxxxxxxxxxxxxxxxx>
> Signed-off-by: Sai Praneeth Prakhya <sai.praneeth.prakhya@xxxxxxxxx>
> ---
>  arch/x86/mm/pageattr.c         | 3 +++
>  arch/x86/platform/efi/efi_64.c | 8 ++++----
>  2 files changed, 7 insertions(+), 4 deletions(-)

Thanks Sai, applied.
--
To unsubscribe from this list: send the line "unsubscribe linux-efi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux