Re: [Qemu-devel] [PATCH] block/raw-posix: Abort on pread beyond end of non-growable file

2010-01-26 Thread Anthony Liguori
On 01/22/2010 07:26 AM, Kevin Wolf wrote: 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 whi

[Qemu-devel] [PATCH] block/raw-posix: Abort on pread beyond end of non-growable file

2010-01-22 Thread Kevin Wolf
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. ra