Re: [PATCH] x86/retpoline: check CONFIG_RETPOLINE option when SPECTRE_V2_CMD_AUTO

2018-02-02 Thread Thomas Gleixner
On Fri, 2 Feb 2018, Chen Baozi wrote: > Currently, if there is no spectre_v2= or nospectre_v2 specified in the boot > parameter, the kernel will automatically choose mitigation by default. > However, when selecting the auto mode, it doesn't check whether the > retpoline has been built in the kerne

[PATCH] x86/retpoline: check CONFIG_RETPOLINE option when SPECTRE_V2_CMD_AUTO

2018-02-01 Thread Chen Baozi
Currently, if there is no spectre_v2= or nospectre_v2 specified in the boot parameter, the kernel will automatically choose mitigation by default. However, when selecting the auto mode, it doesn't check whether the retpoline has been built in the kernel. Thus, if someone built a kernel without CONF