mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: boris.ostrovsky@oracle.com
To: Stefano Stabellini <sstabellini@kernel.org>,
	linux-kernel@vger.kernel.org
Cc: Stefano Stabellini <stefano.stabellini@xilinx.com>,
	Bertrand Marquis <Bertrand.Marquis@arm.com>,
	jgross@suse.com
Subject: Re: [PATCH] xen/arm: do not setup the runstate info page if kpti is enabled
Date: Wed, 30 Sep 2020 10:13:39 -0400	[thread overview]
Message-ID: <4aca4d30-f418-bfab-8a9c-74f349f4ca02@oracle.com> (raw)
In-Reply-To: <20200924234955.15455-1-sstabellini@kernel.org>

On 9/24/20 7:49 PM, Stefano Stabellini wrote:

> From: Stefano Stabellini <stefano.stabellini@xilinx.com>
>
> The VCPUOP_register_runstate_memory_area hypercall takes a virtual
> address of a buffer as a parameter. The semantics of the hypercall are
> such that the virtual address should always be valid.
>
> When KPTI is enabled and we are running userspace code, the virtual
> address is not valid, thus, Linux is violating the semantics of
> VCPUOP_register_runstate_memory_area.
>
> Do not call VCPUOP_register_runstate_memory_area when KPTI is enabled.
>
> Signed-off-by: Stefano Stabellini <stefano.stabellini@xilinx.com>
> CC: Bertrand Marquis <Bertrand.Marquis@arm.com>
> CC: boris.ostrovsky@oracle.com
> CC: jgross@suse.com


Applied to for-linus-5.10



-boris


      parent reply	other threads:[~2020-09-30 14:13 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-09-24 23:49 Stefano Stabellini
2020-09-25 15:08 ` Bertrand Marquis
2020-09-30 14:13 ` boris.ostrovsky [this message]

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=4aca4d30-f418-bfab-8a9c-74f349f4ca02@oracle.com \
    --to=boris.ostrovsky@oracle.com \
    --cc=Bertrand.Marquis@arm.com \
    --cc=jgross@suse.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=sstabellini@kernel.org \
    --cc=stefano.stabellini@xilinx.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®