[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <tip-34cc5034b57b81f789ad4714533ca921a9b1c9d7@git.kernel.org>
Date: Thu, 25 Jan 2018 02:34:37 -0800
From: tip-bot for Peter Zijlstra <tipbot@...or.com>
To: linux-tip-commits@...r.kernel.org
Cc: mingo@...nel.org, gregkh@...uxfoundation.org,
torvalds@...ux-foundation.org, linux-kernel@...r.kernel.org,
jbaron@...mai.com, peterz@...radead.org, ashok.raj@...el.com,
arjan.van.de.ven@...el.com, dwmw@...zon.co.uk,
dan.j.williams@...el.com, hpa@...or.com, jpoimboe@...hat.com,
asit.k.mallick@...el.com, dwmw2@...radead.org, luto@...nel.org,
pbonzini@...hat.com, tglx@...utronix.de,
tim.c.chen@...ux.intel.com, dave.hansen@...el.com,
ak@...ux.intel.com, aarcange@...hat.com, jun.nakajima@...el.com
Subject: [tip:x86/pti] KVM: VMX: Make indirect call specualation safe
Commit-ID: 34cc5034b57b81f789ad4714533ca921a9b1c9d7
Gitweb: https://git.kernel.org/tip/34cc5034b57b81f789ad4714533ca921a9b1c9d7
Author: Peter Zijlstra <peterz@...radead.org>
AuthorDate: Thu, 25 Jan 2018 10:58:14 +0100
Committer: Thomas Gleixner <tglx@...utronix.de>
CommitDate: Thu, 25 Jan 2018 11:30:07 +0100
KVM: VMX: Make indirect call specualation safe
Replace indirect call with CALL_NOSPEC.
Signed-off-by: Peter Zijlstra (Intel) <peterz@...radead.org>
Signed-off-by: Thomas Gleixner <tglx@...utronix.de>
Reviewed-by: David Woodhouse <dwmw@...zon.co.uk>
Cc: Andrea Arcangeli <aarcange@...hat.com>
Cc: Andi Kleen <ak@...ux.intel.com>
Cc: Ashok Raj <ashok.raj@...el.com>
Cc: Greg KH <gregkh@...uxfoundation.org>
Cc: Jun Nakajima <jun.nakajima@...el.com>
Cc: David Woodhouse <dwmw2@...radead.org>
Cc: Linus Torvalds <torvalds@...ux-foundation.org>
Cc: rga@...zon.de
Cc: Dave Hansen <dave.hansen@...el.com>
Cc: Asit Mallick <asit.k.mallick@...el.com>
Cc: Andy Lutomirski <luto@...nel.org>
Cc: Josh Poimboeuf <jpoimboe@...hat.com>
Cc: Jason Baron <jbaron@...mai.com>
Cc: Paolo Bonzini <pbonzini@...hat.com>
Cc: Dan Williams <dan.j.williams@...el.com>
Cc: Arjan Van De Ven <arjan.van.de.ven@...el.com>
Cc: Tim Chen <tim.c.chen@...ux.intel.com>
Link: https://lkml.kernel.org/r/20180125095843.645776917@infradead.org
---
arch/x86/kvm/vmx.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/arch/x86/kvm/vmx.c b/arch/x86/kvm/vmx.c
index d1e25db..924589c 100644
--- a/arch/x86/kvm/vmx.c
+++ b/arch/x86/kvm/vmx.c
@@ -9064,14 +9064,14 @@ static void vmx_handle_external_intr(struct kvm_vcpu *vcpu)
#endif
"pushf\n\t"
__ASM_SIZE(push) " $%c[cs]\n\t"
- "call *%[entry]\n\t"
+ CALL_NOSPEC
:
#ifdef CONFIG_X86_64
[sp]"=&r"(tmp),
#endif
ASM_CALL_CONSTRAINT
:
- [entry]"r"(entry),
+ THUNK_TARGET(entry),
[ss]"i"(__KERNEL_DS),
[cs]"i"(__KERNEL_CS)
);
Powered by blists - more mailing lists