[PATCH] KVM: arm/arm64: drop pr_info() of IDMAP page

Marc Zyngier marc.zyngier at arm.com
Thu Mar 1 13:10:56 PST 2018


On Thu, 01 Mar 2018 19:14:06 +0000,
Ard Biesheuvel wrote:
> 
> 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.

Bah, even I don't really need it anymore...

> Signed-off-by: Ard Biesheuvel <ard.biesheuvel at linaro.org>
> ---
> CC -stable?

In this day and age, probably.

> 
>  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));

Instead of removing this particular line, how about turning all these
kvm_info into kvm_debug (see [1])?

Thanks,

	M.

[1] https://www.spinics.net/lists/arm-kernel/msg637920.html

-- 
Jazz is not dead, it just smell funny.



More information about the linux-arm-kernel mailing list