block: Fix qiov sizes
Status from this message: Applied to the block branch (with v2 of patch 3).
Get series with b4
b4 am [email protected]Versions newest first
Patches in v1 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/4 | block: Make qiov match the request size until EOFblock.c | +10 | 1 reply | |
| 2/4 | qcow2: Make qiov match request size until backing file EOFblock/ | +10 | 1 reply | |
| 3/4 | qed: Make qiov match request size until backing file EOFblock/ block/ | +24 | 4 replies | |
| 4/4 | block: Assert qiov length matches request lengthblock.c block/ | +13 | 1 reply |
Reviews trailers per patch
All 4 patches have a Reviewed-by or Acked-by.
| Patch | Max Reitz | Eric Blake |
|---|---|---|
| 1/4 | R-b | |
| 2/4 | R-b | |
| 3/4 | R-b | |
| 4/4 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [Qemu-devel] [PATCH 0/4] block: Fix qiov sizes
Some callers use larger qiovs than nb_sectors for their read requests. This is bad because raw-posix uses nb_sectors to allocate a bounce buffer and then copies the whole iov over.
This series fixes some more cases (mirroring was already fixed earlier this week) and adds assertions to catch any other offenders.
Kevin Wolf (4):
block: Make qiov match the request size until EOF
qcow2: Make qiov match request size until backing file EOF
qed: Make qiov match request size until backing file EOF
block: Assert qiov length matches request length
block.c | 13 ++++++++++++- block/qcow2.c | 11 ++++++++++- block/qed.c | 26 +++++++++++++++++++++++--- block/qed.h | 1 + block/raw-posix.c | 15 +++++++++++---- 5 files changed, 57 insertions(+), 9 deletions(-)
Signature · 1 line
1.8.3.1