Re: [PATCH v3] x86/bugs: Add a separate config for each mitigation

From: Borislav Petkov
Date: Fri Oct 06 2023 - 05:54:35 EST


On Thu, Oct 05, 2023 at 11:29:02AM -0700, Linus Torvalds wrote:
> ...
> "complex" conditionals may also be annoying, but dammit, they are
> important documentation about why we do those things, and unlike just
> comments that will inevitably bit-rot, they have semantics and get
> tested.

Thanks for explaining - it does make sense to me.

So, from the looks of it, we're halfway there:

- SPECULATION_MITIGATIONS is there for people who want to whack off the
whole crap

- the separate Kconfig switches are for people who want to do
a finer-grained control. And yeah, they might be annoying the first
time but you do them once and then you use the .config forever, like
with anything else.

So yeah, sounds like a plan. Breno, please add Linus' explanation to the
commit message why we're doing it this way, when sending your new
version.

Thx.

--
Regards/Gruss,
Boris.

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