diff options
author | Ard Biesheuvel <ard.biesheuvel@linaro.org> | 2016-01-29 13:59:03 +0300 |
---|---|---|
committer | Catalin Marinas <catalin.marinas@arm.com> | 2016-02-24 17:57:27 +0300 |
commit | c031a4213c11a5db475f528c182f7b3858df11db (patch) | |
tree | 194b08753fc4dc09977fed71eccfcee48e66f412 /include/linux/efi.h | |
parent | f80fb3a3d50843a401dac4b566b3b131da8077a2 (diff) | |
download | linux-c031a4213c11a5db475f528c182f7b3858df11db.tar.xz |
arm64: kaslr: randomize the linear region
When KASLR is enabled (CONFIG_RANDOMIZE_BASE=y), and entropy has been
provided by the bootloader, randomize the placement of RAM inside the
linear region if sufficient space is available. For instance, on a 4KB
granule/3 levels kernel, the linear region is 256 GB in size, and we can
choose any 1 GB aligned offset that is far enough from the top of the
address space to fit the distance between the start of the lowest memblock
and the top of the highest memblock.
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Diffstat (limited to 'include/linux/efi.h')
0 files changed, 0 insertions, 0 deletions