Skip to contentSkip to conversation

Block layer patches

GIT PULL Kevin Wolf 2 participants 2 messages Aug 3

lore
Share & tools
lore

Kevin Wolf

author
#0 lore raw

The following changes since commit b428fe036233cbd15d37e3c027ab6ca4d3661a80:

Merge tag 'pull-target-arm-20260731' of https://gitlab.com/pm215/qemu into staging (2026-07-31 16:19:04 -0400)

are available in the Git repository at:

https://repo.or.cz/qemu/kevin.git for-upstream

for you to fetch changes up to 52227e25712629406c89c4902b39962f8b9b6f2c:

iotests: increase timeouts for tests to 5 minutes (2026-08-03 10:42:29 +0200)

----------------------------------------------------------------
Block layer patches

- Fix missing locking in latency histogram setters
- coroutine: fix lost wakeup in qemu_co_sleep_wake()
- floppy: Fix READ/WRITE/FORMAT/READ ID behaviour with missing medium
- qcow2: Fix crash on closing a read-only image with dirty bit set
- cloop: fix integer overflow in total_sectors calculation
- dmg: Fix out of bounds accesses (CVE-2026-65929, CVE-2026-65928)
- FUSE export: fix regression with O_TRUNC when export is not growable
- iotests: Various small fixes

----------------------------------------------------------------
Christian Quante (2):
hw/block/fdc: select the drive named by the READ ID command hw/block/fdc: report a missing address mark on an empty drive

Daniel P. Berrangé (1):
iotests: increase timeouts for tests to 5 minutes

Denis V. Lunev (8):
block/accounting: take stats->lock in latency histogram setters block/qapi: take stats->lock when reading BlockAcctStats for query-blockstats tests/unit: add reproducer for BlockAcctStats histogram locking race
qcow2: do not try to clear the dirty bit on a read-only node
iotests: run the test pool with the 'fork' start method
iotests: skip FUSE tests when FUSE is not usable iotests/migrate-bitmaps-postcopy-test: replace the timing assertion with a content check
coroutine: fix lost wakeup in qemu_co_sleep_wake()

Fiona Ebner (2):
block/export/fuse: fix regression with O_TRUNC when export is not growable
iotests: test O_TRUNC behavior for fuse exports

Stefan Hajnoczi (3):
dmg: fix out-of-bounds load in search_chunk() (CVE-2026-65929)
dmg: refuse to open files with no chunks
dmg: reject inconsistent UDRW chunk sector count and length (CVE-2026-65928)

malike (1):
block/cloop: fix integer overflow in total_sectors calculation

 include/block/accounting.h                         |   1 +
 include/qemu/coroutine.h                           |  17 +-
 block/accounting.c                                 |  11 +-
 block/cloop.c                                      |   3 +-
 block/dmg.c                                        |  36 ++++-
 block/export/fuse.c                                |  12 ++
 block/qapi.c                                       |   3 +
 block/qcow2.c                                      |   6 +-
 hw/block/fdc.c                                     |  55 ++++++-
 tests/qtest/fdc-test.c                             |  70 ++++++++-
 tests/unit/test-block-accounting.c                 | 115 ++++++++++++++
 tests/unit/test-coroutine.c                        |  53 +++++++
 util/qemu-coroutine-sleep.c                        |  53 +++++--
 tests/qemu-iotests/testrunner.py                   |   4 +-
 tests/qemu-iotests/039                             |  11 ++
 tests/qemu-iotests/039.out                         |   3 +
 tests/qemu-iotests/common.rc                       |  14 ++
 tests/qemu-iotests/meson.build                     |  15 +-
 tests/qemu-iotests/tests/file-io-error             |   4 +-
 tests/qemu-iotests/tests/fuse-allow-other          |   2 +
 tests/qemu-iotests/tests/fuse-mmap-shared          |   9 +-
 tests/qemu-iotests/tests/fuse-truncate             | 171 +++++++++++++++++++++
 tests/qemu-iotests/tests/fuse-truncate.out         |   5 +
 .../tests/migrate-bitmaps-postcopy-test            |  15 +-
 tests/unit/meson.build                             |   1 +
 25 files changed, 633 insertions(+), 56 deletions(-)
 create mode 100644 tests/unit/test-block-accounting.c
 create mode 100755 tests/qemu-iotests/tests/fuse-truncate
 create mode 100644 tests/qemu-iotests/tests/fuse-truncate.out
#1 lore raw
Quoted 16 lines · Kevin Wolf

The following changes since commit b428fe036233cbd15d37e3c027ab6ca4d3661a80:

Merge tag 'pull-target-arm-20260731' of https://gitlab.com/pm215/qemu into staging (2026-07-31 16:19:04 -0400)

are available in the Git repository at:

https://repo.or.cz/qemu/kevin.git for-upstream

for you to fetch changes up to 52227e25712629406c89c4902b39962f8b9b6f2c:

iotests: increase timeouts for tests to 5 minutes (2026-08-03 10:42:29 +0200)

----------------------------------------------------------------
Block layer patches

Quoted 7 lines

- Fix missing locking in latency histogram setters
- coroutine: fix lost wakeup in qemu_co_sleep_wake()
- floppy: Fix READ/WRITE/FORMAT/READ ID behaviour with missing medium
- qcow2: Fix crash on closing a read-only image with dirty bit set
- cloop: fix integer overflow in total_sectors calculation
- dmg: Fix out of bounds accesses (CVE-2026-65929, CVE-2026-65928)
- FUSE export: fix regression with O_TRUNC when export is not growable

The check-python-minreqs job is still failing:

tests/fuse-truncate:43: error: invalid syntax [syntax]
...
tests/fuse-truncate:43:19: E0001: Parsing failed: 'invalid syntax (<unknown>, line 43)' (syntax-error)

https://gitlab.com/qemu-project/qemu/-/jobs/15683823681#L217

You can run the job locally like this:

$ make docker-image-python
$ podman run --rm -i -v $PWD:/usr/src/qemu:z qemu/python /bin/bash -c
"cd /usr/src/qemu && make -C python check-minreqs"

The invalid syntax also prevents the fuse-truncate test from running successfully:

Quoted 1 line
Quoted 1 line
Quoted 1 line

LD_LIBRARY_PATH=/builds/qemu-project/qemu/build/subprojects/libvfio-user/lib MSAN_OPTIONS=halt_on_error=1:abort_on_error=1:print_summary=1:print_stacktrace=1 PYTHON=/builds/qemu-project/qemu/build/pyvenv/bin/python3 ASAN_OPTIONS=halt_on_error=1:abort_on_error=1:print_summary=1 UBSAN_OPTIONS=halt_on_error=1:abort_on_error=1:print_summary=1:print_stacktrace=1 RUST_BACKTRACE=1 MESON_TEST_ITERATION=1 MALLOC_PERTURB_=36 /builds/qemu-project/qemu/build/pyvenv/bin/python3 /builds/qemu-project/qemu/build/../tests/qemu-iotests/check -tap -nbd fuse-truncate --source-dir /builds/qemu-project/qemu/tests/qemu-iotests --build-dir /builds/qemu-project/qemu/build/tests/qemu-iotests

――――――――――――――――――――――――――――――――――――― ✀ ――――――――――――――――――――――――――――――――――――― stderr:

builds/qemu-project/qemu/build/scratch/raw-nbd-fuse-truncate/fuse-truncate.out.bad renamed from builds/qemu-project/qemu/tests/qemu-iotests/tests/fuse-truncate.out +1 -5
@@ -1,5 +1,4 @@
-...
-----------------------------------------------------------------------
-Ran 3 tests
-
-OK
+ File "/builds/qemu-project/qemu/tests/qemu-iotests/tests/fuse-truncate",

line 43
+ except OSError, subprocess.CalledProcessError:
+ ^
+SyntaxError: invalid syntax
(test program exited with status code 1)

https://gitlab.com/qemu-project/qemu/-/jobs/15683823663#L179

Stefan

Quoted 63 lines

- iotests: Various small fixes

----------------------------------------------------------------
Christian Quante (2):
hw/block/fdc: select the drive named by the READ ID command hw/block/fdc: report a missing address mark on an empty drive

Daniel P. Berrangé (1):
iotests: increase timeouts for tests to 5 minutes

Denis V. Lunev (8):
block/accounting: take stats->lock in latency histogram setters block/qapi: take stats->lock when reading BlockAcctStats for query-blockstats tests/unit: add reproducer for BlockAcctStats histogram locking race
qcow2: do not try to clear the dirty bit on a read-only node
iotests: run the test pool with the 'fork' start method
iotests: skip FUSE tests when FUSE is not usable iotests/migrate-bitmaps-postcopy-test: replace the timing assertion with a content check
coroutine: fix lost wakeup in qemu_co_sleep_wake()

Fiona Ebner (2):
block/export/fuse: fix regression with O_TRUNC when export is not growable
iotests: test O_TRUNC behavior for fuse exports

Stefan Hajnoczi (3):
dmg: fix out-of-bounds load in search_chunk() (CVE-2026-65929)
dmg: refuse to open files with no chunks
dmg: reject inconsistent UDRW chunk sector count and length (CVE-2026-65928)

malike (1):
block/cloop: fix integer overflow in total_sectors calculation

 include/block/accounting.h                         |   1 +
 include/qemu/coroutine.h                           |  17 +-
 block/accounting.c                                 |  11 +-
 block/cloop.c                                      |   3 +-
 block/dmg.c                                        |  36 ++++-
 block/export/fuse.c                                |  12 ++
 block/qapi.c                                       |   3 +
 block/qcow2.c                                      |   6 +-
 hw/block/fdc.c                                     |  55 ++++++-
 tests/qtest/fdc-test.c                             |  70 ++++++++-
 tests/unit/test-block-accounting.c                 | 115 ++++++++++++++
 tests/unit/test-coroutine.c                        |  53 +++++++
 util/qemu-coroutine-sleep.c                        |  53 +++++--
 tests/qemu-iotests/testrunner.py                   |   4 +-
 tests/qemu-iotests/039                             |  11 ++
 tests/qemu-iotests/039.out                         |   3 +
 tests/qemu-iotests/common.rc                       |  14 ++
 tests/qemu-iotests/meson.build                     |  15 +-
 tests/qemu-iotests/tests/file-io-error             |   4 +-
 tests/qemu-iotests/tests/fuse-allow-other          |   2 +
 tests/qemu-iotests/tests/fuse-mmap-shared          |   9 +-
 tests/qemu-iotests/tests/fuse-truncate             | 171 +++++++++++++++++++++
 tests/qemu-iotests/tests/fuse-truncate.out         |   5 +
 .../tests/migrate-bitmaps-postcopy-test            |  15 +-
 tests/unit/meson.build                             |   1 +
 25 files changed, 633 insertions(+), 56 deletions(-)
 create mode 100644 tests/unit/test-block-accounting.c
 create mode 100755 tests/qemu-iotests/tests/fuse-truncate
 create mode 100644 tests/qemu-iotests/tests/fuse-truncate.out