diff options
author | Ard Biesheuvel <ard.biesheuvel@linaro.org> | 2016-03-30 14:25:46 +0200 |
---|---|---|
committer | Will Deacon <will.deacon@arm.com> | 2016-04-14 17:15:08 +0200 |
commit | 2958987f5da2ebcf6a237c5f154d7e3340e60945 (patch) | |
tree | 154c984116e3edd22cc3f0415720d7690a202829 /arch/arm64/kernel | |
parent | arm64: cpuidle: make arm_cpuidle_suspend() a bit more efficient (diff) | |
download | linux-2958987f5da2ebcf6a237c5f154d7e3340e60945.tar.xz linux-2958987f5da2ebcf6a237c5f154d7e3340e60945.zip |
arm64/mm: ensure memstart_addr remains sufficiently aligned
After choosing memstart_addr to be the highest multiple of
ARM64_MEMSTART_ALIGN less than or equal to the first usable physical memory
address, we clip the memblocks to the maximum size of the linear region.
Since the kernel may be high up in memory, we take care not to clip the
kernel itself, which means we have to clip some memory from the bottom if
this occurs, to ensure that the distance between the first and the last
usable physical memory address can be covered by the linear region.
However, we fail to update memstart_addr if this clipping from the bottom
occurs, which means that we may still end up with virtual addresses that
wrap into the userland range. So increment memstart_addr as appropriate to
prevent this from happening.
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Diffstat (limited to 'arch/arm64/kernel')
0 files changed, 0 insertions, 0 deletions