Skip to content

Unify non-VHE ASLR features behind CONFIG_RANDOMIZE_BASE

David Brazdil kvmarm linux-arm-kernel lkml 1 version Applied

Status from this message: Applied to kvm-arm64/misc-5.9, thanks!

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 1 replyApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/2KVM: arm64: Make nVHE ASLR conditional on RANDOMIZE_BASEarch/arm64/kvm/va_layout.c+1 -10 replies
2/2KVM: arm64: Substitute RANDOMIZE_BASE for HARDEN_EL2_VECTORSarch/arm64/Kconfig arch/arm64/include/asm/mmu.h arch/arm64/kernel/cpu_errata.c +1 more+5 -230 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] Unify non-VHE ASLR features behind CONFIG_RANDOMIZE_BASE

There is currently no way to disable nVHE ASLR, e.g. for debugging, so the first patch in this series makes it conditional on RANDOMIZE_BASE, same as KASLR. Note that the 'nokaslr' command line flag has no effect here.

Second patch unifies the HARDEN_EL2_VECTORS errate for A57 and A72 behind the same Kconfig for simplicity. Happy to make it just depend on RANDOMIZE_BASE if having an option to keep randomization on but hardenning off is preferred.

David Brazdil (2):
KVM: arm64: Make nVHE ASLR conditional on RANDOMIZE_BASE
KVM: arm64: Substitute RANDOMIZE_BASE for HARDEN_EL2_VECTORS

 arch/arm64/Kconfig             | 16 ----------------
 arch/arm64/include/asm/mmu.h   |  6 ++----
 arch/arm64/kernel/cpu_errata.c |  4 ++--
 arch/arm64/kvm/Kconfig         |  2 +-
 arch/arm64/kvm/va_layout.c     |  2 +-
 5 files changed, 6 insertions(+), 24 deletions(-)
Signature · 1 line
2.27.0