From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41509) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XkESP-0002DX-RX for qemu-devel@nongnu.org; Fri, 31 Oct 2014 11:50:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XjooA-0004oC-JB for qemu-devel@nongnu.org; Thu, 30 Oct 2014 08:26:35 -0400 Received: from mx1.redhat.com ([209.132.183.28]:39926) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XjooA-0004o5-CA for qemu-devel@nongnu.org; Thu, 30 Oct 2014 08:26:30 -0400 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s9UCQSsR002725 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL) for ; Thu, 30 Oct 2014 08:26:29 -0400 From: Kevin Wolf Date: Thu, 30 Oct 2014 13:26:12 +0100 Message-Id: <1414671976-5353-1-git-send-email-kwolf@redhat.com> Subject: [Qemu-devel] [PATCH 0/4] raw: Prohibit dangerous writes for probed images List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: kwolf@redhat.com, jcody@redhat.com, armbru@redhat.com, mreitz@redhat.com, stefanha@redhat.com See the commit message of patch 3 for the why and how. Old relevant discussions: October 2014: '[PATCH RFC 0/2] block: Warn on insecure format probing' http://lists.nongnu.org/archive/html/qemu-devel/2014-10/msg03440.html August 2014: '[PATCH 0/3] vpc: support probing of fixed size images' https://lists.nongnu.org/archive/html/qemu-devel/2014-08/msg02456.html July 2010: 'Make default invocation of block drivers safer (v3)' http://patchwork.ozlabs.org/patch/58980/ Kevin Wolf (3): block: Read only one sector for format probing raw: Prohibit dangerous writes for probed images qemu-iotests: Test writing non-raw image headers to raw image Markus Armbruster (1): block: Factor bdrv_probe_all() out of find_image_format() block.c | 48 ++++++++++++----- block/raw_bsd.c | 46 +++++++++++++++- include/block/block_int.h | 5 ++ tests/qemu-iotests/109 | 100 +++++++++++++++++++++++++++++++++++ tests/qemu-iotests/109.out | 128 +++++++++++++++++++++++++++++++++++++++++++++ tests/qemu-iotests/group | 1 + 6 files changed, 313 insertions(+), 15 deletions(-) create mode 100755 tests/qemu-iotests/109 create mode 100644 tests/qemu-iotests/109.out -- 1.8.3.1