[PATCH] efi/libstub/arm: Don't use TASK_SIZE when randomising the RT space

2017-04-17 Thread Ard Biesheuvel
As reported by James, Catalin and Mark, commit e69176d68d26 ("ef/libstub/arm/arm64: Randomize the base of the UEFI rt services region") results in a crash in the firmware regardless of whether KASLR is in effect or not, and whether the firmware implements EFI_RNG_PROTOCOL or not. Mark has

[PATCH] efi/libstub/arm: Don't use TASK_SIZE when randomising the RT space

2017-04-17 Thread Ard Biesheuvel
As reported by James, Catalin and Mark, commit e69176d68d26 ("ef/libstub/arm/arm64: Randomize the base of the UEFI rt services region") results in a crash in the firmware regardless of whether KASLR is in effect or not, and whether the firmware implements EFI_RNG_PROTOCOL or not. Mark has