Files
linux/arch/x86/include/asm
Arvind Sankar 29ac40cbed x86/mm/mem_encrypt: Fix definition of PMD_FLAGS_DEC_WP
The PAT bit is in different locations for 4k and 2M/1G page table
entries.

Add a definition for _PAGE_LARGE_CACHE_MASK to represent the three
caching bits (PWT, PCD, PAT), similar to _PAGE_CACHE_MASK for 4k pages,
and use it in the definition of PMD_FLAGS_DEC_WP to get the correct PAT
index for write-protected pages.

Fixes: 6ebcb06071 ("x86/mm: Add support to encrypt the kernel in-place")
Signed-off-by: Arvind Sankar <nivedita@alum.mit.edu>
Signed-off-by: Borislav Petkov <bp@suse.de>
Tested-by: Tom Lendacky <thomas.lendacky@amd.com>
Cc: stable@vger.kernel.org
Link: https://lkml.kernel.org/r/20201111160946.147341-1-nivedita@alum.mit.edu
2020-12-10 12:28:06 +01:00
..
2020-08-03 07:48:39 +02:00
2020-06-09 09:39:13 -07:00
2020-05-07 16:06:20 +02:00
2020-08-20 11:18:36 +02:00
2020-07-27 14:29:23 -04:00
2020-09-04 15:09:29 +02:00
2020-09-16 16:52:35 +02:00
2020-09-16 16:52:28 +02:00
2020-09-16 16:52:35 +02:00
2020-06-02 10:59:12 -07:00