Commit e7c680ad authored by Marc Zyngier's avatar Marc Zyngier Committed by Sebastian Ene
Browse files

ANDROID: KVM: arm64: Prevent HVC calls outside of the core kernel text



Modules can easily wreak havoc in the hypervisor by calling into
it randomly, making it very hard to understand what is going on.

Given that limiting hypercalls to the core kernel is actually
pretty easy (a simple comparaison with _text and _etext), let's
implement that.

This is made extra-complicated due to KASLR and the disjointed
VA spaces (you can't just refer to _text, as this results in a
relative reference...).

Bug: 210011561
Signed-off-by: default avatarMarc Zyngier <maz@kernel.org>
Change-Id: I2f21871d7fe0fb22fd3660dbc1317ec8968d5b61
Signed-off-by: default avatarSebastian Ene <sebastianene@google.com>
parent 32169780
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment