All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 4.19 STABLE v2 0/2] KVM: VMX: Fix null pointer dereference
@ 2020-05-12  0:28 Sean Christopherson
  2020-05-12  0:28 ` [PATCH 4.19 STABLE v2 1/2] KVM: VMX: Explicitly reference RCX as the vmx_vcpu pointer in asm blobs Sean Christopherson
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Sean Christopherson @ 2020-05-12  0:28 UTC (permalink / raw)
  To: stable, Greg Kroah-Hartman, Ben Hutchings, Sasha Levin
  Cc: Paolo Bonzini, linux-kernel, Tobias Urdin

A simple fix for a null pointer dereference in vmx_vcpu_run() with an
ugly-but-safe prereq patch.

The even uglier ASM_CALL_CONSTRAINT is gone in v2 as I finally figured
out why vmx_return was undefined: GCC dropped the entire asm blob because
all outputs were deemed unused.

v2:
  - Document why there is no exact upstream commit for the fix, with
    --verbose. [Greg]
  - Tag the asm blob as volatile and drop the ASM_CALL_CONSTRAINT hack.

Sean Christopherson (2):
  KVM: VMX: Explicitly reference RCX as the vmx_vcpu pointer in asm
    blobs
  KVM: VMX: Mark RCX, RDX and RSI as clobbered in vmx_vcpu_run()'s asm
    blob

 arch/x86/kvm/vmx.c | 91 +++++++++++++++++++++++++---------------------
 1 file changed, 50 insertions(+), 41 deletions(-)

-- 
2.26.0


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-05-12 11:43 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-12  0:28 [PATCH 4.19 STABLE v2 0/2] KVM: VMX: Fix null pointer dereference Sean Christopherson
2020-05-12  0:28 ` [PATCH 4.19 STABLE v2 1/2] KVM: VMX: Explicitly reference RCX as the vmx_vcpu pointer in asm blobs Sean Christopherson
2020-05-12  0:28 ` [PATCH 4.19 STABLE v2 2/2] KVM: VMX: Mark RCX, RDX and RSI as clobbered in vmx_vcpu_run()'s asm blob Sean Christopherson
2020-05-12 11:43 ` [PATCH 4.19 STABLE v2 0/2] KVM: VMX: Fix null pointer dereference Greg Kroah-Hartman

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.