Skip to content

Patch Round-up for stable 6.0.1, freeze on 2021-10-26

Michael Roth qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest64 patches 7 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/64multi-process: Initialize variables declared with g_auto*hw/remote/memory.c hw/remote/proxy.c+3 -50 replies
2/64linux-user/aarch64: Enable hwcap for RND, BTI, and MTElinux-user/elfload.c+13 -00 replies
3/64docs/system: Document the removal of "compat" property for POWER CPUsdocs/system/removed-features.rst+6 -00 replies
4/64monitor/qmp: fix race on CHR_EVENT_CLOSED without OOBmonitor/qmp.c+22 -180 replies
5/64migration/rdma: Fix cm_event used before being initializedmigration/rdma.c+0 -10 replies
6/64target/i386: Exit tb after wrmsrtarget/i386/tcg/translate.c+2 -00 replies
7/64target/ppc: Fix load endianness for lxvwsx/lxvdsxtarget/ppc/translate/vsx-impl.c.inc+2 -20 replies
8/64vl: allow not specifying size in -m when using -M memory-backendsoftmmu/vl.c+0 -20 replies
9/64target/xtensa: fix access ring in l32extarget/xtensa/translate.c+1 -10 replies
10/64qemu-option: support accept-any QemuOptsList in qemu_opts_absorb_qdictutil/qemu-option.c+2 -10 replies
11/64qemu-config: load modules when instantiating option groupsinclude/qemu/config-file.h softmmu/vl.c stubs/meson.build +2 more+26 -50 replies
12/64qemu-config: parse configuration files to a QDictinclude/qemu/config-file.h softmmu/vl.c util/qemu-config.c+76 -330 replies
13/64vl: plumb keyval-based options into -readconfiginclude/block/qdict.h include/qapi/qmp/qdict.h softmmu/vl.c+62 -260 replies
14/64vl: plug -object back into -readconfigsoftmmu/vl.c+18 -60 replies
15/64sockets: update SOCKET_ADDRESS_TYPE_FD listen(2) backlogutil/qemu-sockets.c+22 -70 replies
16/64hmp: Fix loadvm to resume the VM on success instead of failuremonitor/hmp-cmds.c+1 -10 replies
17/64configure: fix detection of gdbus-codegenconfigure+3 -10 replies
18/64vhost-vdpa: don't initialize backend_featureshw/virtio/vhost-vdpa.c+0 -30 replies
19/64esp: only assert INTR_DC interrupt flag if selection failshw/scsi/esp.c+1 -10 replies
20/64esp: only set ESP_RSEQ at the start of the select sequencehw/scsi/esp.c+9 -20 replies
21/64runstate: Initialize Error * to NULLsoftmmu/runstate.c+1 -10 replies
22/64vfio: Fix unregister SaveVMHandler in vfio_migration_finalizehw/vfio/migration.c+1 -00 replies
23/64vl: Fix an assert failure in error pathsoftmmu/vl.c+1 -10 replies
24/64tcg/sparc: Fix temp_allocate_frame vs sparc stack biastcg/sparc/tcg-target.c.inc tcg/tcg.c+13 -120 replies
25/64tcg: Allocate sufficient storage in temp_allocate_frametcg/tcg.c+26 -50 replies
26/64hw/pci-host/q35: Ignore write of reserved PCIEXBAR LENGTH fieldhw/pci-host/q35.c+3 -00 replies
27/64block/nvme: Fix VFIO_MAP_DMA failed: No space left on deviceblock/nvme.c+22 -00 replies
28/64crypto/tlscreds: Introduce qcrypto_tls_creds_check_endpoint() helpercrypto/tlscreds.c include/crypto/tlscreds.h+26 -00 replies
29/64block/nbd: Use qcrypto_tls_creds_check_endpoint()block/nbd.c blockdev-nbd.c+6 -60 replies
30/64qemu-nbd: Use qcrypto_tls_creds_check_endpoint()qemu-nbd.c+7 -120 replies
31/64chardev/socket: Use qcrypto_tls_creds_check_endpoint()chardev/char-socket.c+6 -120 replies
32/64migration/tls: Use qcrypto_tls_creds_check_endpoint()migration/tls.c+1 -50 replies
33/64ui/vnc: Use qcrypto_tls_creds_check_endpoint()ui/vnc.c+4 -30 replies
34/64crypto: Make QCryptoTLSCreds* structures privatecrypto/tls-cipher-suites.c crypto/tlscredsanon.c crypto/tlscredspriv.h +8 more+58 -560 replies
35/64yank: Unregister function when using TLS migrationmigration/channel.c migration/multifd.c migration/qemu-file-channel.c+19 -140 replies
36/64tests: acpi: prepare for changing DSDT tablestests/qtest/bios-tables-test-allowed-diff.h+10 -00 replies
37/64acpi: pc: revert back to v5.2 PCI slot enumerationhw/i386/acpi-build.c+7 -20 replies
38/64tests: acpi: pc: update expected DSDT blobstests/data/acpi/pc/DSDT tests/data/acpi/pc/DSDT.acpihmat tests/data/acpi/pc/DSDT.bridge +8 more+0 -100 replies
39/64hw/block/nvme: align with existing stylehw/block/nvme-ns.c hw/block/nvme.c include/block/nvme.h+44 -350 replies
40/64hw/nvme: fix missing check for PMR capabilityhw/block/nvme.c+4 -00 replies
41/64hw/nvme: fix pin-based interrupt behavior (again)hw/block/nvme.c hw/block/nvme.h+18 -10 replies
42/64virtio-balloon: don't start free page hinting if postcopy is possiblehw/virtio/virtio-balloon.c+13 -00 replies
43/64hw/net/can: sja1000 fix buff2frame_bas and buff2frame_pel when dlc is out of std CAN 8 byteshw/net/can/can_sja1000.c+8 -00 replies
44/64hw/sd/sdcard: Document out-of-range addresses for SEND_WRITE_PROThw/sd/sd.c+8 -10 replies
45/64hw/sd/sdcard: Fix assertion accessing out-of-range addresses with CMD30hw/sd/sd.c+1 -10 replies
46/64audio: Never send migration sectionaudio/audio.c+10 -00 replies
47/64target/arm: Don't skip M-profile reset entirely in user modetarget/arm/cpu.c+19 -00 replies
48/64virtio-net: fix use after unmap/free for sghw/net/virtio-net.c+32 -70 replies
49/64qemu-nbd: Change default cache mode to writebackdocs/tools/qemu-nbd.rst qemu-nbd.c+8 -40 replies
50/64hmp: Unbreak "change vnc"monitor/hmp-cmds.c+1 -10 replies
51/64virtio-mem-pci: Fix memory leak when creating MEMORY_DEVICE_SIZE_CHANGE eventhw/virtio/virtio-mem-pci.c+1 -60 replies
52/64uas: add stream number sanity checks.hw/usb/dev-uas.c+11 -00 replies
53/64usb/redir: avoid dynamic stack allocation (CVE-2021-3527)hw/usb/redirect.c+3 -30 replies
54/64usb: limit combined packets to 1 MiB (CVE-2021-3527)hw/usb/combined-packet.c+3 -10 replies
55/64vhost-user-gpu: fix memory disclosure in virgl_cmd_get_capset_info (CVE-2021-3545)contrib/vhost-user-gpu/virgl.c+1 -00 replies
56/64vhost-user-gpu: fix resource leak in 'vg_resource_create_2d' (CVE-2021-3544)contrib/vhost-user-gpu/vhost-user-gpu.c+1 -00 replies
57/64vhost-user-gpu: fix memory leak in vg_resource_attach_backing (CVE-2021-3544)contrib/vhost-user-gpu/vhost-user-gpu.c+5 -00 replies
58/64vhost-user-gpu: fix memory leak while calling 'vg_resource_unref' (CVE-2021-3544)contrib/vhost-user-gpu/vhost-user-gpu.c+1 -00 replies
59/64vhost-user-gpu: fix memory leak in 'virgl_cmd_resource_unref' (CVE-2021-3544)contrib/vhost-user-gpu/virgl.c+7 -00 replies
60/64vhost-user-gpu: fix memory leak in 'virgl_resource_attach_backing' (CVE-2021-3544)contrib/vhost-user-gpu/virgl.c+4 -10 replies
61/64vhost-user-gpu: fix OOB write in 'virgl_cmd_get_capset' (CVE-2021-3546)contrib/vhost-user-gpu/virgl.c+4 -00 replies
62/64hw/rdma: Fix possible mremap overflow in the pvrdma device (CVE-2021-3582)hw/rdma/vmw/pvrdma_cmd.c+7 -00 replies
63/64pvrdma: Ensure correct input on ring init (CVE-2021-3607)hw/rdma/vmw/pvrdma_main.c+5 -00 replies
64/64pvrdma: Fix the ring init error flow (CVE-2021-3608)hw/rdma/vmw/pvrdma_dev_ring.c+1 -10 replies

Reviews trailers per patch

46 of 64 patches have a Reviewed-by or Acked-by.

PatchKevin WolfPhilippe Mathieu-DaudéRichard W.M. JonesEric BlakeStefano GarzarellaJagannathan RamanMiroslav RezaninaDr. David Alan GilbertRichard HendersonMichael S. TsirkinAlexander BulekovDaniel P. BerrangéStefan HajnocziJohn SucaetPeter XuKeith BuschLukas StraubStefan WeilMarkus ArmbrusterAkihiko OdakiPrasad J PanditMarc-André LureauPeter MaydellVictorV (Kunlun Lab)Yuval ShaiaLaurent VivierPaul A. ClarkeGerd HoffmannPaolo Bonzini
1/64R-b R-b R-b
2/64
3/64R-b
4/64R-b
5/64R-b
6/64R-b
7/64T-b
8/64
9/64R-b
10/64
11/64
12/64
13/64R-b
14/64R-b
15/64T-b R-b R-b
16/64R-b
17/64
18/64
19/64
20/64
21/64R-b
22/64
23/64
24/64R-b
25/64R-b T-b
26/64R-b R-b R-b R-b
27/64
28/64R-b
29/64R-b
30/64R-b T-b
31/64R-b
32/64R-b
33/64
34/64
35/64R-b R-b
36/64R-b R-b T-b
37/64R-b R-b T-b
38/64R-b R-b T-b
39/64
40/64R-b
41/64R-b
42/64R-b R-b
43/64R-b
44/64R-b T-b R-b
45/64T-b R-b
46/64R-b T-b
47/64R-b
48/64
49/64R-b
50/64R-b R-b
51/64R-b
52/64R-b
53/64R-b T-b
54/64
55/64R-b
56/64R-b R-b
57/64R-b
58/64R-b R-b
59/64R-b
60/64R-b
61/64R-b R-b
62/64R-b T-b R-b T-b
63/64R-b R-b T-b
64/64R-b R-b T-b T-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 29 reviewers.

Read the v1 thread

Cover letter [PATCH 00/64] Patch Round-up for stable 6.0.1, freeze on 2021-10-26

Hi everyone,

The following new patches are queued for QEMU stable v6.0.1:

https://gitlab.com/qemu-project/qemu/-/commits/stable-6.0-staging/

Patch freeze is 2021-10-26, and the release is planned for 2021-10-28:

https://wiki.qemu.org/Planning/6.0

Please respond here or CC [email protected] on any additional patches you think should (or shouldn't) be included in the release.

Thanks!

----------------------------------------------------------------
David Hildenbrand (2):
virtio-balloon: don't start free page hinting if postcopy is possible
virtio-mem-pci: Fix memory leak when creating MEMORY_DEVICE_SIZE_CHANGE event

Dr. David Alan Gilbert (1):
audio: Never send migration section

Gerd Hoffmann (3):
uas: add stream number sanity checks. usb/redir: avoid dynamic stack allocation (CVE-2021-3527)
usb: limit combined packets to 1 MiB (CVE-2021-3527)

Giuseppe Musacchio (1):
target/ppc: Fix load endianness for lxvwsx/lxvdsx

Gollu Appalanaidu (1):
hw/block/nvme: align with existing style

Greg Kurz (1):
docs/system: Document the removal of "compat" property for POWER CPUs

Igor Mammedov (3):
tests: acpi: prepare for changing DSDT tables
acpi: pc: revert back to v5.2 PCI slot enumeration
tests: acpi: pc: update expected DSDT blobs

Jason Wang (2):
vhost-vdpa: don't initialize backend_features
virtio-net: fix use after unmap/free for sg

Kevin Wolf (1):
hmp: Fix loadvm to resume the VM on success instead of failure

Klaus Jensen (2):
hw/nvme: fix missing check for PMR capability hw/nvme: fix pin-based interrupt behavior (again)

Kunkun Jiang (1):
vfio: Fix unregister SaveVMHandler in vfio_migration_finalize

Leonardo Bras (1):
yank: Unregister function when using TLS migration

Li Qiang (7):
vhost-user-gpu: fix memory disclosure in virgl_cmd_get_capset_info (CVE-2021-3545)
vhost-user-gpu: fix resource leak in 'vg_resource_create_2d' (CVE-2021-3544)
vhost-user-gpu: fix memory leak in vg_resource_attach_backing (CVE-2021-3544)
vhost-user-gpu: fix memory leak while calling 'vg_resource_unref' (CVE-2021-3544)
vhost-user-gpu: fix memory leak in 'virgl_cmd_resource_unref' (CVE-2021-3544)
vhost-user-gpu: fix memory leak in 'virgl_resource_attach_backing' (CVE-2021-3544)
vhost-user-gpu: fix OOB write in 'virgl_cmd_get_capset' (CVE-2021-3546)

Li Zhijian (1):
migration/rdma: Fix cm_event used before being initialized

Marcel Apfelbaum (3):
hw/rdma: Fix possible mremap overflow in the pvrdma device (CVE-2021-3582)
pvrdma: Ensure correct input on ring init (CVE-2021-3607)
pvrdma: Fix the ring init error flow (CVE-2021-3608)

Mark Cave-Ayland (2):
esp: only assert INTR_DC interrupt flag if selection fails
esp: only set ESP_RSEQ at the start of the select sequence

Markus Armbruster (1):
hmp: Unbreak "change vnc"

Max Filippov (1):
target/xtensa: fix access ring in l32ex

Nir Soffer (1):
qemu-nbd: Change default cache mode to writeback

Paolo Bonzini (7):
vl: allow not specifying size in -m when using -M memory-backend
qemu-option: support accept-any QemuOptsList in qemu_opts_absorb_qdict
qemu-config: load modules when instantiating option groups
qemu-config: parse configuration files to a QDict
vl: plumb keyval-based options into -readconfig
vl: plug -object back into -readconfig
configure: fix detection of gdbus-codegen

Pavel Pisa (1):
hw/net/can: sja1000 fix buff2frame_bas and buff2frame_pel when dlc is out of std CAN 8 bytes

Peng Liang (1):
runstate: Initialize Error * to NULL

Peter Maydell (1):
target/arm: Don't skip M-profile reset entirely in user mode

Philippe Mathieu-Daudé (11):
hw/pci-host/q35: Ignore write of reserved PCIEXBAR LENGTH field block/nvme: Fix VFIO_MAP_DMA failed: No space left on device crypto/tlscreds: Introduce qcrypto_tls_creds_check_endpoint() helper block/nbd: Use qcrypto_tls_creds_check_endpoint()
qemu-nbd: Use qcrypto_tls_creds_check_endpoint() chardev/socket: Use qcrypto_tls_creds_check_endpoint() migration/tls: Use qcrypto_tls_creds_check_endpoint() ui/vnc: Use qcrypto_tls_creds_check_endpoint()
crypto: Make QCryptoTLSCreds* structures private hw/sd/sdcard: Document out-of-range addresses for SEND_WRITE_PROT hw/sd/sdcard: Fix assertion accessing out-of-range addresses with CMD30

Richard Henderson (4):
linux-user/aarch64: Enable hwcap for RND, BTI, and MTE target/i386: Exit tb after wrmsr
tcg/sparc: Fix temp_allocate_frame vs sparc stack bias
tcg: Allocate sufficient storage in temp_allocate_frame

Stefan Hajnoczi (1):
sockets: update SOCKET_ADDRESS_TYPE_FD listen(2) backlog

Stefan Reiter (1):
monitor/qmp: fix race on CHR_EVENT_CLOSED without OOB

Zenghui Yu (1):
multi-process: Initialize variables declared with g_auto*

Zhenzhong Duan (1):
vl: Fix an assert failure in error path

 audio/audio.c                           |  10 +++
 block/nbd.c                             |   6 +-
 block/nvme.c                            |  22 ++++++
 blockdev-nbd.c                          |   6 +-
 chardev/char-socket.c                   |  18 ++---
 configure                               |   4 +-
 contrib/vhost-user-gpu/vhost-user-gpu.c |   7 ++
 contrib/vhost-user-gpu/virgl.c          |  17 ++++-
 crypto/tls-cipher-suites.c              |   7 ++
 crypto/tlscreds.c                       |  12 +++
 crypto/tlscredsanon.c                   |   2 +
 crypto/tlscredspriv.h                   |  45 +++++++++++
 crypto/tlscredspsk.c                    |   2 +
 crypto/tlscredsx509.c                   |   1 +
 crypto/tlssession.c                     |   1 +
 docs/system/removed-features.rst        |   6 ++
 docs/tools/qemu-nbd.rst                 |   6 +-
 hw/block/nvme-ns.c                      |   2 +-
 hw/block/nvme.c                         |  89 ++++++++++++++--------
 hw/block/nvme.h                         |   1 +
 hw/i386/acpi-build.c                    |   9 ++-
 hw/net/can/can_sja1000.c                |   8 ++
 hw/net/virtio-net.c                     |  39 ++++++++--
 hw/pci-host/q35.c                       |   3 +
 hw/rdma/vmw/pvrdma_cmd.c                |   7 ++
 hw/rdma/vmw/pvrdma_dev_ring.c           |   2 +-
 hw/rdma/vmw/pvrdma_main.c               |   5 ++
 hw/remote/memory.c                      |   5 +-
 hw/remote/proxy.c                       |   3 +-
 hw/scsi/esp.c                           |  13 +++-
 hw/sd/sd.c                              |   9 ++-
 hw/usb/combined-packet.c                |   4 +-
 hw/usb/dev-uas.c                        |  11 +++
 hw/usb/redirect.c                       |   6 +-
 hw/vfio/migration.c                     |   1 +
 hw/virtio/vhost-vdpa.c                  |   3 -
 hw/virtio/virtio-balloon.c              |  13 ++++
 hw/virtio/virtio-mem-pci.c              |   7 +-
 include/block/nvme.h                    |  10 +--
 include/block/qdict.h                   |   2 -
 include/crypto/tls-cipher-suites.h      |   6 --
 include/crypto/tlscreds.h               |  30 ++++----
 include/crypto/tlscredsanon.h           |  12 ---
 include/crypto/tlscredspsk.h            |  12 ---
 include/crypto/tlscredsx509.h           |  10 ---
 include/qapi/qmp/qdict.h                |   3 +
 include/qemu/config-file.h              |   7 +-
 linux-user/elfload.c                    |  13 ++++
 migration/channel.c                     |  26 ++++---
 migration/multifd.c                     |   3 +-
 migration/qemu-file-channel.c           |   4 +-
 migration/rdma.c                        |   1 -
 migration/tls.c                         |   6 +-
 monitor/hmp-cmds.c                      |   4 +-
 monitor/qmp.c                           |  40 +++++-----
 qemu-nbd.c                              |  25 +++---
 softmmu/runstate.c                      |   2 +-
 softmmu/vl.c                            | 130 +++++++++++++++++++++++---------
 stubs/meson.build                       |   1 +
 stubs/module-opts.c                     |   6 ++
 target/arm/cpu.c                        |  19 +++++
 target/i386/tcg/translate.c             |   2 +
 target/ppc/translate/vsx-impl.c.inc     |   4 +-
 target/xtensa/translate.c               |   2 +-
 tcg/sparc/tcg-target.c.inc              |  16 ++--
 tcg/tcg.c                               |  40 +++++++---
 tests/data/acpi/pc/DSDT                 | Bin 6002 -> 6002 bytes
 tests/data/acpi/pc/DSDT.acpihmat        | Bin 7327 -> 7327 bytes
 tests/data/acpi/pc/DSDT.bridge          | Bin 8668 -> 8668 bytes
 tests/data/acpi/pc/DSDT.cphp            | Bin 6466 -> 6466 bytes
 tests/data/acpi/pc/DSDT.dimmpxm         | Bin 7656 -> 7656 bytes
 tests/data/acpi/pc/DSDT.hpbridge        | Bin 5969 -> 5969 bytes
 tests/data/acpi/pc/DSDT.ipmikcs         | Bin 6074 -> 6074 bytes
 tests/data/acpi/pc/DSDT.memhp           | Bin 7361 -> 7361 bytes
 tests/data/acpi/pc/DSDT.nohpet          | Bin 5860 -> 5860 bytes
 tests/data/acpi/pc/DSDT.numamem         | Bin 6008 -> 6008 bytes
 ui/vnc.c                                |   7 +-
 util/qemu-config.c                      |  99 ++++++++++++++++--------
 util/qemu-option.c                      |   3 +-
 util/qemu-sockets.c                     |  29 +++++--
 80 files changed, 685 insertions(+), 301 deletions(-)
 create mode 100644 stubs/module-opts.c