From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:48970) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WN8vk-0002c2-Gf for qemu-devel@nongnu.org; Mon, 10 Mar 2014 18:44:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WN8ve-0005f7-Hz for qemu-devel@nongnu.org; Mon, 10 Mar 2014 18:44:20 -0400 Received: from mx1.redhat.com ([209.132.183.28]:49251) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WN8ve-0005eo-AX for qemu-devel@nongnu.org; Mon, 10 Mar 2014 18:44:14 -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 s2AMiCsX019005 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Mon, 10 Mar 2014 18:44:12 -0400 From: Max Reitz Date: Mon, 10 Mar 2014 23:44:06 +0100 Message-Id: <1394491449-10897-1-git-send-email-mreitz@redhat.com> Subject: [Qemu-devel] [PATCH 0/3] qcow2: Fix crash during copy_sectors() after corruption List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Kevin Wolf , Stefan Hajnoczi , Max Reitz This series fixes a call to a NULL function pointer during copy_sectors(), if a concurrent write request triggered the corruption prevention mechanism. Max Reitz (3): qcow2: Check bs->drv in copy_sectors() block: bs->drv may be NULL in bdrv_debug_resume() iotests: Test corruption during COW request block.c | 2 +- block/qcow2-cluster.c | 4 ++++ tests/qemu-iotests/060 | 26 ++++++++++++++++++++++++++ tests/qemu-iotests/060.out | 15 +++++++++++++++ 4 files changed, 46 insertions(+), 1 deletion(-) -- 1.9.0