[PATCH] KVM: arm/arm64: drop pr_info() of IDMAP page
Ard Biesheuvel
ard.biesheuvel at linaro.org
Thu Mar 1 11:14:06 PST 2018
The KVM IDMAP is a mapping of a statically allocated kernel structure,
and so printing its physical address leaks the physical placement of
the kernel when physical KASLR is in effect. Just remove it, nobody
except Marc needs this anyway.
Signed-off-by: Ard Biesheuvel <ard.biesheuvel at linaro.org>
---
CC -stable?
virt/kvm/arm/mmu.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/virt/kvm/arm/mmu.c b/virt/kvm/arm/mmu.c
index ec62d1cccab7..c07f88cb6dcf 100644
--- a/virt/kvm/arm/mmu.c
+++ b/virt/kvm/arm/mmu.c
@@ -1810,7 +1810,6 @@ int kvm_mmu_init(void)
*/
BUG_ON((hyp_idmap_start ^ (hyp_idmap_end - 1)) & PAGE_MASK);
- kvm_info("IDMAP page: %lx\n", hyp_idmap_start);
kvm_info("HYP VA range: %lx:%lx\n",
kern_hyp_va(PAGE_OFFSET), kern_hyp_va(~0UL));
--
2.11.0
More information about the linux-arm-kernel
mailing list