xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: Julien Grall <julien.grall@linaro.org>
To: Andrew Cooper <andrew.cooper3@citrix.com>,
	Xen-devel <xen-devel@lists.xen.org>
Cc: Jan Beulich <jbeulich@suse.com>
Subject: Re: [PATCH for-4.10] xen/domctl: Fix Xen heap leak via XEN_DOMCTL_getvcpucontext
Date: Mon, 9 Oct 2017 12:40:51 +0100	[thread overview]
Message-ID: <f6b11151-5cad-3da7-4cf0-d46202cd3fb0@linaro.org> (raw)
In-Reply-To: <1507543638-13706-1-git-send-email-andrew.cooper3@citrix.com>

Hi Andrew,

On 09/10/17 11:07, Andrew Cooper wrote:
> The backing structure for XEN_DOMCTL_getvcpucontext is only zeroed in the x86
> HVM case.  At the very least, this means that ARM returns junk through its
> flags field (as it is only ever conditionally or'd into), and x86 PV leaks
> data through gdt_frames[14...15].  (An exhaustive search for other leaks
> hasn't been performed).
> 
> Unconditionally zero the memory upon allocation, and forgo the double clear
> for x86 HVM.  These hypercalls are not on hotpaths.
> 
> Note that this does not qualify for an XSA.  Per XSA-77,
> XEN_DOMCTL_getvcpucontext is unsafe for disaggregation, meaning that only the
> control domain can use this hypercall.
> 
> Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
> Reviewed-by: Jan Beulich <jbeulich@suse.com>
> ---
> CC: Julien Grall <julien.grall@arm.com>

Release-Acked-by: Julien Grall <julien.grall@linaro.org>

Cheers,

-- 
Julien Grall

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

      reply	other threads:[~2017-10-09 11:40 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-10-09 10:07 [PATCH for-4.10] xen/domctl: Fix Xen heap leak via XEN_DOMCTL_getvcpucontext Andrew Cooper
2017-10-09 11:40 ` Julien Grall [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=f6b11151-5cad-3da7-4cf0-d46202cd3fb0@linaro.org \
    --to=julien.grall@linaro.org \
    --cc=andrew.cooper3@citrix.com \
    --cc=jbeulich@suse.com \
    --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 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).