kernel-6.7-xanmod/Boot-Loop-using-5.19-Kernel-and-Syslinux-on-x86-64-UEFI-Platform-fixed.patch
2022-08-23 18:06:50 +03:00

23 lines
785 B
Diff

Bug 216387 - Boot Loop using 5.19 Kernel and Syslinux on x86-64 UEFI Platform
https://bugzilla.kernel.org/show_bug.cgi?id=216387
diff --git a/arch/x86/boot/compressed/sev.c b/arch/x86/boot/compressed/sev.c
index 52f989f6acc2..dd6cd0d7c740 100644
--- a/arch/x86/boot/compressed/sev.c
+++ b/arch/x86/boot/compressed/sev.c
--- sev.c 2022-08-01 00:03:01.000000000 +0300
+++ sev.c.new 2022-08-23 16:19:55.863652779 +0300
@@ -392,6 +392,13 @@
if (!bp)
return false;
+ /*
+ * bp->cc_blob_address should only be set by boot/compressed kernel.
+ * Initialize it to 0 to ensure that uninitialized values from
+ * buggy bootloaders aren't propagated.
+ */
+ bp->cc_blob_address = 0;
+
cc_info = find_cc_blob(bp);
if (!cc_info)
return false;