[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250227153707.GGZ8CGoyaSgX6FkVWY@fat_crate.local>
Date: Thu, 27 Feb 2025 16:37:07 +0100
From: Borislav Petkov <bp@...en8.de>
To: "Kaplan, David" <David.Kaplan@....com>
Cc: Pawan Gupta <pawan.kumar.gupta@...ux.intel.com>,
Josh Poimboeuf <jpoimboe@...nel.org>,
Thomas Gleixner <tglx@...utronix.de>,
Peter Zijlstra <peterz@...radead.org>,
Ingo Molnar <mingo@...hat.com>,
Dave Hansen <dave.hansen@...ux.intel.com>,
"x86@...nel.org" <x86@...nel.org>,
"H . Peter Anvin" <hpa@...or.com>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH v3 20/35] x86/bugs: Define attack vectors
On Thu, Feb 27, 2025 at 03:22:08PM +0000, Kaplan, David wrote:
> In this case, I think it is clearer to say
> mitigations=auto;no_guest_guest
>
> That way, the admin is explicitly saying they don't want certain protection.
> This seems much harder to mess up.
So if we want to protect *only* against malicious VMs, the cmdline should be
mitigations:off;no_guest_guest
off being the policy to disable the other vectors because admin wants to have
her performance back.
Right?
Which then makes this one:
mitigations=off;guest_host
equivalent.
Uff.
> My argument is it's probably better to err on the side of security.
Probably. As you can realize, I'm playing the devil's advocate in all this
so that we can see how we feel about it.
> To me this seems like an unlikely use case, so maybe it's ok to be a bit more verbose.
Right, that use case is for benchmarkers. :)
> Ok, I can add that to the series.
Thx.
> But there's already an 'auto,nosmt' option. So I thought we wanted to leave
> that alone and use it as the base.
There's that. And "nosmt" is actually the cross-thread attack vector.
I guess what we should do here is to leave "auto,nosmt" alone and use
"cross_thread" for the attack vector and not allow "nosmt" in the new
mitigations specification scheme.
IOW, the set of the attack vectors will be:
list_of_vectors = {user_kernel, user_user, guest_host, guest_guest,
cross_thread }
Or the no_ versions of them respectively.
Hmmm.
--
Regards/Gruss,
Boris.
https://people.kernel.org/tglx/notes-about-netiquette
Powered by blists - more mailing lists