From: George Dunlap <george.dunlap@eu.citrix.com>
To: Ian Campbell <Ian.Campbell@citrix.com>
Cc: Stefano Stabellini <Stefano.Stabellini@eu.citrix.com>,
Ian Jackson <Ian.Jackson@eu.citrix.com>,
"xen-devel@lists.xen.org" <xen-devel@lists.xen.org>
Subject: Re: BUG 4.2.2: xl cd-insert corrupts xenstore state
Date: Fri, 26 Apr 2013 15:40:26 +0100 [thread overview]
Message-ID: <517A91DA.6040007@eu.citrix.com> (raw)
In-Reply-To: <1366987165.3142.126.camel@zakaz.uk.xensource.com>
On 26/04/13 15:39, Ian Campbell wrote:
> On Fri, 2013-04-26 at 15:34 +0100, George Dunlap wrote:
>> $ git checkout RELEASE-4.2.2
>> $ git clean -ffdx
>>
>> [do a build, install, reboot]
>>
>> $ xl create a0
>>
>> $ xl cd-eject a0 hdc
>>
>> [However, the guest OS still sees the CD inserted]
>>
>> $ xl block-list a0
>> Segmentation fault
>>
>> $ xl cd-insert a0 hdc file:/images/xs-tools-6.0.0.iso
>> Segmentation fault
> Can you get a backtrace out of gdb?
Turns out I already fixed this once!
commit c3556e2a1aee3c9b7dda5d57e85e8867fff1b9da
Author: George Dunlap <george.dunlap@eu.citrix.com>
Commit: George Dunlap <george.dunlap@eu.citrix.com>
libxl: Fix bug in libxl_cdrom_insert, make more robust against bad
xenstore data
libxl_cdrom_insert was failing to initialize the backend type,
resulting in the wrong default backend. The result was not only that
the CD was not inserted properly, but also that some improper xenstore
entries were created, causing further block commands to fail.
This patch fixes the bug by setting the disk backend type based on the
type of the existing device.
It also makes the system more robust by checking to see that it has
got a valid path before proceeding to write a partial xenstore entry.
Signed-off-by: George Dunlap <george.dunlap@eu.citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
Committed-by: Ian Campbell <ian.campbell@citrix.com>
next prev parent reply other threads:[~2013-04-26 14:40 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-04-26 14:34 BUG 4.2.2: xl cd-insert corrupts xenstore state George Dunlap
2013-04-26 14:37 ` George Dunlap
2013-04-26 14:39 ` Ian Campbell
2013-04-26 14:40 ` George Dunlap [this message]
2013-05-01 15:59 ` Ian Jackson
2013-05-01 16:07 ` George Dunlap
2013-05-02 15:14 ` Ian Jackson
2013-11-12 18:14 ` Ian Jackson
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=517A91DA.6040007@eu.citrix.com \
--to=george.dunlap@eu.citrix.com \
--cc=Ian.Campbell@citrix.com \
--cc=Ian.Jackson@eu.citrix.com \
--cc=Stefano.Stabellini@eu.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 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.