]> xenbits.xensource.com Git - xen.git/commit
xen/arm: Don't let guess access to Debug and Performance Monitor registers
authorJulien Grall <julien.grall@linaro.org>
Tue, 15 Apr 2014 13:06:42 +0000 (14:06 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Wed, 23 Apr 2014 09:31:07 +0000 (10:31 +0100)
commit0b182202fef8ebfc093a00ead9414a683eb8807c
tree808c4f183e84a21226a0f97b23de933f084a61d7
parenta0453db0c6ead85e0e2143c133268bcc5a017f73
xen/arm: Don't let guess access to Debug and Performance Monitor registers

Debug and performance registers are not properly switched by Xen.

Trap them and inject an undefined instruction, except for those registers
which might be unconditionally accessed which we implement as RAZ/WI.

This is CVE-2014-2915 / XSA-93.

Signed-off-by: Julien Grall <julien.grall@linaro.org>
Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
xen/arch/arm/traps.c
xen/include/asm-arm/cpregs.h
xen/include/asm-arm/processor.h
xen/include/asm-arm/sysregs.h