linux_dsm_epyc7002/arch/x86/mm/pat
Ard Biesheuvel 75fbef0a8b x86/mm: Fix NX bit clearing issue in kernel_map_pages_in_pgd
The following commit:

  15f003d207 ("x86/mm/pat: Don't implicitly allow _PAGE_RW in kernel_map_pages_in_pgd()")

modified kernel_map_pages_in_pgd() to manage writable permissions
of memory mappings in the EFI page table in a different way, but
in the process, it removed the ability to clear NX attributes from
read-only mappings, by clobbering the clear mask if _PAGE_RW is not
being requested.

Failure to remove the NX attribute from read-only mappings is
unlikely to be a security issue, but it does prevent us from
tightening the permissions in the EFI page tables going forward,
so let's fix it now.

Fixes: 15f003d207 ("x86/mm/pat: Don't implicitly allow _PAGE_RW in kernel_map_pages_in_pgd()
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Link: https://lore.kernel.org/r/20200113172245.27925-5-ardb@kernel.org
2020-01-20 08:13:00 +01:00
..
cpa-test.c x86/mm/pat: Move the memtype related files to arch/x86/mm/pat/ 2019-12-10 10:12:55 +01:00
Makefile x86/mm/pat: Move the memtype related files to arch/x86/mm/pat/ 2019-12-10 10:12:55 +01:00
memtype_interval.c x86/mm/pat: Rename <asm/pat.h> => <asm/memtype.h> 2019-12-10 10:12:55 +01:00
memtype.c x86/mm/pat: Rename <asm/pat.h> => <asm/memtype.h> 2019-12-10 10:12:55 +01:00
memtype.h x86/mm/pat: Move the memtype related files to arch/x86/mm/pat/ 2019-12-10 10:12:55 +01:00
set_memory.c x86/mm: Fix NX bit clearing issue in kernel_map_pages_in_pgd 2020-01-20 08:13:00 +01:00