linux/arch
Paul Mackerras e724f080f5 KVM: PPC: Book3S HV: Fix register usage when loading/saving VRSAVE
Commit 595e4f7e69 ("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>
2014-03-13 10:47:01 +01:00
..
alpha PCI changes for the v3.14 merge window: 2014-01-22 16:39:28 -08:00
arc
arm Features: 2014-01-22 22:00:18 -08:00
arm64 First round of KVM updates for 3.14; PPC parts will come next week. 2014-01-22 21:40:43 -08:00
avr32
blackfin
c6x
cris
frv
hexagon
ia64 First round of KVM updates for 3.14; PPC parts will come next week. 2014-01-22 21:40:43 -08:00
m32r
m68k Merge branch 'sched-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip 2014-01-20 10:42:08 -08:00
metag memblock: make memblock_set_node() support different memblock_type 2014-01-21 16:19:44 -08:00
microblaze memblock: make memblock_set_node() support different memblock_type 2014-01-21 16:19:44 -08:00
mips Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/trivial 2014-01-22 21:21:55 -08:00
mn10300
openrisc
parisc PCI changes for the v3.14 merge window: 2014-01-22 16:39:28 -08:00
powerpc KVM: PPC: Book3S HV: Fix register usage when loading/saving VRSAVE 2014-03-13 10:47:01 +01:00
s390 This deals with 2 guest features that need enablement in the kvm host: 2014-01-23 11:38:13 +01:00
score score: remove "select HAVE_GENERIC_HARDIRQS" again 2014-01-21 16:19:41 -08:00
sh memblock: make memblock_set_node() support different memblock_type 2014-01-21 16:19:44 -08:00
sparc PCI changes for the v3.14 merge window: 2014-01-22 16:39:28 -08:00
tile
um
unicore32 mm, show_mem: remove SHOW_MEM_FILTER_PAGE_COUNT 2014-01-21 16:19:44 -08:00
x86 x86, kvm: correctly access the KVM_CPUID_FEATURES leaf at 0x40000101 2014-01-29 18:11:55 +01:00
xtensa GPIO tree bulk changes for v3.14 2014-01-21 10:09:12 -08:00
.gitignore
Kconfig