All of lore.kernel.org
 help / color / mirror / Atom feed
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: Fri, 30 May 2008 11:00:02 +0200	[thread overview]
Message-ID: <8763sw9nfx.fsf@pike.pond.sub.org> (raw)
In-Reply-To: <18473.52451.967004.377867@mariner.uk.xensource.com> (Ian Jackson's message of "Tue\, 13 May 2008 18\:16\:19 +0100")

I'm looking at xen-unstable cset 17606 and 17646.  If I understand
your patches correctly, you attack the security problem in two places:

(1) make format probing never return raw, and

(2) provide means to specify the format explicitly, bypassing probing.

You put (2) in xenstore_parse_domain_config().  I can see how that
works for block devices defined in the domain configuration.  But what
about USB disks?  I created a guest with the following settings:

    usb = 1
    usbdevice = "disk:/var/lib/xen/images/usbkey.img"

This duly started qemu with arguments

    -usb -usbdevice disk:/var/lib/xen/images/usbkey.img

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.

Monitor command "usb_add" also runs usb_device_add(), so it should
have the same problem.

I suspect monitor command "change" has the same problem, too.

  reply	other threads:[~2008-05-30  9:00 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 [this message]
2008-05-30 13:37                   ` Ian Jackson
2008-06-13 15:13                     ` Ian Jackson
2008-06-16 15:38                       ` Markus Armbruster
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=8763sw9nfx.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.