From: Ian Jackson Subject: Re: [PATCH] QEMU "drive_init()" Disk Format Security Bypass Date: Fri, 30 May 2008 14:37:29 +0100 Message-ID: <18496.793.632548.533855@mariner.uk.xensource.com> References: <200805081800.24064.turkay.eren@gmail.com> <18467.12572.126574.502777@mariner.uk.xensource.com> <20080508171255.GA31908@redhat.com> <18467.13858.203078.97403@mariner.uk.xensource.com> <20080508172304.GB31908@redhat.com> <18467.14318.921215.768838@mariner.uk.xensource.com> <20080508173023.GC31908@redhat.com> <18468.29633.937355.26121@mariner.uk.xensource.com> <18473.52451.967004.377867@mariner.uk.xensource.com> <8763sw9nfx.fsf@pike.pond.sub.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <8763sw9nfx.fsf@pike.pond.sub.org> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Markus Armbruster Cc: Eren =?utf-8?Q?T=C3=BCrkay?= , xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org Markus Armbruster writes ("Re: [Xen-devel] [PATCH] QEMU "drive_init()" Disk Format Security Bypass"): > 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 Right. That's a safety catch so that there's no vulnerability in any cases I missed, of which I was definitely expecting some. > (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: ... > 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. Ian.