mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Rainer Fiebig <jrf@mailbox.org>
To: Borislav Petkov <bp@alien8.de>
Cc: Xi Ruoyao <xry111@xry111.site>,
	x86@kernel.org, linux-kernel@vger.kernel.org,
	Ken Moffat <zarniwhoop@ntlworld.com>
Subject: Re: Does srso safe RET mitigation require microcode update?
Date: Mon, 14 Aug 2023 13:21:01 +0200	[thread overview]
Message-ID: <9294eeed-e354-48e3-a0fe-8f917074ef8f@mailbox.org> (raw)
In-Reply-To: <20230814101134.GBZNn91uTmNImxRDXr@fat_crate.local>

Am 14.08.23 um 12:11 schrieb Borislav Petkov:
> On Mon, Aug 14, 2023 at 11:47:54AM +0200, Rainer Fiebig wrote:
>> "* 'Mitigation: safe RET':
>>
>>    Software-only mitigation. It complements the extended IBPB microcode
>>    patch functionality by addressing User->Kernel and Guest->Host
>>    transitions protection."
>>
>> Now, what does that mean: partial mitigation or also no mitigation
>> without microcode?
> 
> It *complements*! Meaning, for a full safe RET mitigation, you need the
> microcode on Zen3/4.
> 
> Would that explain it better?
> 
> "First of all, it is required that the latest microcode be loaded for
> mitigations to be effective. That means that for the User->User
> aspect of the mitigation to be effective, one needs the updated
> microcode for Zen3 and Zen4 generations. In addition, one needs to
> *enable* the User->User mitigation which is part of the spectre_v2_user
> controls:
> 
>   - conditional IBPB:
> 
>   where each process can select whether it needs an IBPB issued around
>   it PR_SPEC_DISABLE/_ENABLE etc, see Spectre Side Channels. That is the
>   default setting
> 
>   - strict:
> 
>   i.e., always on - by supplying spectre_v2_user=on on the kernel
>   command line."
> 
> IOW, without microcode, you do not mitigate the User->User aspect of the
> mitigation but you mitigate the other vectors with safe RET.
> 
OK, thanks.  So I think a reasonable approach for ordinary users would
be to update to the latest (LTS-) kernel, use the defaults for the
mitigations and update to the new AGESA when available.

Rainer

  reply	other threads:[~2023-08-14 11:22 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-08-14  9:00 Xi Ruoyao
2023-08-14  9:10 ` Borislav Petkov
2023-08-14  9:47   ` Rainer Fiebig
2023-08-14 10:11     ` Borislav Petkov
2023-08-14 11:21       ` Rainer Fiebig [this message]
2023-08-14 12:52         ` Borislav Petkov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=9294eeed-e354-48e3-a0fe-8f917074ef8f@mailbox.org \
    --to=jrf@mailbox.org \
    --cc=bp@alien8.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=x86@kernel.org \
    --cc=xry111@xry111.site \
    --cc=zarniwhoop@ntlworld.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®