Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1318868 > unrolled thread
| Started by | Dave Young <dyoung@redhat.com> |
|---|---|
| First post | 2016-01-27 12:30 +0100 |
| Last post | 2016-01-27 12:30 +0100 |
| Articles | 1 — 1 participant |
Back to article view | Back to linux.kernel
[PATCH] x86/efi: skip bgrt init for kexec reboot Dave Young <dyoung@redhat.com> - 2016-01-27 12:30 +0100
| From | Dave Young <dyoung@redhat.com> |
|---|---|
| Date | 2016-01-27 12:30 +0100 |
| Subject | [PATCH] x86/efi: skip bgrt init for kexec reboot |
| Message-ID | <qVwsp-2JC-3@gated-at.bofh.it> |
For kexec reboot the bgrt image address could contains random data because
we have freed boot service areas in 1st kernel boot phase. One possible
result is kmalloc fail in efi_bgrt_init due to large random image size.
So change efi_late_init to avoid efi_bgrt_init in case kexec boot.
Signed-off-by: Dave Young <dyoung@redhat.com>
---
arch/x86/platform/efi/efi.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
--- linux-x86.orig/arch/x86/platform/efi/efi.c
+++ linux-x86/arch/x86/platform/efi/efi.c
@@ -531,7 +531,8 @@ void __init efi_init(void)
void __init efi_late_init(void)
{
- efi_bgrt_init();
+ if (!efi_setup)
+ efi_bgrt_init();
}
void __init efi_set_executable(efi_memory_desc_t *md, bool executable)
Back to top | Article view | linux.kernel
csiph-web