Re: [PATCH] cpu/bugs: Disable CPU mitigations at compilation time

From: Borislav Petkov
Date: Fri Jun 09 2023 - 13:33:56 EST


On Fri, Feb 03, 2023 at 04:06:15AM -0800, Breno Leitao wrote:
> Right now it is not possible to disable CPU vulnerabilities mitigations
> at build time. Mitigation needs to be disabled passing kernel
> parameters, such as 'mitigations=off'.
>
> Create a new config option (CONFIG_CPU_MITIGATIONS_DEFAULT_OFF) that
> sets the global variable `cpu_mitigations` to OFF, instead of AUTO. This
> allows the creation of kernel binaries that boots with the CPU
> mitigations turned off by default, and does not require dealing kernel
> parameters.

What's the real-life use case for this?

--
Regards/Gruss,
Boris.

https://people.kernel.org/tglx/notes-about-netiquette