* FAILED: patch "[PATCH] KVM: nVMX: Fix consistency check on injected exception error" failed to apply to 5.3-stable tree
@ 2019-10-08 7:21 gregkh
2019-10-08 22:15 ` Sasha Levin
0 siblings, 1 reply; 4+ messages in thread
From: gregkh @ 2019-10-08 7:21 UTC (permalink / raw)
To: sean.j.christopherson, jmattson, namit, pbonzini; +Cc: stable
The patch below does not apply to the 5.3-stable tree.
If someone wants it applied there, or to any other stable or longterm
tree, then please email the backport, including the original git commit
id to <stable@vger.kernel.org>.
thanks,
greg k-h
------------------ original commit in Linus's tree ------------------
From 567926cca99ba1750be8aae9c4178796bf9bb90b Mon Sep 17 00:00:00 2001
From: Sean Christopherson <sean.j.christopherson@intel.com>
Date: Tue, 1 Oct 2019 09:21:23 -0700
Subject: [PATCH] KVM: nVMX: Fix consistency check on injected exception error
code
Current versions of Intel's SDM incorrectly state that "bits 31:15 of
the VM-Entry exception error-code field" must be zero. In reality, bits
31:16 must be zero, i.e. error codes are 16-bit values.
The bogus error code check manifests as an unexpected VM-Entry failure
due to an invalid code field (error number 7) in L1, e.g. when injecting
a #GP with error_code=0x9f00.
Nadav previously reported the bug[*], both to KVM and Intel, and fixed
the associated kvm-unit-test.
[*] https://patchwork.kernel.org/patch/11124749/
Reported-by: Nadav Amit <namit@vmware.com>
Cc: stable@vger.kernel.org
Signed-off-by: Sean Christopherson <sean.j.christopherson@intel.com>
Reviewed-by: Jim Mattson <jmattson@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
diff --git a/arch/x86/kvm/vmx/nested.c b/arch/x86/kvm/vmx/nested.c
index 41abc62c9a8a..e76eb4f07f6c 100644
--- a/arch/x86/kvm/vmx/nested.c
+++ b/arch/x86/kvm/vmx/nested.c
@@ -2610,7 +2610,7 @@ static int nested_check_vm_entry_controls(struct kvm_vcpu *vcpu,
/* VM-entry exception error code */
if (CC(has_error_code &&
- vmcs12->vm_entry_exception_error_code & GENMASK(31, 15)))
+ vmcs12->vm_entry_exception_error_code & GENMASK(31, 16)))
return -EINVAL;
/* VM-entry interruption-info field: reserved bits */
^ permalink raw reply related [flat|nested] 4+ messages in thread
* FAILED: patch "[PATCH] KVM: nVMX: Fix consistency check on injected exception error" failed to apply to 5.3-stable tree
@ 2019-10-08 7:23 gregkh
0 siblings, 0 replies; 4+ messages in thread
From: gregkh @ 2019-10-08 7:23 UTC (permalink / raw)
To: sean.j.christopherson, jmattson, namit, pbonzini; +Cc: stable
The patch below does not apply to the 5.3-stable tree.
If someone wants it applied there, or to any other stable or longterm
tree, then please email the backport, including the original git commit
id to <stable@vger.kernel.org>.
thanks,
greg k-h
------------------ original commit in Linus's tree ------------------
From 567926cca99ba1750be8aae9c4178796bf9bb90b Mon Sep 17 00:00:00 2001
From: Sean Christopherson <sean.j.christopherson@intel.com>
Date: Tue, 1 Oct 2019 09:21:23 -0700
Subject: [PATCH] KVM: nVMX: Fix consistency check on injected exception error
code
Current versions of Intel's SDM incorrectly state that "bits 31:15 of
the VM-Entry exception error-code field" must be zero. In reality, bits
31:16 must be zero, i.e. error codes are 16-bit values.
The bogus error code check manifests as an unexpected VM-Entry failure
due to an invalid code field (error number 7) in L1, e.g. when injecting
a #GP with error_code=0x9f00.
Nadav previously reported the bug[*], both to KVM and Intel, and fixed
the associated kvm-unit-test.
[*] https://patchwork.kernel.org/patch/11124749/
Reported-by: Nadav Amit <namit@vmware.com>
Cc: stable@vger.kernel.org
Signed-off-by: Sean Christopherson <sean.j.christopherson@intel.com>
Reviewed-by: Jim Mattson <jmattson@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
diff --git a/arch/x86/kvm/vmx/nested.c b/arch/x86/kvm/vmx/nested.c
index 41abc62c9a8a..e76eb4f07f6c 100644
--- a/arch/x86/kvm/vmx/nested.c
+++ b/arch/x86/kvm/vmx/nested.c
@@ -2610,7 +2610,7 @@ static int nested_check_vm_entry_controls(struct kvm_vcpu *vcpu,
/* VM-entry exception error code */
if (CC(has_error_code &&
- vmcs12->vm_entry_exception_error_code & GENMASK(31, 15)))
+ vmcs12->vm_entry_exception_error_code & GENMASK(31, 16)))
return -EINVAL;
/* VM-entry interruption-info field: reserved bits */
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: FAILED: patch "[PATCH] KVM: nVMX: Fix consistency check on injected exception error" failed to apply to 5.3-stable tree
2019-10-08 7:21 gregkh
@ 2019-10-08 22:15 ` Sasha Levin
2019-10-09 7:47 ` Greg KH
0 siblings, 1 reply; 4+ messages in thread
From: Sasha Levin @ 2019-10-08 22:15 UTC (permalink / raw)
To: gregkh; +Cc: sean.j.christopherson, jmattson, namit, pbonzini, stable
On Tue, Oct 08, 2019 at 09:21:51AM +0200, gregkh@linuxfoundation.org wrote:
>
>The patch below does not apply to the 5.3-stable tree.
>If someone wants it applied there, or to any other stable or longterm
>tree, then please email the backport, including the original git commit
>id to <stable@vger.kernel.org>.
>
>thanks,
>
>greg k-h
>
>------------------ original commit in Linus's tree ------------------
>
>From 567926cca99ba1750be8aae9c4178796bf9bb90b Mon Sep 17 00:00:00 2001
>From: Sean Christopherson <sean.j.christopherson@intel.com>
>Date: Tue, 1 Oct 2019 09:21:23 -0700
>Subject: [PATCH] KVM: nVMX: Fix consistency check on injected exception error
> code
>
>Current versions of Intel's SDM incorrectly state that "bits 31:15 of
>the VM-Entry exception error-code field" must be zero. In reality, bits
>31:16 must be zero, i.e. error codes are 16-bit values.
>
>The bogus error code check manifests as an unexpected VM-Entry failure
>due to an invalid code field (error number 7) in L1, e.g. when injecting
>a #GP with error_code=0x9f00.
>
>Nadav previously reported the bug[*], both to KVM and Intel, and fixed
>the associated kvm-unit-test.
>
>[*] https://patchwork.kernel.org/patch/11124749/
>
>Reported-by: Nadav Amit <namit@vmware.com>
>Cc: stable@vger.kernel.org
>Signed-off-by: Sean Christopherson <sean.j.christopherson@intel.com>
>Reviewed-by: Jim Mattson <jmattson@google.com>
>Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
There were minor conflicts due to missing tracepoint in 5.3 and code
movement in 4.19. I've fixed it up.
--
Thanks,
Sasha
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: FAILED: patch "[PATCH] KVM: nVMX: Fix consistency check on injected exception error" failed to apply to 5.3-stable tree
2019-10-08 22:15 ` Sasha Levin
@ 2019-10-09 7:47 ` Greg KH
0 siblings, 0 replies; 4+ messages in thread
From: Greg KH @ 2019-10-09 7:47 UTC (permalink / raw)
To: Sasha Levin; +Cc: sean.j.christopherson, jmattson, namit, pbonzini, stable
On Tue, Oct 08, 2019 at 06:15:27PM -0400, Sasha Levin wrote:
> On Tue, Oct 08, 2019 at 09:21:51AM +0200, gregkh@linuxfoundation.org wrote:
> >
> > The patch below does not apply to the 5.3-stable tree.
> > If someone wants it applied there, or to any other stable or longterm
> > tree, then please email the backport, including the original git commit
> > id to <stable@vger.kernel.org>.
> >
> > thanks,
> >
> > greg k-h
> >
> > ------------------ original commit in Linus's tree ------------------
> >
> > > From 567926cca99ba1750be8aae9c4178796bf9bb90b Mon Sep 17 00:00:00 2001
> > From: Sean Christopherson <sean.j.christopherson@intel.com>
> > Date: Tue, 1 Oct 2019 09:21:23 -0700
> > Subject: [PATCH] KVM: nVMX: Fix consistency check on injected exception error
> > code
> >
> > Current versions of Intel's SDM incorrectly state that "bits 31:15 of
> > the VM-Entry exception error-code field" must be zero. In reality, bits
> > 31:16 must be zero, i.e. error codes are 16-bit values.
> >
> > The bogus error code check manifests as an unexpected VM-Entry failure
> > due to an invalid code field (error number 7) in L1, e.g. when injecting
> > a #GP with error_code=0x9f00.
> >
> > Nadav previously reported the bug[*], both to KVM and Intel, and fixed
> > the associated kvm-unit-test.
> >
> > [*] https://patchwork.kernel.org/patch/11124749/
> >
> > Reported-by: Nadav Amit <namit@vmware.com>
> > Cc: stable@vger.kernel.org
> > Signed-off-by: Sean Christopherson <sean.j.christopherson@intel.com>
> > Reviewed-by: Jim Mattson <jmattson@google.com>
> > Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
>
> There were minor conflicts due to missing tracepoint in 5.3 and code
> movement in 4.19. I've fixed it up.
Thanks for fixing these, and all of the other FAILED: issues.
thanks,
greg k-h
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2019-10-09 7:47 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-10-08 7:23 FAILED: patch "[PATCH] KVM: nVMX: Fix consistency check on injected exception error" failed to apply to 5.3-stable tree gregkh
-- strict thread matches above, loose matches on Subject: below --
2019-10-08 7:21 gregkh
2019-10-08 22:15 ` Sasha Levin
2019-10-09 7:47 ` Greg KH
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).