Received: from eggs.gnu.org ([2001:4830:134:3::10]:59944) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xjm0x-0008GU-Tj for qemu-devel@nongnu.org; Thu, 30 Oct 2014 05:27:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xjm0r-0004SF-Q2 for qemu-devel@nongnu.org; Thu, 30 Oct 2014 05:27:31 -0400 Received: from mx1.redhat.com ([209.132.183.28]:33367) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xjm0r-0004Rx-IW for qemu-devel@nongnu.org; Thu, 30 Oct 2014 05:27:25 -0400 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s9U9ROZr007628 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL) for ; Thu, 30 Oct 2014 05:27:24 -0400 Date: Thu, 30 Oct 2014 09:27:22 +0000 From: Stefan Hajnoczi Message-ID: <20141030092722.GB30746@stefanha-thinkpad.redhat.com> References: <1414512220-19058-1-git-send-email-armbru@redhat.com> <1414512220-19058-3-git-send-email-armbru@redhat.com> <5452001E.9070907@redhat.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="MfFXiAuoTsnnDAfZ" Content-Disposition: inline In-Reply-To: <5452001E.9070907@redhat.com> Subject: Re: [Qemu-devel] [PATCH RFC 2/2] block: Warn on insecure format probing List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Max Reitz Cc: kwolf@redhat.com, jcody@redhat.com, Markus Armbruster , qemu-devel@nongnu.org --MfFXiAuoTsnnDAfZ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Thu, Oct 30, 2014 at 10:08:46AM +0100, Max Reitz wrote: > Also, I like Kevin's proposal/Anthony's approach a lot more because of its > principle. If a guest can overwrite the beginning of the image so it looks > like an image format, that's the real bug. Afterwards, anyone will recognize > that image as non-raw and they'd be correct. No, it is not a guest bug. The guest may legitimately use raw devices that contain image format data. Imagine tools similar to libguestfs. It's perfectly okay for them to lay out image format data onto a raw device. Probing is the problem, not putting image format data onto a raw device. Stefan --MfFXiAuoTsnnDAfZ Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQEcBAEBAgAGBQJUUgR6AAoJEJykq7OBq3PIUaQH/iKtolCcsXToLai84TvHCTw5 v3TNff7s+NaxQxjDsPFtVMW0WWtB1fDbv03eGdb+5rQDhY96jTaY6JfeqFyOkILK rNRq8TZD+j3X0u/lbxwT8gYWtftKHnYnOPcyaMkNZz1lZqXIhznnnYa8EMgdci/L lMk0+Mcu/2IjyoGwEAnWDKsRoqHiIkT5/fUhW6/OZXCVeJDTPBXD8ISaBgpbghr+ BPJmEHVIIU21Ct1OJ2emKZsnLrq1P7F8C7I+et7Av4XqET3kWn9nsfLDUPWHGuOM nxyiMN3P5FRoVb1EvYIe7AWCkgeqCZsz5mP0HenpNVygmDW1xKNd1dwb1Cn6jMI= =hLV9 -----END PGP SIGNATURE----- --MfFXiAuoTsnnDAfZ--