projects
/
linux-2.6-microblaze.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
efi/x86: Fix the missing KASLR_FLAG bit in boot_params->hdr.loadflags
[linux-2.6-microblaze.git]
/
drivers
/
firmware
/
efi
/
libstub
/
x86-stub.c
diff --git
a/drivers/firmware/efi/libstub/x86-stub.c
b/drivers/firmware/efi/libstub/x86-stub.c
index
da9b7b8
..
0d510c9
100644
(file)
--- a/
drivers/firmware/efi/libstub/x86-stub.c
+++ b/
drivers/firmware/efi/libstub/x86-stub.c
@@
-787,6
+787,8
@@
static efi_status_t efi_decompress_kernel(unsigned long *kernel_entry)
efi_debug("AMI firmware v2.0 or older detected - disabling physical KASLR\n");
seed[0] = 0;
}
efi_debug("AMI firmware v2.0 or older detected - disabling physical KASLR\n");
seed[0] = 0;
}
+
+ boot_params_ptr->hdr.loadflags |= KASLR_FLAG;
}
status = efi_random_alloc(alloc_size, CONFIG_PHYSICAL_ALIGN, &addr,
}
status = efi_random_alloc(alloc_size, CONFIG_PHYSICAL_ALIGN, &addr,