mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-15 08:14:15 +08:00
x86/kaslr: Fix process_efi_entries comment
Since commit:
0982adc746
("x86/boot/KASLR: Work around firmware bugs by excluding EFI_BOOT_SERVICES_* and EFI_LOADER_* from KASLR's choice")
process_efi_entries() will return true if we have an EFI memmap, not just
if it contained EFI_MEMORY_MORE_RELIABLE regions.
Signed-off-by: Arvind Sankar <nivedita@alum.mit.edu>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Reviewed-by: Kees Cook <keescook@chromium.org>
Link: https://lore.kernel.org/r/20200727230801.3468620-4-nivedita@alum.mit.edu
This commit is contained in:
parent
e2ee617316
commit
0870536556
@ -742,8 +742,8 @@ static bool process_mem_region(struct mem_vector *region,
|
||||
|
||||
#ifdef CONFIG_EFI
|
||||
/*
|
||||
* Returns true if mirror region found (and must have been processed
|
||||
* for slots adding)
|
||||
* Returns true if we processed the EFI memmap, which we prefer over the E820
|
||||
* table if it is available.
|
||||
*/
|
||||
static bool
|
||||
process_efi_entries(unsigned long minimum, unsigned long image_size)
|
||||
|
Loading…
Reference in New Issue
Block a user