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

From: David Laight
Date: Mon Jun 12 2023 - 08:16:37 EST


From: Borislav Petkov
> Sent: 12 June 2023 12:52
>
> On Mon, Jun 12, 2023 at 11:22:15AM +0000, David Laight wrote:
> > I can definitely justify compiling them all out.
> > For instance embedded systems with limited userspace and
> > (pretty much) everything running as root.
>
> Nothing's stopping you from adding "mitigations=off" to your grub
> config.

I do (and I compile without page table separation),
but some of the run-time patched versions are not as 'good'
as compiling the code out.
It might just be some nops, but maybe it is worse.
This can be particularly true for new mitigations.

David

-
Registered Address Lakeside, Bramley Road, Mount Farm, Milton Keynes, MK1 1PT, UK
Registration No: 1397386 (Wales)