qemu/block
Kevin Wolf 053965c7ff block/raw-posix: Abort on pread beyond end of non-growable file
This shouldn't happen under any normal circumstances. However, it looks like
it's possible to achieve this with corrupted images. Without this patch
raw_pread is hanging in an endless loop in such cases.

The patch is not affecting growable files, for which such reads happen in
normal use cases. raw_pread_aligned already handles these cases and won't
return zero in the first place.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
2010-01-26 16:41:07 -06:00
..
bochs.c Read-only device changed to opens it's file for read-only. 2010-01-26 15:42:01 -06:00
cloop.c
cow.c block/cow.c: fix warnings with _FORTIFY_SOURCE 2010-01-26 14:59:20 -06:00
curl.c
dmg.c dmg: fix ->open failure 2010-01-11 13:41:00 -06:00
nbd.c block: kill BDRV_O_CREAT 2010-01-26 15:42:02 -06:00
parallels.c Read-only device changed to opens it's file for read-only. 2010-01-26 15:42:01 -06:00
qcow2-cluster.c qcow2: Don't ignore qcow2_alloc_clusters return value 2010-01-26 14:59:19 -06:00
qcow2-refcount.c qcow2: Don't ignore qcow2_alloc_clusters return value 2010-01-26 14:59:19 -06:00
qcow2-snapshot.c qcow2: Don't ignore qcow2_alloc_clusters return value 2010-01-26 14:59:19 -06:00
qcow2.c qcow2: rename two QCowAIOCB members 2010-01-26 15:45:00 -06:00
qcow2.h qcow2: Return 0/-errno in qcow2_alloc_cluster_offset 2010-01-26 14:59:19 -06:00
qcow.c block/qcow.c: fix warnings with _FORTIFY_SOURCE 2010-01-26 14:59:20 -06:00
raw-posix-aio.h Remove aio_ctx from paio_* interface 2009-10-30 08:39:34 -05:00
raw-posix.c block/raw-posix: Abort on pread beyond end of non-growable file 2010-01-26 16:41:07 -06:00
raw-win32.c block: kill BDRV_O_CREAT 2010-01-26 15:42:02 -06:00
vdi.c block/vdi: allow disk sizes not multiple of block size 2010-01-08 09:58:40 -06:00
vmdk.c block/vmdk.o: fix warnings with _FORTIFY_SOURCE 2010-01-26 14:59:20 -06:00
vpc.c
vvfat.c Ask for read-write permissions when opening files 2010-01-26 15:42:01 -06:00