@@ -102,8 +102,8 @@ u64 __init kaslr_early_init(u64 dt_phys, u64 modulo_offset)
* Retrieve (and wipe) the seed from the FDT
*/
seed = get_kaslr_seed(fdt);
- if (!seed)
- return 0;
+ //if (!seed)
+ // return 0;
/*
* Check if 'nokaslr' appears on the command line, and
@@ -114,6 +114,12 @@ u64 __init kaslr_early_init(u64 dt_phys, u64 modulo_offset)
if (str == cmdline || (str > cmdline && *(str - 1) == ' '))
return 0;
+ str = strstr(cmdline, "kaslr_seed=")
+ if (str) {
+ str += strlen("kaslr_seed=");
+ seed = simple_strtoull(str, NULL, 16);
+ }
+
/*
* OK, so we are proceeding with KASLR enabled. Calculate a suitable
* kernel image offset from the seed. Let's place the kernel in the