From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:36795) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YDJG8-000792-Jf for qemu-devel@nongnu.org; Mon, 19 Jan 2015 15:49:17 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YDJFz-0002S7-Q1 for qemu-devel@nongnu.org; Mon, 19 Jan 2015 15:49:16 -0500 Received: from mx1.redhat.com ([209.132.183.28]:34647) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YDJFz-0002Rm-He for qemu-devel@nongnu.org; Mon, 19 Jan 2015 15:49:07 -0500 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 t0JKn5DS009711 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL) for ; Mon, 19 Jan 2015 15:49:06 -0500 From: Max Reitz Date: Mon, 19 Jan 2015 15:49:02 -0500 Message-Id: <1421700544-24635-1-git-send-email-mreitz@redhat.com> Subject: [Qemu-devel] [PATCH 0/2] qcow2: Add two more unalignment checks List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Kevin Wolf , Stefan Hajnoczi , Max Reitz With the series adding unalignment checks and the series reworking the zero cluster expansion code overlapping, the unalignment checks have not been implemented in the latter code. This series fixes it. There are other places which would require unalignment checks, like the offsets of L1 tables, especially for snapshots; but because it would be best to add these checks in the function which reads the snapshot table, this would make images with broken snapshots completely unusable, which is something I opted to avoid for now. Ideally, we need to make the qcow2 repair function repair such cases, but until that is done there is not much we can do about them. Max Reitz (2): qcow2: Add two more unalignment checks iotests: Add tests for more corruption cases block/qcow2-cluster.c | 21 +++++++++++++++++++++ tests/qemu-iotests/060 | 15 +++++++++++++++ tests/qemu-iotests/060.out | 13 +++++++++++++ 3 files changed, 49 insertions(+) -- 2.1.0