Maxim Levitsky
1ac62da265
KVM: x86: emulator: update the emulation mode after CR0 write
...
commit ad8f9e69942c7db90758d9d774157e53bce94840 upstream.
Update the emulation mode when handling writes to CR0, because
toggling CR0.PE switches between Real and Protected Mode, and toggling
CR0.PG when EFER.LME=1 switches between Long and Protected Mode.
This is likely a benign bug because there is no writeback of state,
other than the RIP increment, and when toggling CR0.PE, the CPU has
to execute code from a very low memory address.
Signed-off-by: Maxim Levitsky <mlevitsk@redhat.com>
Message-Id: <20221025124741.228045-14-mlevitsk@redhat.com>
Cc: stable@vger.kernel.org
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-11-10 15:46:08 +01:00
..
alpha
tty: the rest, stop using tty_schedule_flip()
2022-07-29 17:05:47 +02:00
arc
arc: iounmap() arg is volatile
2022-11-03 23:49:17 +09:00
arm
ARM: dts: imx6sl: add missing properties for sram
2022-10-26 13:15:47 +02:00
arm64
arm64: errata: Remove AES hwcap for COMPAT tasks
2022-11-03 23:49:15 +09:00
avr32
blackfin
c6x
cris
frv
futex: Remove duplicated code and fix undefined behaviour
2018-05-19 10:27:00 +02:00
h8300
h8300: fix PREEMPTION build, TI_PRE_COUNT undefined
2021-02-23 13:59:16 +01:00
hexagon
hexagon: export raw I/O routines for modules
2021-11-26 11:48:42 +01:00
ia64
ia64, processor: fix -Wincompatible-pointer-types in ia64_get_irr()
2022-08-25 11:09:24 +02:00
m32r
m68k
m68k: use fallback for random_get_entropy() instead of zero
2022-06-25 11:45:13 +02:00
metag
microblaze
microblaze: Prevent the overflow of the start
2020-02-28 15:42:42 +01:00
mips
MIPS: BCM47XX: Cast memcmp() of function to (void *)
2022-10-26 13:15:45 +02:00
mn10300
nios2
nios2: add force_successful_syscall_return()
2022-08-25 11:09:30 +02:00
openrisc
openrisc: start CPU timer early in boot
2022-06-14 16:52:29 +02:00
parisc
parisc: Add runtime check to prevent PA2.0 kernels on PA1.x machines
2022-09-15 12:39:45 +02:00
powerpc
powerpc: Fix SPE Power ISA properties for e500v1 platforms
2022-10-26 13:15:44 +02:00
s390
s390/futex: add missing EX_TABLE entry to __futex_atomic_op()
2022-11-03 23:49:16 +09:00
score
sh
sh: machvec: Use char[] for section boundaries
2022-10-26 13:15:38 +02:00
sparc
sparc: use fallback for random_get_entropy() instead of zero
2022-06-25 11:45:13 +02:00
tile
locking/x86: Remove the unused atomic_inc_short() methd
2020-01-12 11:24:19 +01:00
um
UM: cpuinfo: Fix a warning for CONFIG_CPUMASK_OFFSTACK
2022-10-26 13:15:37 +02:00
unicore32
x86
KVM: x86: emulator: update the emulation mode after CR0 write
2022-11-10 15:46:08 +01:00
xtensa
xtensa: Fix refcount leak bug in time.c
2022-07-02 16:17:15 +02:00
.gitignore
Kconfig
cpu/hotplug: Provide knobs to control SMT
2018-08-15 18:14:46 +02:00