From: Julien Grall Date: Mon, 14 Apr 2014 19:00:14 +0000 (+0100) Subject: xen/arm: Trap cache and TCM lockdown registers X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~5180 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=11faafd9d9739a47d5fa360a43669f52672ef40e;p=xen.git xen/arm: Trap cache and TCM lockdown registers Some cp15 c9/c10/c11 encodings are used for: - cache control - TCM control - branch predictor control All of them are implementation defined. For now inject an undefined exception if the guest wants try to access it. This is CVE-2014-2915 / XSA-93. Signed-off-by: Julien Grall Acked-by: Ian Campbell --- diff --git a/xen/arch/arm/traps.c b/xen/arch/arm/traps.c index 17ac8d87de..b77e623692 100644 --- a/xen/arch/arm/traps.c +++ b/xen/arch/arm/traps.c @@ -82,7 +82,7 @@ void __cpuinit init_traps(void) /* Setup hypervisor traps */ WRITE_SYSREG(HCR_PTW|HCR_BSU_INNER|HCR_AMO|HCR_IMO|HCR_VM|HCR_TWI|HCR_TSC| - HCR_TAC|HCR_SWIO, HCR_EL2); + HCR_TAC|HCR_SWIO|HCR_TIDCP, HCR_EL2); isb(); }