linux-stable/arch
Sean Christopherson 0b5f20dc30 KVM: SVM: Truncate GPR value for DR and CR accesses in !64-bit mode
commit 0884335a2e upstream.

Drop bits 63:32 on loads/stores to/from DRs and CRs when the vCPU is not
in 64-bit mode.  The APM states bits 63:32 are dropped for both DRs and
CRs:

  In 64-bit mode, the operand size is fixed at 64 bits without the need
  for a REX prefix. In non-64-bit mode, the operand size is fixed at 32
  bits and the upper 32 bits of the destination are forced to 0.

Fixes: 7ff76d58a9 ("KVM: SVM: enhance MOV CR intercept handler")
Fixes: cae3797a46 ("KVM: SVM: enhance mov DR intercept handler")
Cc: stable@vger.kernel.org
Signed-off-by: Sean Christopherson <seanjc@google.com>
Message-Id: <20210422022128.3464144-4-seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
[sudip: manual backport to old file]
Signed-off-by: Sudip Mukherjee <sudipm.mukherjee@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-06-10 12:43:53 +02:00
..
alpha alpha: fix annotation of io{read,write}{16,32}be() 2020-08-26 10:29:57 +02:00
arc ARC: entry: fix off-by-one error in syscall number validation 2021-05-22 10:57:39 +02:00
arm ARM: 9066/1: ftrace: pause/unpause function graph tracer in cpu_suspend() 2021-05-22 10:57:42 +02:00
arm64 arm64/vdso: Discard .note.gnu.property sections in vDSO 2021-05-22 10:57:21 +02:00
blackfin
c6x
cris
frv
h8300 h8300: fix PREEMPTION build, TI_PRE_COUNT undefined 2021-02-23 14:00:33 +01:00
hexagon hexagon: work around compiler crash 2020-01-17 19:45:55 +01:00
ia64 tweewide: Fix most Shebang lines 2021-06-03 08:36:11 +02:00
m32r
m68k m68k: q40: Fix info-leak in rtc_ioctl 2020-10-01 13:12:26 +02:00
metag
microblaze microblaze: Prevent the overflow of the start 2020-02-28 16:36:08 +01:00
mips MIPS: ralink: export rt_sysc_membase for rt2880_wdt.c 2021-06-03 08:36:25 +02:00
mn10300
nios2 nios2: ksyms: Add missing symbol exports 2020-01-27 14:46:24 +01:00
openrisc openrisc: Define memory barrier mb 2021-06-03 08:36:22 +02:00
parisc parisc: avoid a warning on u8 cast for cmpxchg on u8 pointers 2021-04-16 11:57:48 +02:00
powerpc powerpc/64s: Fix crashes when toggling entry flush barrier 2021-05-22 10:57:39 +02:00
s390 KVM: s390: split kvm_s390_real_to_abs 2021-05-22 10:57:26 +02:00
score
sh sh: dma: fix kconfig dependency for G2_DMA 2021-01-30 13:31:15 +01:00
sparc sparc64: Fix opcode filtering in handling of no fault loads 2021-03-30 14:40:09 +02:00
tile
um um: Mark all kernel symbols as local 2021-05-22 10:57:42 +02:00
unicore32
x86 KVM: SVM: Truncate GPR value for DR and CR accesses in !64-bit mode 2021-06-10 12:43:53 +02:00
xtensa xtensa: disable preemption around cache alias management calls 2020-11-24 13:05:56 +01:00
.gitignore
Kconfig mm: fix exec activate_mm vs TLB shootdown and lazy tlb switching race 2020-11-18 18:28:03 +01:00