summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorMichael Roth <michael.roth@amd.com>2022-07-06 04:53:15 +0200
committerBorislav Petkov <bp@suse.de>2022-07-06 11:23:39 +0200
commitb57feed2cc2622ae14b2fa62f19e973e5e0a60cf (patch)
treeec9328cb876bbe1ae169bc06fa4babe952946be6 /tools
parentx86: Fix .brk attribute in linker script (diff)
downloadlinux-b57feed2cc2622ae14b2fa62f19e973e5e0a60cf.tar.xz
linux-b57feed2cc2622ae14b2fa62f19e973e5e0a60cf.zip
x86/compressed/64: Add identity mappings for setup_data entries
The decompressed kernel initially relies on the identity map set up by the boot/compressed kernel for accessing things like boot_params. With the recent introduction of SEV-SNP support, the decompressed kernel also needs to access the setup_data entries pointed to by boot_params->hdr.setup_data. This can lead to a crash in the kexec kernel during early boot due to these entries not currently being included in the initial identity map, see thread at Link below. Include mappings for the setup_data entries in the initial identity map. [ bp: Massage commit message and use a helper var for better readability. ] Fixes: b190a043c49a ("x86/sev: Add SEV-SNP feature detection/setup") Reported-by: Jun'ichi Nomura <junichi.nomura@nec.com> Signed-off-by: Michael Roth <michael.roth@amd.com> Signed-off-by: Borislav Petkov <bp@suse.de> Link: https://lore.kernel.org/r/TYCPR01MB694815CD815E98945F63C99183B49@TYCPR01MB6948.jpnprd01.prod.outlook.com
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions