Skip to content

block: Fix qiov sizes

Kevin Wolf qemu-devel 1 version Applied

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

  1. v1 Latest4 patches 7 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/4block: Make qiov match the request size until EOFblock.c+10 -11 reply
2/4qcow2: Make qiov match request size until backing file EOFblock/qcow2.c+10 -11 reply
3/4qed: Make qiov match request size until backing file EOFblock/qed.c block/qed.h+24 -34 replies
4/4block: Assert qiov length matches request lengthblock.c block/raw-posix.c+13 -41 reply

Reviews trailers per patch

All 4 patches have a Reviewed-by or Acked-by.

PatchMax ReitzEric Blake
1/4R-b
2/4R-b
3/4R-b
4/4R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

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