From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:59838) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e9vAt-000716-5e for qemu-devel@nongnu.org; Wed, 01 Nov 2017 11:43:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e9vAo-0005aw-63 for qemu-devel@nongnu.org; Wed, 01 Nov 2017 11:43:27 -0400 From: Alberto Garcia Date: Wed, 1 Nov 2017 17:42:21 +0200 Message-Id: Subject: [Qemu-devel] [PATCH 0/4] Misc qcow2 corruption checks List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Alberto Garcia , qemu-block@nongnu.org, Max Reitz , Kevin Wolf , Thomas Huth , "R . Nageswara Sastry" Misc qcow2 corruption checks This series contains a few checks that prevent QEMU from crashing under some scenarios with corrupted qcow2 images. The first patch solves the crash reported here: https://bugs.launchpad.net/qemu/+bug/1728615 And the others solve similar crashes that I detected in the process of fixing this one. Regards, Berto Alberto Garcia (4): qcow2: Prevent allocating refcount blocks at offset 0 qcow2: Prevent allocating L2 tables at offset 0 qcow2: Don't open images with header.refcount_table_clusters == 0 qcow2: Add iotest for an empty refcount table block/qcow2-cluster.c | 7 +++++++ block/qcow2-refcount.c | 7 +++++++ block/qcow2.c | 6 ++++++ tests/qemu-iotests/060 | 32 ++++++++++++++++++++++++++++++++ tests/qemu-iotests/060.out | 25 +++++++++++++++++++++++++ 5 files changed, 77 insertions(+) -- 2.11.0