summary refs log tree commit diff stats
path: root/gitlab/issues/target_missing/host_missing/accel_missing/1460.toml
diff options
context:
space:
mode:
Diffstat (limited to 'gitlab/issues/target_missing/host_missing/accel_missing/1460.toml')
-rw-r--r--gitlab/issues/target_missing/host_missing/accel_missing/1460.toml17
1 files changed, 17 insertions, 0 deletions
diff --git a/gitlab/issues/target_missing/host_missing/accel_missing/1460.toml b/gitlab/issues/target_missing/host_missing/accel_missing/1460.toml
new file mode 100644
index 00000000..0c368a86
--- /dev/null
+++ b/gitlab/issues/target_missing/host_missing/accel_missing/1460.toml
@@ -0,0 +1,17 @@
+id = 1460
+title = "block_load fails if last block is included in snapshot and block device isn't multiple of BLK_MIG_BLOCK_SIZE"
+state = "closed"
+created_at = "2023-01-23T23:54:50.430Z"
+closed_at = "2024-05-10T13:19:38.529Z"
+labels = ["Migration"]
+url = "https://gitlab.com/qemu-project/qemu/-/issues/1460"
+host-os = "Linux"
+host-arch = "N/A"
+qemu-version = "7.x"
+guest-os = "n/a"
+guest-arch = "n/a"
+description = """The `block_load` function in `migration/block.c` has a bug where `blk_pwrite` or `blk_pwrite_zeroes` always write `cluster_size` bytes. If the underlying device is not a multiple of `BLK_MIG_BLOCK_SIZE`, the write will fail with -EIO when trying to write past the end of the device, as `blk_check_byte_request` checks the length of the device.
+
+This can be fixed by ensuring that `cur_addr` + write length passed to `blk_pwrite`/`blk_pwrite_zeroes` never exceeds the total length of the block device."""
+reproduce = "n/a"
+additional = "n/a"