aboutsummaryrefslogtreecommitdiff
path: root/arch/parisc/kernel/patch.c
diff options
context:
space:
mode:
authorLianbo Jiang <[email protected]>2019-04-30 15:44:21 +0800
committerBorislav Petkov <[email protected]>2019-06-20 10:07:49 +0200
commit4eb5fec31e613105668a1472d5876f3d0558e5d8 (patch)
tree380bb041b0998876ca32813062a361751c5fdc5f /arch/parisc/kernel/patch.c
parent85784d16c2cf172cf1ebaf2390d6b7c4045d659c (diff)
fs/proc/vmcore: Enable dumping of encrypted memory when SEV was active
In the kdump kernel, the memory of the first kernel gets to be dumped into a vmcore file. Similarly to SME kdump, if SEV was enabled in the first kernel, the old memory has to be remapped encrypted in order to access it properly. Commit 992b649a3f01 ("kdump, proc/vmcore: Enable kdumping encrypted memory with SME enabled") took care of the SME case but it uses sme_active() which checks for SME only. Use mem_encrypt_active() instead, which returns true when either SME or SEV is active. Unlike SME, the second kernel images (kernel and initrd) are loaded into encrypted memory when SEV is active, hence the kernel elf header must be remapped as encrypted in order to access it properly. [ bp: Massage commit message. ] Co-developed-by: Brijesh Singh <[email protected]> Signed-off-by: Brijesh Singh <[email protected]> Signed-off-by: Lianbo Jiang <[email protected]> Signed-off-by: Borislav Petkov <[email protected]> Cc: Alexey Dobriyan <[email protected]> Cc: Andrew Morton <[email protected]> Cc: Arnd Bergmann <[email protected]> Cc: [email protected] Cc: [email protected] Cc: Ganesh Goudar <[email protected]> Cc: H. Peter Anvin <[email protected]> Cc: [email protected] Cc: [email protected] Cc: Matthew Wilcox <[email protected]> Cc: Mike Rapoport <[email protected]> Cc: [email protected] Cc: Rahul Lakkireddy <[email protected]> Cc: Souptick Joarder <[email protected]> Cc: Thomas Gleixner <[email protected]> Cc: Tom Lendacky <[email protected]> Cc: x86-ml <[email protected]> Link: https://lkml.kernel.org/r/[email protected]
Diffstat (limited to 'arch/parisc/kernel/patch.c')
0 files changed, 0 insertions, 0 deletions