All of lore.kernel.org
 help / color / mirror / Atom feed
From: Boris Ostrovsky <boris.ostrovsky@oracle.com>
To: George Dunlap <george.dunlap@citrix.com>,
	Andrew Cooper <andrew.cooper3@citrix.com>,
	Jan Beulich <JBeulich@suse.com>,
	Sergey Dyasli <sergey.dyasli@citrix.com>
Cc: George Dunlap <George.Dunlap@eu.citrix.com>,
	Julien Grall <julien.grall@arm.com>, Tim Deegan <tim@xen.org>,
	xen-devel@lists.xen.org
Subject: Re: [PATCH] mm/page_alloc: always scrub pages given to the allocator
Date: Mon, 1 Oct 2018 09:57:06 -0400	[thread overview]
Message-ID: <cfa78a84-9026-be61-5f39-c5b38d8aba9c@oracle.com> (raw)
In-Reply-To: <4d90b2ba-dcb2-c741-ef08-1beda65d69ab@citrix.com>

On 10/1/18 9:50 AM, George Dunlap wrote:
> On 10/01/2018 02:44 PM, Boris Ostrovsky wrote:
>> On 10/1/18 9:12 AM, Andrew Cooper wrote:
>>> On 01/10/18 12:13, Jan Beulich wrote:
>>>>>>> On 01.10.18 at 11:58, <sergey.dyasli@citrix.com> wrote:
>>>>> Having the allocator return unscrubbed pages is a potential security
>>>>> concern: some domain can be given pages with memory contents of another
>>>>> domain. This may happen, for example, if a domain voluntarily releases
>>>>> its own memory (ballooning being the easiest way for doing this).
>>>> And we've always said that in this case it's the domain's responsibility
>>>> to scrub the memory of secrets it cares about. Therefore I'm at the
>>>> very least missing some background on this change of expectations.
>>> You were on the call when this was discussed, along with the synchronous
>>> scrubbing in destroydomain.
>>>
>>> Put simply, the current behaviour is not good enough for a number of
>>> security sensitive usecases.
>>>
>>> The main reason however for doing this is the optimisations it enables,
>>> and in particular, not double scrubbing most of our pages.
>> OTOH, it introduces double scrubbing for ballooning because (at least
>> Linux) guests do scrub memory before handing it back to the hypervisor.
> We could add a Xen feature flag which tells the guest balloon driver
> whether the hypervisor will scrub pages (and thus it doesn't need to).

We can, but we are regressing existing guests.

Can we except ballooned pages from being scrubbed, and instead have a
guest request scrubbing if it has concerns (that Andrew mentioned) about
this?

-boris


>
> Andy, wasn't unconditional scrubbing of guest pages also required by
> some certification or other?
>
>  -George


_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

  parent reply	other threads:[~2018-10-01 13:57 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-10-01  9:58 [PATCH] mm/page_alloc: always scrub pages given to the allocator Sergey Dyasli
2018-10-01 10:13 ` Julien Grall
2018-10-01 11:13 ` Jan Beulich
2018-10-01 13:12   ` Andrew Cooper
2018-10-01 13:27     ` George Dunlap
2018-10-01 13:38     ` Jan Beulich
2018-10-01 13:44       ` Sergey Dyasli
2018-10-01 13:54         ` George Dunlap
2018-10-01 14:28           ` Sergey Dyasli
2018-10-01 15:15             ` Jan Beulich
2018-10-01 14:11       ` Sergey Dyasli
2018-10-01 15:12         ` Jan Beulich
2018-10-01 13:44     ` Boris Ostrovsky
2018-10-01 13:50       ` George Dunlap
2018-10-01 13:55         ` Andrew Cooper
2018-10-01 13:57         ` Boris Ostrovsky [this message]
2018-10-01 14:53           ` Andrew Cooper
2018-10-01 14:40   ` Sergey Dyasli
2018-10-01 15:13     ` Jan Beulich

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=cfa78a84-9026-be61-5f39-c5b38d8aba9c@oracle.com \
    --to=boris.ostrovsky@oracle.com \
    --cc=George.Dunlap@eu.citrix.com \
    --cc=JBeulich@suse.com \
    --cc=andrew.cooper3@citrix.com \
    --cc=george.dunlap@citrix.com \
    --cc=julien.grall@arm.com \
    --cc=sergey.dyasli@citrix.com \
    --cc=tim@xen.org \
    --cc=xen-devel@lists.xen.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.