android_kernel_motorola_sm6375/arch
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Sean Christopherson 731436e1ee KVM: x86: Set error code to segment selector on LLDT/LTR non-canonical #GP
commit 2626206963ace9e8bf92b6eea5ff78dd674c555c upstream.

When injecting a #GP on LLDT/LTR due to a non-canonical LDT/TSS base, set
the error code to the selector.  Intel SDM's says nothing about the #GP,
but AMD's APM explicitly states that both LLDT and LTR set the error code
to the selector, not zero.

Note, a non-canonical memory operand on LLDT/LTR does generate a #GP(0),
but the KVM code in question is specific to the base from the descriptor.

Fixes: e37a75a13c ("KVM: x86: Emulator ignores LDTR/TR extended base on LLDT/LTR")
Cc: stable@vger.kernel.org
Signed-off-by: Sean Christopherson <seanjc@google.com>
Reviewed-by: Maxim Levitsky <mlevitsk@redhat.com>
Link: https://lore.kernel.org/r/20220711232750.1092012-3-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-08-25 11:17:20 +02:00
..
alpha tty: the rest, stop using tty_schedule_flip() 2022-07-29 17:14:19 +02:00
arc
arm ARM: crypto: comment out gcc warning that breaks clang builds 2022-08-03 11:59:41 +02:00
arm64 locking/refcount: Consolidate implementations of refcount_t 2022-07-29 17:14:17 +02:00
c6x
csky
h8300
hexagon
ia64 ia64: define get_cycles macro for arch-override 2022-06-22 14:11:14 +02:00
m68k m68k: use fallback for random_get_entropy() instead of zero 2022-06-22 14:11:15 +02:00
microblaze
mips MIPS: Remove repetitive increase irq_err_count 2022-06-29 08:58:46 +02:00
nds32
nios2 nios2: use fallback for random_get_entropy() instead of zero 2022-06-22 14:11:15 +02:00
openrisc
parisc parisc: Enable ARCH_HAS_STRICT_MODULE_RWX 2022-06-29 08:58:48 +02:00
powerpc powerpc/powernv: delay rng platform device creation until later in boot 2022-07-12 16:30:47 +02:00
riscv riscv: add as-options for modules with assembly compontents 2022-07-29 17:14:08 +02:00
s390 s390/archrandom: prevent CPACF trng invocations in interrupt context 2022-08-03 11:59:37 +02:00
sh
sparc sparc: use fallback for random_get_entropy() instead of zero 2022-06-22 14:11:15 +02:00
um um: use fallback for random_get_entropy() instead of zero 2022-06-22 14:11:15 +02:00
unicore32
x86 KVM: x86: Set error code to segment selector on LLDT/LTR non-canonical #GP 2022-08-25 11:17:20 +02:00
xtensa xtensa: Fix refcount leak bug in time.c 2022-06-29 08:58:48 +02:00
.gitignore
Kconfig locking/refcount: Consolidate implementations of refcount_t 2022-07-29 17:14:17 +02:00