Skip to content

Commit 94a502e

Browse files
committed
Merge tag 'efi-urgent-for-v6.7-3' of git://git.kernel.org/pub/scm/linux/kernel/git/efi/efi
Pull EFI fix from Ard Biesheuvel: - Ensure that the KASLR load flag is set in boot_params when loading the kernel randomized directly from the EFI stub * tag 'efi-urgent-for-v6.7-3' of git://git.kernel.org/pub/scm/linux/kernel/git/efi/efi: efi/x86: Fix the missing KASLR_FLAG bit in boot_params->hdr.loadflags
2 parents 360f034 + 0163843 commit 94a502e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/firmware/efi/libstub/x86-stub.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -787,6 +787,8 @@ static efi_status_t efi_decompress_kernel(unsigned long *kernel_entry)
787787
efi_debug("AMI firmware v2.0 or older detected - disabling physical KASLR\n");
788788
seed[0] = 0;
789789
}
790+
791+
boot_params_ptr->hdr.loadflags |= KASLR_FLAG;
790792
}
791793

792794
status = efi_random_alloc(alloc_size, CONFIG_PHYSICAL_ALIGN, &addr,

0 commit comments

Comments
 (0)