From: Markus Armbruster <armbru@redhat.com>
To: Ian Jackson <Ian.Jackson@eu.citrix.com>
Cc: "Eren Türkay" <turkay.eren@gmail.com>, xen-devel@lists.xensource.com
Subject: Re: [PATCH] QEMU "drive_init()" Disk Format Security Bypass
Date: Mon, 16 Jun 2008 17:38:22 +0200 [thread overview]
Message-ID: <87tzfto0ep.fsf@pike.pond.sub.org> (raw)
In-Reply-To: <18514.36535.961030.856448@mariner.uk.xensource.com> (Ian Jackson's message of "Fri\, 13 Jun 2008 16\:13\:59 +0100")
Ian Jackson <Ian.Jackson@eu.citrix.com> writes:
> I wrote:
>> Markus Armbruster writes ("Re: [Xen-devel] [PATCH] QEMU "drive_init()" Disk Format Security Bypass"):
>> > The -usbdevice argument is ultimately processed by usb_device_add(),
>> > which calls usb_msd_init() to do the real work. I think we get (1),
>> > but not (2) there, i.e. your change breaks raw format USB disks.
>>
>> That's quite likely. I hadn't spotted that separate arrangement. The
>> best thing to do would be probably be to cross-port the format
>> parameter code which upstream have introduced in this area to (mostly)
>> fix the bug in their version. I'll look into it.
>
> The code in current qemu and in ioemu are very different in this area.
> The machinery to which qemu added the format=... parameter doesn't
> exist in ioemu and I don't think we want to backport that.
>
> Instead below is a batch which is intended to make
> usbdevice = "disk:<filename>"
> expect a raw device (as this probably is the most usual case) and
> usbdevice = "disk-qcow:<filename>"
> expect a COW image (autodetected, probably qcow2).
>
> This latter will eventually have to change to bring things into line
> with recent qemu, but we can probably provide backwards compatibility
> at that time.
>
> Markus and Eren: could you please try this and let me know if it
> solves the problem for you ? I don't have a handy test setup here
> right now. If you can't conveniently test it let me know and I'll do
> it.
>
> Regards,
> Ian.
[...]
Patch looks sane. I backported it to F-8 and verified that:
1. usbdevice = "disk:IMG" opens the image IMG raw regardless of file
contents. Same for monitor command usb_add disk:IMG.
2. usbdevice = "disk-qcow:IMG" opens the qcow image IMG correctly.
Same for monitor command usb_add disk-qcow:IMG.
I believe monitor command change is still broken. I tried "change fda
IMG", with a qcow image IMG, and it was opened qcow. But changing to
a raw image failed; I think that feature was broken by by your
security fix.
next prev parent reply other threads:[~2008-06-16 15:38 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-05-08 15:00 QEMU "drive_init()" Disk Format Security Bypass Eren Türkay
2008-05-08 16:58 ` Ian Jackson
2008-05-08 17:12 ` Eren Türkay
2008-05-08 17:12 ` Daniel P. Berrange
2008-05-08 17:18 ` Keir Fraser
2008-05-08 17:19 ` Ian Jackson
2008-05-08 17:23 ` Daniel P. Berrange
2008-05-08 17:27 ` Ian Jackson
2008-05-08 17:30 ` Daniel P. Berrange
2008-05-09 15:54 ` [PATCH] " Ian Jackson
2008-05-13 17:16 ` Ian Jackson
2008-05-30 9:00 ` Markus Armbruster
2008-05-30 13:37 ` Ian Jackson
2008-06-13 15:13 ` Ian Jackson
2008-06-16 15:38 ` Markus Armbruster [this message]
2008-06-16 15:45 ` Ian Jackson
2008-06-16 16:37 ` Markus Armbruster
2008-06-16 16:55 ` Ian Jackson
2008-06-17 16:58 ` Markus Armbruster
2008-06-17 16:59 ` [PATCH] ioemu: Disable format auto-probing in monitor command change Markus Armbruster
2008-06-18 10:22 ` Ian Jackson
2008-06-18 11:36 ` Markus Armbruster
2008-06-13 15:17 ` [PATCH] QEMU "drive_init()" Disk Format Security Bypass 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=87tzfto0ep.fsf@pike.pond.sub.org \
--to=armbru@redhat.com \
--cc=Ian.Jackson@eu.citrix.com \
--cc=turkay.eren@gmail.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.