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
2019-07-22 12:00:51 +02:00
2020-01-23 10:41:20 -08:00
2018-12-03 10:49:13 +01: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
2018-08-15 13:44:10 -07:00
2019-04-16 12:26:18 +02:00
2019-04-22 11:42:59 +02:00
2020-09-16 16:52:28 +02:00
2020-09-16 16:52:35 +02:00
2018-03-20 10:01:57 +01:00
2020-06-02 10:59:12 -07:00
2019-04-10 09:53:31 +02:00
2020-03-21 16:03:25 +01:00
2020-01-14 12:20:58 +01:00
2020-03-23 18:45:14 +01:00
2020-01-14 12:20:58 +01:00