android_kernel_oneplus_msm8998/arch/x86
David Hildenbrand 7b26835186 KVM: x86: fix user triggerable warning in kvm_apic_accept_events()
commit 28bf28887976d8881a3a59491896c718fade7355 upstream.

If we already entered/are about to enter SMM, don't allow switching to
INIT/SIPI_RECEIVED, otherwise the next call to kvm_apic_accept_events()
will report a warning.

Same applies if we are already in MP state INIT_RECEIVED and SMM is
requested to be turned on. Refuse to set the VCPU events in this case.

Fixes: cd7764fe9f ("KVM: x86: latch INITs while in system management mode")
Reported-by: Dmitry Vyukov <dvyukov@google.com>
Signed-off-by: David Hildenbrand <david@redhat.com>
Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-05-20 14:27:00 +02:00
..
boot x86/boot: Fix BSS corruption/overwrite bug in early x86 kernel startup 2017-05-20 14:26:59 +02:00
configs kconfig: tinyconfig: provide whole choice blocks to avoid warnings 2016-09-24 10:07:42 +02:00
crypto crypto: ghash-clmulni - Fix load failure 2017-03-26 12:13:17 +02:00
entry x86/vdso: Ensure vdso32_enabled gets set to valid values only 2017-04-21 09:30:05 +02:00
ia32 Merge branch 'x86-headers-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip 2015-11-03 21:05:40 -08:00
include x86, pmem: Fix cache flushing for iovec write < 8 bytes 2017-05-20 14:27:00 +02:00
kernel kprobes/x86: Fix kernel panic when certain exception-handling addresses are probed 2017-05-14 13:32:55 +02:00
kvm KVM: x86: fix user triggerable warning in kvm_apic_accept_events() 2017-05-20 14:27:00 +02:00
lguest x86/paravirt: Prevent rtc_cmos platform device init on PV guests 2015-12-19 21:35:13 +01:00
lib x86/uaccess/64: Handle the caching of 4-byte nocache copies properly in __copy_user_nocache() 2016-02-25 12:01:13 -08:00
math-emu Merge branch 'x86-headers-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip 2015-11-03 21:05:40 -08:00
mm mm: Tighten x86 /dev/mem with zeroing reads 2017-04-21 09:30:07 +02:00
net ebpf: migrate bpf_prog's flags to bitfield 2015-10-03 05:02:39 -07:00
oprofile
pci xen: do not re-use pirq number cached in pci device msi msg data 2017-03-30 09:35:19 +02:00
platform x86/platform/intel-mid: Correct MSI IRQ line for watchdog device 2017-05-14 13:32:55 +02:00
power
purgatory x86/kexec: add -fno-PIE 2016-11-26 09:54:52 +01:00
ras x86/ras/mce_amd_inj: Inject bank 4 errors on the NBC 2015-10-12 16:15:48 +02:00
realmode
tools
um um: Fix PTRACE_POKEUSER on x86_64 2017-05-20 14:27:00 +02:00
video
xen xen: adjust early dom0 p2m handling to xen hypervisor behavior 2017-05-20 14:26:58 +02:00
.gitignore
Kbuild
Kconfig x86/microcode: Untangle from BLK_DEV_INITRD 2016-04-12 09:08:32 -07:00
Kconfig.cpu x86/Kconfig/cpus: Fix/complete CPU type help texts 2015-10-21 11:12:56 +02:00
Kconfig.debug x86: don't make DEBUG_WX default to 'y' even with DEBUG_RODATA 2015-11-06 09:12:41 -08:00
Makefile Merge branch 'linus' of git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6 2015-11-04 09:11:12 -08:00
Makefile.um
Makefile_32.cpu