summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/include
diff options
context:
space:
mode:
authorPaul Mackerras2014-03-13 10:02:48 +0100
committerPaolo Bonzini2014-03-13 10:47:01 +0100
commite724f080f5dd03881bc6d378750c37f7374cae7e (patch)
treee69c26e533240778a73df4265484f24ffdba1536 /arch/powerpc/include
parentKVM: PPC: Book3S HV: Remove bogus duplicate code (diff)
downloadkernel-qcow2-linux-e724f080f5dd03881bc6d378750c37f7374cae7e.tar.gz
kernel-qcow2-linux-e724f080f5dd03881bc6d378750c37f7374cae7e.tar.xz
kernel-qcow2-linux-e724f080f5dd03881bc6d378750c37f7374cae7e.zip
KVM: PPC: Book3S HV: Fix register usage when loading/saving VRSAVE
Commit 595e4f7e697e ("KVM: PPC: Book3S HV: Use load/store_fp_state functions in HV guest entry/exit") changed the register usage in kvmppc_save_fp() and kvmppc_load_fp() but omitted changing the instructions that load and save VRSAVE. The result is that the VRSAVE value was loaded from a constant address, and saved to a location past the end of the vcpu struct, causing host kernel memory corruption and various kinds of host kernel crashes. This fixes the problem by using register r31, which contains the vcpu pointer, instead of r3 and r4. Signed-off-by: Paul Mackerras <paulus@samba.org> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'arch/powerpc/include')
0 files changed, 0 insertions, 0 deletions