From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:52668) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YaP43-00061C-3i for qemu-devel@nongnu.org; Tue, 24 Mar 2015 09:40:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YaP3y-0006cM-T9 for qemu-devel@nongnu.org; Tue, 24 Mar 2015 09:40:15 -0400 Date: Tue, 24 Mar 2015 13:40:07 +0000 From: Stefan Hajnoczi Message-ID: <20150324134007.GC1493@stefanha-thinkpad.redhat.com> References: <1427160230-4489-1-git-send-email-famz@redhat.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="2/5bycvrmDh4d1IB" Content-Disposition: inline In-Reply-To: <1427160230-4489-1-git-send-email-famz@redhat.com> Subject: Re: [Qemu-devel] [PATCH v2 0/2] block: Fix unaligned zero write List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Fam Zheng Cc: Kevin Wolf , qemu-block@nongnu.org, pl@kamp.de, qemu-devel@nongnu.org, qemu-stable@nongnu.org, Stefan Hajnoczi --2/5bycvrmDh4d1IB Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Mar 24, 2015 at 09:23:48AM +0800, Fam Zheng wrote: > This fixes a segfault when doing unaligned zero write to an image that is= 4k > aligned. >=20 > v2: Don't drop the unset of UNMAP flag. [Stefan, Peter] >=20 > Reproducer: >=20 > $ (echo "open -o file.align=3D4k blkdebug::img"; echo "write -z 512 1= 024") | qemu-io >=20 > Fam Zheng (2): > block: Fix unaligned zero write > qemu-iotests: Test unaligned 4k zero write >=20 > block.c | 45 ++++++++++++++++++++++++++++++++++++++--= ---- > tests/qemu-iotests/033 | 47 +++++++++++++++++++++++++++++-----------= ------ > tests/qemu-iotests/033.out | 26 +++++++++++++++++++++++++ > 3 files changed, 95 insertions(+), 23 deletions(-) Thanks, applied to my block tree: https://github.com/stefanha/qemu/commits/block Stefan --2/5bycvrmDh4d1IB Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQEcBAEBAgAGBQJVEWk3AAoJEJykq7OBq3PIgZkH/2U/ROF7xwDuHrWtFPR3KDmC mbrydvPsZcsUY2j1Hd4F+yJDCCMwCWeiPgYyvC92FFn7RN1bHdeYyV7QkXJbltYe qyUb9+1a6D04NycBdr1j2UFvcmJdAasfdfs6vz3EwPifrCn0GZR2wtxXzsv7SIi3 nlHOUBFs4iY4nEUNzsVgR9hTUHv5LHNg79UfZU9uvROGgLYuK/4nIaCXJYu2x+fn sLFj5qo6RD957qDbe+EtrE7x2v9umExQGQRhS+hX9+MuUNvUz+tiD1fYSg4k+d2h e9pYlr/4O6T2+DbHY4Ev7o+orJ9nrHH6cwdkJQF7XY+JwTm0CplJ89JkumAvq+o= =s6n6 -----END PGP SIGNATURE----- --2/5bycvrmDh4d1IB--