]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: arm64: Make nVHE ASLR conditional on RANDOMIZE_BASE
authorDavid Brazdil <dbrazdil@google.com>
Tue, 21 Jul 2020 09:44:44 +0000 (10:44 +0100)
committerMarc Zyngier <maz@kernel.org>
Tue, 28 Jul 2020 09:41:11 +0000 (10:41 +0100)
commitd4a534e34ea7a618aea136d640f3685c0be7e6c8
tree721caeec3de6d526e61cdb89773048c00f939e9c
parent12f4fa12ace6c2248e241165028250dda8f065ab
KVM: arm64: Make nVHE ASLR conditional on RANDOMIZE_BASE

If there are spare bits in non-VHE hyp VA, KVM unconditionally replaces them
with a random tag chosen at init. Disable this if the kernel is built without
RANDOMIZE_BASE to align with kernel behavior.

Signed-off-by: David Brazdil <dbrazdil@google.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20200721094445.82184-2-dbrazdil@google.com
arch/arm64/kvm/va_layout.c