Re: [Qemu-devel] [PATCH for-3.1?] file-posix: Better checks of 64-bit copy_range

2018-11-15 Thread Eric Blake
On 11/14/18 3:05 PM, Eric Blake wrote: file-posix.c was taking a 64-bit bytes in raw_co_copy_range_to(), passing it through a 32-bit parameter of paio_submit_co_full(), then widening it back to size_t when assigning into acb->aio_nbytes. Looking at io.c, I can't quickly tell if

[Qemu-devel] [PATCH for-3.1?] file-posix: Better checks of 64-bit copy_range

2018-11-14 Thread Eric Blake
file-posix.c was taking a 64-bit bytes in raw_co_copy_range_to(), passing it through a 32-bit parameter of paio_submit_co_full(), then widening it back to size_t when assigning into acb->aio_nbytes. Looking at io.c, I can't quickly tell if bdrv_co_copy_range_internal() is fragmenting things to