aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/kernel/time/posix-cpu-timers.c
diff options
context:
space:
mode:
authorArd Biesheuvel <ardb@kernel.org>2020-04-13 15:36:37 +0200
committerArd Biesheuvel <ardb@kernel.org>2020-04-23 20:15:06 +0200
commit5d12da9dd6c155f7a09dfcaa2b9827764c939b2a (patch)
tree4947aa3c638f2c3cd9884a8702290e6388dcfee8 /kernel/time/posix-cpu-timers.c
parentefi/libstub/arm64: Replace 'preferred' offset with alignment check (diff)
downloadwireguard-linux-5d12da9dd6c155f7a09dfcaa2b9827764c939b2a.tar.xz
wireguard-linux-5d12da9dd6c155f7a09dfcaa2b9827764c939b2a.zip
efi/libstub/arm64: Simplify randomized loading of kernel image
The KASLR code path in the arm64 version of the EFI stub incorporates some overly complicated logic to randomly allocate a region of the right alignment: there is no need to randomize the placement of the kernel modulo 2 MiB separately from the placement of the 2 MiB aligned allocation itself - we can simply follow the same logic used by the non-randomized placement, which is to allocate at the correct alignment, and only take TEXT_OFFSET into account if it is not a round multiple of the alignment. Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Diffstat (limited to 'kernel/time/posix-cpu-timers.c')
0 files changed, 0 insertions, 0 deletions