diff options
author | Catalin Marinas <catalin.marinas@arm.com> | 2017-08-22 15:39:00 +0100 |
---|---|---|
committer | Will Deacon <will.deacon@arm.com> | 2017-08-22 18:15:42 +0100 |
commit | a067d94d37ed590fd17684d18c3edf52110d305a (patch) | |
tree | a9a77b734e1d41672784140020add86574b48e08 /fs/devpts | |
parent | 4a23e56ad6549d0b8c0fac6d9eb752884379c391 (diff) | |
download | linux-rpi3-a067d94d37ed590fd17684d18c3edf52110d305a.tar.gz linux-rpi3-a067d94d37ed590fd17684d18c3edf52110d305a.tar.bz2 linux-rpi3-a067d94d37ed590fd17684d18c3edf52110d305a.zip |
arm64: kaslr: Adjust the offset to avoid Image across alignment boundary
With 16KB pages and a kernel Image larger than 16MB, the current
kaslr_early_init() logic for avoiding mappings across swapper table
boundaries fails since increasing the offset by kimg_sz just moves the
problem to the next boundary.
This patch rounds the offset down to (1 << SWAPPER_TABLE_SHIFT) if the
Image crosses a PMD_SIZE boundary.
Fixes: afd0e5a87670 ("arm64: kaslr: Fix up the kernel image alignment")
Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Will Deacon <will.deacon@arm.com>
Cc: Neeraj Upadhyay <neeraju@codeaurora.org>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Diffstat (limited to 'fs/devpts')
0 files changed, 0 insertions, 0 deletions