android_kernel_samsung_msm8976/arch/mips/kvm
Nicholas Mc Guire 79af5d9f9b MIPS: KVM: Do not sign extend on unsigned MMIO load
commit ed9244e6c534612d2b5ae47feab2f55a0d4b4ced upstream.

Fix possible unintended sign extension in unsigned MMIO loads by casting
to uint16_t in the case of mmio_needed != 2.

Signed-off-by: Nicholas Mc Guire <hofrat@osadl.org>
Reviewed-by: James Hogan <james.hogan@imgtec.com>
Tested-by: James Hogan <james.hogan@imgtec.com>
Cc: Gleb Natapov <gleb@kernel.org>
Cc: Paolo Bonzini <pbonzini@redhat.com>
Cc: kvm@vger.kernel.org
Cc: linux-mips@linux-mips.org
Cc: linux-kernel@vger.kernel.org
Patchwork: https://patchwork.linux-mips.org/patch/9985/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Signed-off-by: James Hogan <james.hogan@imgtec.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2015-08-03 09:29:47 -07:00
..
00README.txt
Kconfig
kvm_cb.c
kvm_locore.S KVM: MIPS: Don't leak FPU/DSP to guest 2015-03-06 14:40:52 -08:00
kvm_mips.c KVM: MIPS: Don't leak FPU/DSP to guest 2015-03-06 14:40:52 -08:00
kvm_mips_comm.h
kvm_mips_commpage.c
kvm_mips_dyntrans.c
kvm_mips_emul.c MIPS: KVM: Do not sign extend on unsigned MMIO load 2015-08-03 09:29:47 -07:00
kvm_mips_int.c
kvm_mips_int.h
kvm_mips_opcode.h
kvm_mips_stats.c
kvm_tlb.c Merge git://git.kernel.org/pub/scm/virt/kvm/kvm 2013-05-23 09:18:08 -07:00
kvm_trap_emul.c mips/kvm: Fix ABI by moving manipulation of CP0 registers to KVM_{G,S}ET_ONE_REG 2013-06-03 10:58:54 +03:00
Makefile
trace.h KVM: MIPS: Fix trace event to save PC directly 2015-03-18 13:22:29 +01:00