qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH 0/2] block: Fix unaligned zero write
@ 2015-03-23  4:46 Fam Zheng
  2015-03-23  4:46 ` [Qemu-devel] [PATCH 1/2] " Fam Zheng
  2015-03-23  4:46 ` [Qemu-devel] [PATCH 2/2] qemu-iotests: Test unaligned 4k " Fam Zheng
  0 siblings, 2 replies; 6+ messages in thread
From: Fam Zheng @ 2015-03-23  4:46 UTC (permalink / raw)
  To: qemu-devel; +Cc: Kevin Wolf, qemu-block, qemu-stable, Stefan Hajnoczi

This fixes a segfault when doing unaligned zero write to a image that is 4k
aligned.

Reproducer:

    $ (echo "open -o file.align=4k blkdebug::img"; echo "write -z 512 1024") | qemu-io



Fam Zheng (2):
  block: Fix unaligned zero write
  qemu-iotests: Test unaligned 4k zero write

 block.c                    | 51 ++++++++++++++++++++++++++++++++++++++--------
 tests/qemu-iotests/033     | 47 ++++++++++++++++++++++++++----------------
 tests/qemu-iotests/033.out | 26 +++++++++++++++++++++++
 3 files changed, 98 insertions(+), 26 deletions(-)

-- 
2.1.0

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2015-03-24  1:19 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-03-23  4:46 [Qemu-devel] [PATCH 0/2] block: Fix unaligned zero write Fam Zheng
2015-03-23  4:46 ` [Qemu-devel] [PATCH 1/2] " Fam Zheng
2015-03-23 14:14   ` Stefan Hajnoczi
2015-03-23 14:35     ` [Qemu-devel] [Qemu-stable] " Peter Lieven
2015-03-24  1:19     ` [Qemu-devel] " Fam Zheng
2015-03-23  4:46 ` [Qemu-devel] [PATCH 2/2] qemu-iotests: Test unaligned 4k " Fam Zheng

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).