Re: [PATCH 2/2] x86/speculation: Simplify indirect_branch_prediction_barrier()

From: David Woodhouse
Date: Sat Jan 27 2018 - 07:33:35 EST


On Fri, 2018-01-26 at 21:08 +0100, Borislav Petkov wrote:
>
> --- a/arch/x86/include/asm/processor.h
> +++ b/arch/x86/include/asm/processor.h
> @@ -971,4 +971,8 @@ bool xen_set_default_idle(void);
> Â
> Âvoid stop_this_cpu(void *dummy);
> Âvoid df_debug(struct pt_regs *regs, long error_code);
> +
> +#ifdef CONFIG_RETPOLINE
> +void __ibp_barrier(void);
> +#endif
> Â#endif /* _ASM_X86_PROCESSOR_H */

Did I already say that needs to live in asm-prototypes.h? And it needs
to be exported to modules, I think.

Attachment: smime.p7s
Description: S/MIME cryptographic signature