diff options
author | 2025-01-06 16:57:46 +0100 | |
---|---|---|
committer | 2025-01-07 11:47:40 +0100 | |
commit | 893930143440eb5e3ea8f69cb51ab2e61e15c4e1 (patch) | |
tree | b87b78da29422b77ac3e53b7b4f8944507fb7a1a /tools/perf/scripts/python/export-to-postgresql.py | |
parent | x86/sev: Disable UBSAN on SEV code that may execute very early (diff) | |
download | wireguard-linux-893930143440eb5e3ea8f69cb51ab2e61e15c4e1.tar.xz wireguard-linux-893930143440eb5e3ea8f69cb51ab2e61e15c4e1.zip |
x86/sev: Don't hang but terminate on failure to remap SVSM CA
Commit
09d35045cd0f ("x86/sev: Avoid WARN()s and panic()s in early boot code")
replaced a panic() that could potentially hit before the kernel is even
mapped with a deadloop, to ensure that execution does not proceed when the
condition in question hits.
As Tom suggests, it is better to terminate and return to the hypervisor
in this case, using a newly invented failure code to describe the
failure condition.
Suggested-by: Tom Lendacky <thomas.lendacky@amd.com>
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Reviewed-by: Tom Lendacky <thomas.lendacky@amd.com>
Link: https://lore.kernel.org/all/9ce88603-20ca-e644-2d8a-aeeaf79cde69@amd.com
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions