diff options
author | 2023-09-11 17:27:02 -0700 | |
---|---|---|
committer | 2023-09-28 22:49:35 +0200 | |
commit | f79936545fb122856bd78b189d3c7ee59928c751 (patch) | |
tree | 0ecbebf171b37820ec7c62c999f03294c301bf70 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | x86_64: Show CR4.PSE on auxiliaries like on BSP (diff) | |
download | wireguard-linux-f79936545fb122856bd78b189d3c7ee59928c751.tar.xz wireguard-linux-f79936545fb122856bd78b189d3c7ee59928c751.zip |
x86/sev-es: Allow copy_from_kernel_nofault() in earlier boot
Previously, if copy_from_kernel_nofault() was called before
boot_cpu_data.x86_virt_bits was set up, then it would trigger undefined
behavior due to a shift by 64.
This ended up causing boot failures in the latest version of ubuntu2204
in the gcp project when using SEV-SNP.
Specifically, this function is called during an early #VC handler which
is triggered by a CPUID to check if NX is implemented.
Fixes: 1aa9aa8ee517 ("x86/sev-es: Setup GHCB-based boot #VC handler")
Suggested-by: Dave Hansen <dave.hansen@linux.intel.com>
Signed-off-by: Adam Dunlap <acdunlap@google.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Tested-by: Jacob Xu <jacobhxu@google.com>
Link: https://lore.kernel.org/r/20230912002703.3924521-2-acdunlap@google.com
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions