xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: Andrew Cooper <andrew.cooper3@citrix.com>
To: Wei Liu <wei.liu2@citrix.com>
Cc: Juergen Gross <jgross@suse.com>,
	stefano.stabellini@eu.citrix.com, ian.jackson@eu.citrix.com,
	Ian.Campbell@citrix.com, xen-devel@lists.xen.org
Subject: Re: [PATCH] libxc: remove most of tools/libxc/xc_dom_compat_linux.c
Date: Tue, 6 Oct 2015 14:06:59 +0100	[thread overview]
Message-ID: <5613C773.5030901@citrix.com> (raw)
In-Reply-To: <20151006125858.GB29124@zion.uk.xensource.com>

On 06/10/15 13:58, Wei Liu wrote:
> On Tue, Oct 06, 2015 at 01:52:16PM +0100, Andrew Cooper wrote:
>> On 06/10/15 12:35, Juergen Gross wrote:
>>> In tools/libxc/xc_dom_compat_linux.c only xc_linux_build() is currently
>>> being used by an in-tree component (qemu-xen). All other functions are
>>> superfluous wrappers of the domain builder which can be removed.
>>>
>>> Suggested-by: Ian Campbell <ian.campbell@citrix.com>
>>> Signed-off-by: Juergen Gross <jgross@suse.com>
>> Sorry, but NACK.  They are *not* superfluous.
>>
>> XenServer uses them; xc_dom_linux_build() is the only way to apply
>> XSA-25 size restrictions to PV kernels and initrds.
>>
> Could you explain a bit more about this? How could this particular
> function apply restrictions?
>
> Unfortunately XSA-25 is not on XSA page so I have no idea what that is.
>
> Wei.

Older XSAs are listed on the wiki
http://wiki.xen.org/wiki/Security_Announcements

XSA-25 introduced xc_dom_{kernel,ramdisk}_max_size() to set upper
decompression limits on the kernel and initrd.

To use them, a struct xc_dom_image *dom is needed, which means the only
safe way of constructing PV domains is

xc_dom_allocate()
xc_dom_kernel_max_size()
xc_dom_ramdisk_max_size()
xc_dom_linux_build()

To have the decompression limits in place before decompression starts.

~Andrew

  reply	other threads:[~2015-10-06 13:06 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-06 11:35 [PATCH] libxc: remove most of tools/libxc/xc_dom_compat_linux.c Juergen Gross
2015-10-06 12:52 ` Andrew Cooper
2015-10-06 12:58   ` Wei Liu
2015-10-06 13:06     ` Andrew Cooper [this message]
2015-10-06 13:17       ` Ian Campbell
2015-10-19 10:36         ` Juergen Gross
2015-10-22 15:22           ` Ian Jackson
2015-10-22 15:38             ` Ian Campbell
2015-10-23  7:15               ` Juergen Gross
2015-10-23  9:42                 ` Ian Campbell
2015-10-23  9:53                   ` Juergen Gross
2015-10-23 10:11                     ` Ian Campbell
2015-10-22 15:51           ` Andrew Cooper
2015-10-22 15:21         ` Wei Liu

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=5613C773.5030901@citrix.com \
    --to=andrew.cooper3@citrix.com \
    --cc=Ian.Campbell@citrix.com \
    --cc=ian.jackson@eu.citrix.com \
    --cc=jgross@suse.com \
    --cc=stefano.stabellini@eu.citrix.com \
    --cc=wei.liu2@citrix.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).