From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:44698) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XFUbU-0005bd-6U for qemu-devel@nongnu.org; Thu, 07 Aug 2014 16:48:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XFUbP-0006Lo-8V for qemu-devel@nongnu.org; Thu, 07 Aug 2014 16:48:04 -0400 Received: from mx1.redhat.com ([209.132.183.28]:16600) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XFUbP-0006Lg-0v for qemu-devel@nongnu.org; Thu, 07 Aug 2014 16:47:59 -0400 Received: from int-mx14.intmail.prod.int.phx2.redhat.com (int-mx14.intmail.prod.int.phx2.redhat.com [10.5.11.27]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s77KlvBh003906 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Thu, 7 Aug 2014 16:47:57 -0400 From: Max Reitz Date: Thu, 7 Aug 2014 22:47:52 +0200 Message-Id: <1407444475-19516-1-git-send-email-mreitz@redhat.com> Subject: [Qemu-devel] [PATCH 0/3] qcow2: Prevent corruption-related crashes List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Kevin Wolf , Stefan Hajnoczi , Max Reitz The first two patches in this series address https://bugs.launchpad.net/qemu/+bug/1349972. For the third patch I found it hard to write an appropriate test case (it would have to make qemu-img check repair some leaks but induce the corruption prevention at the same time). One can use the test image from the bug report above, set the refcount block offset to 0 and that works. However, the patch is simple enough that no test should be necessary. Max Reitz (3): qcow2: Catch !*host_offset for data allocation iotests: Add test for image header overlap block: Catch !bs->drv in bdrv_check() block.c | 3 +++ block/qcow2-cluster.c | 11 +++++++++++ tests/qemu-iotests/060 | 9 +++++++++ tests/qemu-iotests/060.out | 8 ++++++++ 4 files changed, 31 insertions(+) -- 2.0.3