mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-30 06:10:56 +00:00
x86/boot: efistub: Assign global boot_params variable
From: Ard Biesheuvel <ardb@kernel.org>
[ Commit 50dcc2e0d6
upstream ]
Now that the x86 EFI stub calls into some APIs exposed by the
decompressor (e.g., kaslr_get_random_long()), it is necessary to ensure
that the global boot_params variable is set correctly before doing so.
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
8f05493706
commit
3a396c409a
1 changed files with 2 additions and 0 deletions
|
@ -827,6 +827,8 @@ void __noreturn efi_stub_entry(efi_handle_t handle,
|
|||
unsigned long kernel_entry;
|
||||
efi_status_t status;
|
||||
|
||||
boot_params_ptr = boot_params;
|
||||
|
||||
efi_system_table = sys_table_arg;
|
||||
/* Check if we were booted by the EFI firmware */
|
||||
if (efi_system_table->hdr.signature != EFI_SYSTEM_TABLE_SIGNATURE)
|
||||
|
|
Loading…
Reference in a new issue