linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Borislav Petkov <bp@alien8.de>
To: Manikandan Jagatheesan <mjagatheesan@vmware.com>
Cc: "peterz@infradead.org" <peterz@infradead.org>,
	"jpoimboe@kernel.org" <jpoimboe@kernel.org>,
	"tglx@linutronix.de" <tglx@linutronix.de>,
	"mingo@redhat.com" <mingo@redhat.com>,
	"dave.hansen@linux.intel.com" <dave.hansen@linux.intel.com>,
	"x86@kernel.org" <x86@kernel.org>,
	"hpa@zytor.com" <hpa@zytor.com>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	"srivatsa@csail.mit.edu" <srivatsa@csail.mit.edu>,
	Peter Jonasson <pjonasson@vmware.com>,
	Yiu Cho Lau <lauyiuch@vmware.com>, Rajender M <manir@vmware.com>,
	Abdul Anshad Azeez <aazees@vmware.com>,
	Kodeswaran Kumarasamy <kkumarasamy@vmware.com>,
	Rahul Gopakumar <gopakumarr@vmware.com>
Subject: Re: Performance Regression in Linux Kernel 5.19
Date: Mon, 12 Sep 2022 12:58:28 +0200	[thread overview]
Message-ID: <Yx8Q1L3jNAJxa84L@nazgul.tnic> (raw)
In-Reply-To: <YxxCMSYaI/o3QH03@nazgul.tnic>

A couple more notes after talking to tglx:

So this works as expected. The threat model where the guest needs
to protect itself from malicious userspace is there so if the guest
emulates a CPU which is affected by retbleed and the hypervisor exposes
SPEC_CTRL, then the guest *should* enable IBRS to flush the RSB.

It is a lot nastier if the guest emulates a CPU which is *not* affected
by retbleed but the host uarch is - then the guest will be vulnerable
and it would not even warn about it! So people should be careful what
they do there.

In addition, if the guest trusts its userspace, it might disable IBRS
in order not to suffer the penalty but that's left to the guest owner.
The default setting has to be secure.

HTH.

-- 
Regards/Gruss,
    Boris.

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

  reply	other threads:[~2022-09-12 10:58 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-09-09 11:46 Performance Regression in Linux Kernel 5.19 Manikandan Jagatheesan
2022-09-09 13:18 ` Peter Zijlstra
2022-09-09 21:22 ` David Laight
2022-09-10  7:52 ` Borislav Petkov
2022-09-12 10:58   ` Borislav Petkov [this message]
2022-09-13  8:40     ` Manikandan Jagatheesan
2022-09-13 10:27       ` Boris Petkov
2022-09-13 11:20       ` Peter Zijlstra

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=Yx8Q1L3jNAJxa84L@nazgul.tnic \
    --to=bp@alien8.de \
    --cc=aazees@vmware.com \
    --cc=dave.hansen@linux.intel.com \
    --cc=gopakumarr@vmware.com \
    --cc=hpa@zytor.com \
    --cc=jpoimboe@kernel.org \
    --cc=kkumarasamy@vmware.com \
    --cc=lauyiuch@vmware.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=manir@vmware.com \
    --cc=mingo@redhat.com \
    --cc=mjagatheesan@vmware.com \
    --cc=peterz@infradead.org \
    --cc=pjonasson@vmware.com \
    --cc=srivatsa@csail.mit.edu \
    --cc=tglx@linutronix.de \
    --cc=x86@kernel.org \
    /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;
as well as URLs for NNTP newsgroup(s).