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

From: Breno Leitao
Date: Tue Jun 13 2023 - 12:03:07 EST


On Mon, Jun 12, 2023 at 07:05:32PM +0200, Borislav Petkov wrote:
> On Mon, Jun 12, 2023 at 09:37:07AM -0700, Breno Leitao wrote:
> > I am not sure if these bugs (MDS, TAA) are speculations related. Pawan
> > could help us here.
>
> "Microarchitectural Data Sampling is a hardware vulnerability which allows
> unprivileged speculative access..."
>
> "TAA is a hardware vulnerability that allows unprivileged speculative
> access to data which is available in various CPU..."

Is it OK if I send a patch that would disable these mitigations if
CONFIG_SPECULATION_MITIGATIONS is set to "no"?

Thank you!