From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751459AbeADGsU (ORCPT ); Thu, 4 Jan 2018 01:48:20 -0500 Received: from mx2.suse.de ([195.135.220.15]:37208 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750746AbeADGsT (ORCPT ); Thu, 4 Jan 2018 01:48:19 -0500 Subject: Re: [PATCH v2 06/12] x86/retpoline/crypto: Convert xen assembler indirect jumps To: Andi Kleen , tglx@linutronix.de Cc: torvalds@linux-foundation.org, gregkh@linux-foundation.org, linux-kernel@vger.kernel.org, tim.c.chen@linux.intel.com, Andi Kleen References: <20180104020019.1173-1-andi@firstfloor.org> <20180104020019.1173-7-andi@firstfloor.org> From: Juergen Gross Message-ID: Date: Thu, 4 Jan 2018 07:48:16 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 MIME-Version: 1.0 In-Reply-To: <20180104020019.1173-7-andi@firstfloor.org> Content-Type: text/plain; charset=utf-8 Content-Language: de-DE Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: On 04/01/18 03:00, Andi Kleen wrote: > From: Andi Kleen > > Convert all indirect jumps in xen inline assembler code to use > non speculative sequences. > > Based on code from David Woodhouse and Tim Chen > > Signed-off-by: Andi Kleen > --- > arch/x86/crypto/camellia-aesni-avx2-asm_64.S | 1 + > arch/x86/include/asm/xen/hypercall.h | 3 ++- > 2 files changed, 3 insertions(+), 1 deletion(-) > > diff --git a/arch/x86/crypto/camellia-aesni-avx2-asm_64.S b/arch/x86/crypto/camellia-aesni-avx2-asm_64.S > index 1743e6850e00..9cd8450a2050 100644 > --- a/arch/x86/crypto/camellia-aesni-avx2-asm_64.S > +++ b/arch/x86/crypto/camellia-aesni-avx2-asm_64.S > @@ -12,6 +12,7 @@ > > #include > #include > +#include I fail to connect this change to the patch title. Maybe should be part of the crypto patch? > > #define CAMELLIA_TABLE_BYTE_LEN 272 > > diff --git a/arch/x86/include/asm/xen/hypercall.h b/arch/x86/include/asm/xen/hypercall.h > index 7cb282e9e587..91de35bcce5e 100644 > --- a/arch/x86/include/asm/xen/hypercall.h > +++ b/arch/x86/include/asm/xen/hypercall.h > @@ -44,6 +44,7 @@ > #include > #include > #include > +#include > > #include > #include > @@ -217,7 +218,7 @@ privcmd_call(unsigned call, > __HYPERCALL_5ARG(a1, a2, a3, a4, a5); > > stac(); > - asm volatile("call *%[call]" > + asm volatile(NOSPEC_CALL("%[call]") > : __HYPERCALL_5PARAM > : [call] "a" (&hypercall_page[call]) > : __HYPERCALL_CLOBBER5); > Acked-by: Juergen Gross Juergen