From: Christoph Egger <Christoph.Egger@amd.com>
To: Gianni Tedesco <gianni.tedesco@citrix.com>
Cc: "xen-devel@lists.xensource.com" <xen-devel@lists.xensource.com>,
Ian Jackson <Ian.Jackson@eu.citrix.com>,
Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Subject: Re: libxl: xl create segfaults
Date: Thu, 23 Sep 2010 18:18:05 +0200 [thread overview]
Message-ID: <201009231818.06970.Christoph.Egger@amd.com> (raw)
In-Reply-To: <1285257340.432.7.camel@qabil.uk.xensource.com>
On Thursday 23 September 2010 17:55:39 Gianni Tedesco wrote:
> On Thu, 2010-09-23 at 11:27 +0100, Christoph Egger wrote:
> > Hi!
> >
> > 'xl create' crashes due to stack corruption.
>
> ---8<-------------------------------------------
>
> xl: Fix stack corruption caused by non-terminated call to libxl__xs_writev
Confirmed. This fixes the crash. 'xl create' now hangs in a loop. I will have
a look at this later.
>
> Signed-off-by: Gianni Tedesco <gianni.tedesco@citrix.com>
>
> diff -r 50c1cc209f8f tools/libxl/libxl.c
> --- a/tools/libxl/libxl.c Wed Sep 22 18:29:24 2010 +0100
> +++ b/tools/libxl/libxl.c Thu Sep 23 16:54:09 2010 +0100
> @@ -1718,7 +1718,7 @@ retry_transaction:
> vm_path = libxl__xs_read(&gc,t,libxl__sprintf(&gc, "%s/vm",
> p->dom_path)); if (vm_path) {
> /* Now write the vncpassword into it. */
> - pass_stuff = libxl__calloc(&gc, 2, sizeof(char *));
> + pass_stuff = libxl__calloc(&gc, 3, sizeof(char *));
> pass_stuff[0] = "vncpasswd";
> pass_stuff[1] = info->vncpasswd;
> libxl__xs_writev(&gc,t,vm_path,pass_stuff);
--
---to satisfy European Law for business letters:
Advanced Micro Devices GmbH
Einsteinring 24, 85609 Dornach b. Muenchen
Geschaeftsfuehrer: Alberto Bozzo, Andrew Bowd
Sitz: Dornach, Gemeinde Aschheim, Landkreis Muenchen
Registergericht Muenchen, HRB Nr. 43632
next prev parent reply other threads:[~2010-09-23 16:18 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-09-23 10:27 libxl: xl create segfaults Christoph Egger
2010-09-23 15:55 ` Gianni Tedesco
2010-09-23 16:18 ` Christoph Egger [this message]
2010-09-23 17:06 ` Gianni Tedesco
2010-09-28 13:27 ` Christoph Egger
2010-10-01 17:41 ` Stefano Stabellini
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=201009231818.06970.Christoph.Egger@amd.com \
--to=christoph.egger@amd.com \
--cc=Ian.Jackson@eu.citrix.com \
--cc=gianni.tedesco@citrix.com \
--cc=stefano.stabellini@eu.citrix.com \
--cc=xen-devel@lists.xensource.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 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.