Re: [PATCH v4 01/13] x86/retpoline: Add initial retpoline support

2018-01-05 Thread Randy Dunlap
On 01/04/18 18:00, David Woodhouse wrote: > > diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig > index d4fc98c..1009d1a 100644 > --- a/arch/x86/Kconfig > +++ b/arch/x86/Kconfig > @@ -429,6 +429,19 @@ config GOLDFISH > def_bool y > depends on X86_GOLDFISH > > +config RETPOLINE >

Re: [PATCH v4 01/13] x86/retpoline: Add initial retpoline support

2018-01-05 Thread Randy Dunlap
On 01/04/18 18:00, David Woodhouse wrote: > > diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig > index d4fc98c..1009d1a 100644 > --- a/arch/x86/Kconfig > +++ b/arch/x86/Kconfig > @@ -429,6 +429,19 @@ config GOLDFISH > def_bool y > depends on X86_GOLDFISH > > +config RETPOLINE >

[PATCH v4 01/13] x86/retpoline: Add initial retpoline support

2018-01-04 Thread David Woodhouse
Enable the use of -mindirect-branch=thunk-extern in newer GCC, and provide the corresponding thunks. Provide assembler macros for invoking the thunks in the same way that GCC does, from native and inline assembler. This adds an X86_BUG_NO_RETPOLINE "feature" for runtime patching out of the

[PATCH v4 01/13] x86/retpoline: Add initial retpoline support

2018-01-04 Thread David Woodhouse
Enable the use of -mindirect-branch=thunk-extern in newer GCC, and provide the corresponding thunks. Provide assembler macros for invoking the thunks in the same way that GCC does, from native and inline assembler. This adds an X86_BUG_NO_RETPOLINE "feature" for runtime patching out of the