Re: [PATCH v2 1/4] KVM: arm64: Forbid kprobing of the VHE world-switch code
From: Marc Zyngier <hidden>
Date: 2019-02-01 13:34:25
Also in:
kvmarm
From: Marc Zyngier <hidden>
Date: 2019-02-01 13:34:25
Also in:
kvmarm
On 24/01/2019 16:32, James Morse wrote:
On systems with VHE the kernel and KVM's world-switch code run at the same exception level. Code that is only used on a VHE system does not need to be annotated as __hyp_text as it can reside anywhere in the kernel text. __hyp_text was also used to prevent kprobes from patching breakpoint instructions into this region, as this code runs at a different exception level. While this is no longer true with VHE, KVM still switches VBAR_EL1, meaning a kprobe's breakpoint executed in the world-switch code will cause a hyp-panic.
[...] For what it is worth, I've now queued this patch as a fix for 5.0. Thanks, M. -- Jazz is not dead. It just smells funny... _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel