Kevin Wolf
b0ddcbbb36
block: Fix copy-on-read crash with partial final cluster
...
If the virtual disk size isn't aligned to full clusters,
bdrv_co_do_copy_on_readv() may get pnum == 0 before having the full
cluster completed, which will let it run into an assertion failure:
qemu-io: block/io.c:1203: bdrv_co_do_copy_on_readv: Assertion `skip_bytes < pnum' failed.
Check for EOF, assert that we read at least as much as the read request
originally wanted to have (which is true at EOF because otherwise
bdrv_check_byte_request() would already have returned an error) and
return success early even though we couldn't copy the full cluster.
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
2018-07-10 10:36:15 +02:00
..
2018-06-15 16:10:11 -03:00
2018-06-11 22:19:57 +03:00
2018-02-22 15:44:07 -08:00
2018-07-05 16:57:39 +01:00
2018-06-08 14:39:24 -03:00
2018-06-08 14:39:24 -03:00
2018-06-25 16:50:48 -04:00
2018-06-08 14:39:24 -03:00
2018-03-21 15:13:40 +01:00
2018-07-05 11:25:14 +01:00
2018-07-10 10:36:15 +02:00
2018-06-20 22:13:32 +01:00
2018-06-08 14:39:24 -03:00
2018-06-21 09:21:19 -05:00
2018-06-15 14:49:44 +02:00
2018-06-28 19:05:31 +02:00
2018-07-02 15:41:17 +02:00
2018-07-02 15:41:17 +02:00
2018-07-02 15:41:17 +02:00
2018-06-11 22:19:57 +03:00
2018-02-14 11:43:41 +01:00
2018-06-08 13:17:39 -04:00
2018-02-14 11:43:41 +01:00
2018-06-29 13:02:50 +02:00
2018-06-08 13:17:39 -04:00
2018-06-22 16:33:46 +02:00
2018-06-15 14:49:44 +02:00
2018-05-04 08:27:53 +02:00
2018-05-04 08:27:53 +02:00
2018-05-04 08:27:53 +02:00
2018-05-04 08:27:53 +02:00
2018-05-04 08:27:53 +02:00
2018-06-15 14:49:44 +02:00
2018-05-04 08:27:53 +02:00
2018-05-04 08:27:53 +02:00
2018-07-03 13:04:38 +01:00
2018-07-03 13:04:38 +01:00
2018-05-04 08:27:53 +02:00
2018-05-04 08:27:53 +02:00
2018-02-14 11:43:41 +01:00
2018-02-14 11:43:41 +01:00
2018-02-14 11:43:41 +01:00
2018-06-15 14:49:44 +02:00
2018-02-14 11:43:02 +01:00
2018-06-15 14:49:44 +02:00
2018-02-09 13:50:17 +01:00
2018-06-29 12:22:28 +01:00
2018-06-04 10:15:16 +01:00
2018-05-30 13:19:14 -03:00
2018-05-20 08:48:13 +03:00
2018-05-04 08:27:53 +02:00
2018-07-05 15:59:41 +01:00
2018-02-14 11:43:41 +01:00
2018-07-06 16:18:31 +01:00
2018-05-30 13:19:14 -03:00
2018-06-08 13:15:32 +01:00
2018-07-09 14:51:34 +01:00
2018-05-04 08:27:53 +02:00
2018-02-14 11:43:41 +01:00
2018-05-04 08:27:53 +02:00
2018-06-15 07:42:55 -10:00
2018-07-03 23:18:56 +02:00
2018-05-04 08:27:53 +02:00
2018-03-12 16:12:47 +01:00
2018-02-14 11:43:41 +01:00
2018-02-14 11:43:02 +01:00
2018-03-06 14:01:27 +01:00
2018-03-13 18:06:06 +00:00
2018-03-13 18:06:06 +00:00
2018-05-04 08:27:53 +02:00
2018-02-09 13:50:17 +01:00
2018-03-27 13:05:28 +01:00
2018-07-10 10:36:15 +02:00
2018-03-02 18:39:07 +01:00
2018-05-30 13:31:01 +02:00
2018-05-30 13:31:01 +02:00
2018-06-01 15:13:46 +02:00
2018-02-09 13:52:15 +01:00
2018-02-08 09:22:03 +08:00
2018-07-03 13:04:38 +01:00
2018-07-02 15:41:10 +02:00
2018-06-18 17:04:56 +02:00
2018-03-05 10:30:15 +08:00
2018-02-15 16:54:57 +00:00
2018-03-13 18:06:06 +00:00
2018-04-06 11:28:31 +01:00
2018-03-06 10:19:05 +00:00
2018-07-02 15:41:10 +02:00
2018-05-04 08:27:53 +02:00
2018-02-09 05:05:11 +01:00
2018-07-02 15:41:10 +02:00
2018-07-05 11:25:14 +01:00
2018-06-15 07:42:55 -10:00
2018-07-05 11:25:14 +01:00
2018-06-29 12:22:28 +01:00
2018-05-04 08:27:53 +02:00
2018-05-04 08:27:53 +02:00
2018-06-15 14:49:44 +02:00
2018-02-09 13:52:15 +01:00
2018-02-10 10:45:14 +03:00
2018-05-20 08:48:13 +03:00
2018-03-13 18:06:06 +00:00
2018-05-04 08:27:53 +02:00
2018-05-04 08:27:53 +02:00
2018-06-08 13:15:32 +01:00
2018-06-06 15:44:07 -04:00
2018-03-29 17:41:03 -04:00
2018-05-20 08:38:38 +03:00
2018-06-29 12:22:28 +01:00
2018-06-06 15:44:07 -04:00
2018-06-06 15:44:07 -04:00
2018-06-06 15:44:12 -04:00
2018-02-21 07:24:50 -05:00
2018-06-06 15:44:12 -04:00
2018-06-06 15:44:12 -04:00
2018-02-14 11:43:02 +01:00
2018-02-14 11:43:41 +01:00
2018-06-12 12:07:30 +02:00
2018-05-24 21:14:11 +03:00
2018-06-29 12:22:28 +01:00
2018-02-14 11:43:41 +01:00
2018-02-14 11:43:41 +01:00
2018-05-04 08:27:53 +02:00
2018-03-12 16:12:46 +01:00
2018-05-04 08:27:53 +02:00
2018-05-04 08:27:53 +02:00