forked fromtorvalds/linux
- Notifications
You must be signed in to change notification settings - Fork0
Commit29ac40c
x86/mm/mem_encrypt: Fix definition of PMD_FLAGS_DEC_WP
The PAT bit is in different locations for 4k and 2M/1G page tableentries.Add a definition for _PAGE_LARGE_CACHE_MASK to represent the threecaching 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 PATindex for write-protected pages.Fixes:6ebcb06 ("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.orgLink:https://lkml.kernel.org/r/20201111160946.147341-1-nivedita@alum.mit.edu1 parente45cdc7 commit29ac40c
2 files changed
+3
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
155 | 155 | | |
156 | 156 | | |
157 | 157 | | |
| 158 | + | |
158 | 159 | | |
159 | 160 | | |
160 | 161 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | | - | |
49 | | - | |
| 48 | + | |
| 49 | + | |
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
| |||
0 commit comments
Comments
(0)