Skip to content

Patch Round-up for stable 5.0.1, freeze on 2020-09-10

Michael Roth qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest77 patches 8 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/77hostmem: don't use mbind() if host-nodes is emptybackends/hostmem.c+4 -20 replies
2/77target/arm: Clear tail in gvec_fmul_idx_*, gvec_fmla_idx_*target/arm/vec_helper.c+2 -00 replies
3/77qemu-nbd: Close inherited stderrqemu-nbd.c+5 -10 replies
4/779p: Lock directory streams with a CoMutexhw/9pfs/9p.h+4 -40 replies
5/77net: Do not include a newline in the id of -nic devicesnet/net.c+1 -10 replies
6/77nbd/server: Avoid long error message assertions CVE-2020-10761nbd/server.c tests/qemu-iotests/143 tests/qemu-iotests/143.out+26 -30 replies
7/77virtio-balloon: fix free page hinting without an iothreadhw/virtio/virtio-balloon.c+16 -170 replies
8/77virtio-balloon: fix free page hinting check on unrealizehw/virtio/virtio-balloon.c+1 -10 replies
9/77virtio-balloon: unref the iothread when unrealizinghw/virtio/virtio-balloon.c+1 -00 replies
10/77block: Call attention to truncation of long NBD exportsblock.c block/nbd.c+18 -100 replies
11/779pfs: local: ignore O_NOATIME if we don't have permissionshw/9pfs/9p-util.h+13 -00 replies
12/779pfs: include linux/limits.h for XATTR_SIZE_MAXhw/9pfs/9p.c+1 -00 replies
13/77xen-9pfs: Fix log messages of reply errorshw/9pfs/xen-9p-backend.c+5 -40 replies
14/77Revert "9p: init_in_iov_from_pdu can truncate the size"hw/9pfs/9p.c hw/9pfs/9p.h hw/9pfs/virtio-9p-device.c +1 more+22 -390 replies
15/77xen/9pfs: yield when there isn't enough room on the ringhw/9pfs/xen-9p-backend.c+25 -61 reply
16/77ati-vga: check mm_index before recursive call (CVE-2020-13800)hw/display/ati.c+8 -20 replies
17/77es1370: check total frame count against current framehw/audio/es1370.c+5 -20 replies
18/77Fix tulip breakagehw/net/tulip.c+0 -60 replies
19/77iotests/283: Use consistent size for source and targettests/qemu-iotests/283 tests/qemu-iotests/283.out+6 -20 replies
20/77virtiofsd: add --rlimit-nofile=NUM optiontools/virtiofsd/fuse_lowlevel.h tools/virtiofsd/helper.c tools/virtiofsd/passthrough_ll.c+32 -140 replies
21/77virtiofsd: stay below fs.file-max sysctl value (CVE-2020-10717)tools/virtiofsd/helper.c+25 -10 replies
22/77net: use peer when purging queue in qemu_flush_or_purge_queue_packets()net/net.c+1 -10 replies
23/77KVM: x86: believe what KVM says about WAITPKGtarget/i386/cpu.c target/i386/kvm.c target/i386/kvm_i386.h+9 -60 replies
24/77aio-posix: don't duplicate fd handler deletion in fdmon_io_uring_destroy()util/aio-posix.c util/fdmon-io_uring.c+11 -30 replies
25/77aio-posix: disable fdmon-io_uring when GSource is usedinclude/block/aio.h util/aio-posix.c util/aio-win32.c +1 more+20 -00 replies
26/77linux-user/strace.list: fix epoll_create{, 1} -strace outputlinux-user/strace.list+2 -20 replies
27/77libqos: usb-hcd-ehci: use 32-bit write for config registertests/qtest/usb-hcd-ehci-test.c+1 -10 replies
28/77libqos: pci-pc: use 32-bit write for EJ registertests/qtest/libqos/pci-pc.c+1 -10 replies
29/77memory: Revert "memory: accept mismatching sizes in memory_region_access_valid"memory.c+9 -200 replies
30/77hw/riscv: Allow 64 bit access to SiFive CLINThw/riscv/sifive_clint.c+1 -10 replies
31/77xhci: fix valid.max_access_size to access address registershw/usb/hcd-xhci.c+2 -20 replies
32/77acpi: accept byte and word access to core ACPI registershw/acpi/core.c+6 -30 replies
33/77hw/display/artist: Unbreak size mismatch memory accesseshw/display/artist.c+4 -80 replies
34/77hw/net/e1000e: Do not abort() on invalid PSRCTL register valuehw/net/e1000e_core.c+7 -30 replies
35/77virtiofsd: Whitelist fchmodtools/virtiofsd/seccomp.c+1 -00 replies
36/77hw/audio/gus: Fix registers 32-bit accesshw/audio/gusemu_hal.c hw/audio/gusemu_mixer.c+2 -20 replies
37/77net/virtio: Fix failover_replug_primary() return value regressionhw/net/virtio-net.c+1 -10 replies
38/77error: Use error_reportf_err() where appropriatechardev/char-socket.c hw/sd/pxa2xx_mmci.c hw/sd/sd.c +3 more+17 -160 replies
39/77usb/dev-mtp: Fix Error double free after inotify failurehw/usb/dev-mtp.c+0 -20 replies
40/77nbd: Avoid off-by-one in long export name truncationblock/nbd.c+1 -10 replies
41/77chardev/tcp: Fix error message double free errorchardev/char-socket.c+2 -10 replies
42/77qga: fix assert regression on guest-shutdownqga/main.c+5 -10 replies
43/77util: Introduce qemu_get_host_name()include/qemu/osdep.h util/oslib-posix.c util/oslib-win32.c+58 -00 replies
44/77qga: Use qemu_get_host_name() instead of g_get_host_name()qga/commands.c+13 -40 replies
45/77docs/orangepi: Add instructions for resizing SD image to power of twodocs/system/arm/orangepi.rst+13 -30 replies
46/77tests/acceptance/boot_linux: Tag tests using a SD card with 'device:sd'tests/acceptance/boot_linux_console.py+3 -00 replies
47/77tests/acceptance: allow console interaction with specific VMstests/acceptance/avocado_qemu/__init__.py+8 -50 replies
48/77tests/acceptance: refactor boot_linux to allow code reusetests/acceptance/boot_linux.py+29 -200 replies
49/77tests/acceptance: refactor boot_linux_console test to allow code reusetests/acceptance/boot_linux_console.py+11 -100 replies
50/77tests/acceptance/boot_linux: Expand SD card image to power of 2tests/acceptance/boot_linux_console.py+22 -90 replies
51/77hw/sd/sdcard: Restrict Class 6 commands to SCSD cardshw/sd/sd.c+5 -00 replies
52/77hw/sd/sdcard: Simplify realize() a bithw/sd/sd.c+5 -50 replies
53/77hw/sd/sdcard: Do not allow invalid SD card sizeshw/sd/sd.c+25 -00 replies
54/77hw/sd/sdcard: Update coding style to make checkpatch.pl happyhw/sd/sd.c+16 -80 replies
55/77hw/sd/sdcard: Do not switch to ReceivingData if address is invalidhw/sd/sd.c+24 -140 replies
56/77target/hppa: Free some temps in do_subtarget/hppa/translate.c+2 -00 replies
57/77tpm: tpm_spapr: Exit on TPM backend failureshw/tpm/tpm_spapr.c+4 -10 replies
58/77tests: tpm: Skip over pcrUpdateCounter byte in result comparisontests/qtest/tpm-util.c+5 -10 replies
59/77qdev: Fix device_add DRIVER,help to print to monitorqdev-monitor.c+1 -10 replies
60/77virtio-balloon: Prevent guest from starting a report when we didn't request onehw/virtio/virtio-balloon.c+2 -10 replies
61/77virtio-balloon: Add locking to prevent possible race when starting hintinghw/virtio/virtio-balloon.c+4 -00 replies
62/77virtio-balloon: always indicate S_DONE when migration failshw/virtio/virtio-balloon.c+20 -60 replies
63/77linux-headers: update against Linux 5.7-rc3include/standard-headers/linux/ethtool.h include/standard-headers/linux/input-event-codes.h include/standard-headers/linux/pci_regs.h +14 more+280 -190 replies
64/77virtio-balloon: Replace free page hinting references to 'report' with 'hint'hw/virtio/virtio-balloon.c include/hw/virtio/virtio-balloon.h+48 -480 replies
65/77virtio: list legacy-capable deviceshw/virtio/virtio.c include/hw/virtio/virtio.h+27 -00 replies
66/77virtio: verify that legacy support is not accidentally onhw/s390x/virtio-ccw.c hw/virtio/virtio-pci.c+10 -01 reply
67/77intel_iommu: Use correct shift for 256 bits qi descriptorhw/i386/intel_iommu.c hw/i386/intel_iommu_internal.h+8 -20 replies
68/77virtio-pci: Changed vdev to proxy for VirtIO PCI BAR callbacks.hw/virtio/virtio-pci.c+24 -100 replies
69/77libvhost-user: Report descriptor index on paniccontrib/libvhost-user/libvhost-user.c+2 -20 replies
70/77Update OpenBIOS images to 7f28286f built from submodule.pc-bios/openbios-ppc pc-bios/openbios-sparc32 pc-bios/openbios-sparc64 +1 more+1 -10 replies
71/77migration/block-dirty-bitmap: fix dirty_bitmap_mig_before_vm_startmigration/block-dirty-bitmap.c+1 -10 replies
72/77block: Fix bdrv_aligned_p*v() for qiov_offset != 0block/io.c+6 -40 replies
73/77iotests/028: Add test for cross-base-EOF readstests/qemu-iotests/028 tests/qemu-iotests/028.out+30 -00 replies
74/77nbd: Fix large trim/zero requestsnbd/server.c+23 -50 replies
75/77virtio-net: align RSC fields with updated virtio-net headerhw/net/virtio-net.c+4 -230 replies
76/77hw/arm/sbsa-ref: fix typo breaking PCIe IRQshw/arm/sbsa-ref.c+1 -10 replies
77/77usb: fix setup_len init (CVE-2020-14364)hw/usb/core.c+10 -60 replies

Reviews trailers per patch

62 of 77 patches have a Reviewed-by or Acked-by.

PatchChristian SchoenebeckVladimir Sementsov-OgievskiyRichard HendersonPhilippe Mathieu-DaudéAlexander DuyckMichael S. TsirkinEric BlakeStefano StabelliniDaniel P. BerrangéDr. David Alan GilbertAlexander BulekovAlistair FrancisAlex BennéeWillian RampazzoOleksandr NatalenkoPeter MaydellCleber RosaThomas HuthLIU ZhiweiAndrey ShinkevichMarc-André LureauVolker RümelinVivek GoyalJens FreimannMarkus ArmbrusterDavid HildenbrandChristian EhrhardtHalil PasicRaphael NorwitzStefan HajnocziSven SchnelleGongleiLi QiangPeter XuJason WangClaudio FontanaBruce Rogers
1/77T-b
2/77R-b
3/77R-b
4/77R-b
5/77R-b
6/77R-b
7/77R-b R-b R-b
8/77R-b R-b R-b
9/77R-b R-b R-b
10/77R-b
11/77A-b
12/77R-b R-b
13/77A-b
14/77R-b
15/77R-b
16/77
17/77
18/77
19/77R-b
20/77R-b
21/77R-b
22/77A-b
23/77
24/77T-b
25/77T-b
26/77R-b
27/77T-b
28/77T-b
29/77R-b
30/77R-b
31/77
32/77R-b
33/77
34/77
35/77R-b R-b
36/77R-b R-b T-b R-b
37/77R-b R-b
38/77R-b R-b
39/77R-b
40/77R-b
41/77R-b
42/77R-b R-b T-b
43/77R-b R-b
44/77R-b
45/77R-b R-b
46/77R-b R-b T-b
47/77T-b R-b R-b
48/77T-b
49/77T-b R-b
50/77R-b R-b
51/77R-b R-b
52/77R-b R-b
53/77R-b R-b
54/77R-b R-b R-b
55/77R-b R-b
56/77R-b T-b
57/77R-b
58/77R-b
59/77R-b R-b R-b
60/77R-b A-b
61/77R-b A-b
62/77R-b R-b
63/77R-b
64/77R-b A-b
65/77R-b A-b
66/77R-b A-b
67/77R-b R-b A-b
68/77R-b
69/77R-b R-b R-b R-b
70/77
71/77R-b R-b
72/77R-b T-b T-b
73/77R-b T-b T-b
74/77R-b
75/77
76/77R-b
77/77T-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 37 reviewers.

Read the v1 thread

Cover letter [PATCH 00/77] Patch Round-up for stable 5.0.1, freeze on 2020-09-10

Hi everyone,

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

https://github.com/mdroth/qemu/commits/stable-5.0-staging

Patch freeze is 2020-09-10, and the release is planned for 2020-09-15:

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

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

Thanks!

----------------------------------------------------------------
Alexander Duyck (3):
virtio-balloon: Prevent guest from starting a report when we didn't request one
virtio-balloon: Add locking to prevent possible race when starting hinting
virtio-balloon: Replace free page hinting references to 'report' with 'hint'

Alistair Francis (1):
hw/riscv: Allow 64 bit access to SiFive CLINT

Allan Peramaki (1):
hw/audio/gus: Fix registers 32-bit access

Andrew Melnychenko (1):
virtio-pci: Changed vdev to proxy for VirtIO PCI BAR callbacks.

Christian Schoenebeck (1):
xen-9pfs: Fix log messages of reply errors

Cornelia Huck (3):
linux-headers: update against Linux 5.7-rc3
virtio: list legacy-capable devices
virtio: verify that legacy support is not accidentally on

Dan Robertson (1):
9pfs: include linux/limits.h for XATTR_SIZE_MAX

David Hildenbrand (4):
virtio-balloon: fix free page hinting without an iothread
virtio-balloon: fix free page hinting check on unrealize
virtio-balloon: unref the iothread when unrealizing
virtio-balloon: always indicate S_DONE when migration fails

Eric Blake (4):
nbd/server: Avoid long error message assertions CVE-2020-10761
block: Call attention to truncation of long NBD exports
nbd: Avoid off-by-one in long export name truncation
nbd: Fix large trim/zero requests

Gerd Hoffmann (1):

      usb: fix setup_len init (CVE-2020-14364)

Graeme Gregory (1):
hw/arm/sbsa-ref: fix typo breaking PCIe IRQs

Greg Kurz (1):
9p: Lock directory streams with a CoMutex

Helge Deller (2):
Fix tulip breakage
hw/display/artist: Unbreak size mismatch memory accesses

Igor Mammedov (1):
hostmem: don't use mbind() if host-nodes is empty

Jason Wang (1):
net: use peer when purging queue in qemu_flush_or_purge_queue_packets()

Kevin Wolf (1):
iotests/283: Use consistent size for source and target

Laurent Vivier (1):
xhci: fix valid.max_access_size to access address registers

Liu Yi L (1):
intel_iommu: Use correct shift for 256 bits qi descriptor

Marc-André Lureau (1):
qga: fix assert regression on guest-shutdown

Mark Cave-Ayland (1):
Update OpenBIOS images to 7f28286f built from submodule.

Markus Armbruster (4):
net/virtio: Fix failover_replug_primary() return value regression
error: Use error_reportf_err() where appropriate usb/dev-mtp: Fix Error double free after inotify failure
qdev: Fix device_add DRIVER,help to print to monitor

Max Reitz (3):
virtiofsd: Whitelist fchmod
block: Fix bdrv_aligned_p*v() for qiov_offset != 0 iotests/028: Add test for cross-base-EOF reads

Michael S. Tsirkin (1):
memory: Revert "memory: accept mismatching sizes in memory_region_access_valid"

Michael Tokarev (1):
acpi: accept byte and word access to core ACPI registers

Michal Privoznik (2):
util: Introduce qemu_get_host_name()
qga: Use qemu_get_host_name() instead of g_get_host_name()

Niek Linnenbank (1):
docs/orangepi: Add instructions for resizing SD image to power of two

Omar Sandoval (1):
9pfs: local: ignore O_NOATIME if we don't have permissions

Paolo Bonzini (3):
KVM: x86: believe what KVM says about WAITPKG
libqos: usb-hcd-ehci: use 32-bit write for config register
libqos: pci-pc: use 32-bit write for EJ register

Pavel Dovgaluk (3):
tests/acceptance: allow console interaction with specific VMs tests/acceptance: refactor boot_linux to allow code reuse tests/acceptance: refactor boot_linux_console test to allow code reuse

Philippe Mathieu-Daudé (9):
hw/net/e1000e: Do not abort() on invalid PSRCTL register value tests/acceptance/boot_linux: Tag tests using a SD card with 'device:sd' tests/acceptance/boot_linux: Expand SD card image to power of 2 hw/sd/sdcard: Restrict Class 6 commands to SCSD cards hw/sd/sdcard: Simplify realize() a bit
hw/sd/sdcard: Do not allow invalid SD card sizes hw/sd/sdcard: Update coding style to make checkpatch.pl happy hw/sd/sdcard: Do not switch to ReceivingData if address is invalid
libvhost-user: Report descriptor index on panic

Prasad J Pandit (2):
ati-vga: check mm_index before recursive call (CVE-2020-13800)
es1370: check total frame count against current frame

Raphael Pour (1):
qemu-nbd: Close inherited stderr

Richard Henderson (2):
target/arm: Clear tail in gvec_fmul_idx_*, gvec_fmla_idx_* target/hppa: Free some temps in do_sub

Sergei Trofimovich (1):
linux-user/strace.list: fix epoll_create{,1} -strace output

Stefan Berger (2):
tpm: tpm_spapr: Exit on TPM backend failures
tests: tpm: Skip over pcrUpdateCounter byte in result comparison

Stefan Hajnoczi (4):
virtiofsd: add --rlimit-nofile=NUM option
virtiofsd: stay below fs.file-max sysctl value (CVE-2020-10717)
aio-posix: don't duplicate fd handler deletion in fdmon_io_uring_destroy()
aio-posix: disable fdmon-io_uring when GSource is used

Stefano Stabellini (2):
Revert "9p: init_in_iov_from_pdu can truncate the size" xen/9pfs: yield when there isn't enough room on the ring

Thomas Huth (1):
net: Do not include a newline in the id of -nic devices

Vladimir Sementsov-Ogievskiy (1):
migration/block-dirty-bitmap: fix dirty_bitmap_mig_before_vm_start

Yuri Benditovich (1):
virtio-net: align RSC fields with updated virtio-net header

lichun (1):
chardev/tcp: Fix error message double free error

 backends/hostmem.c                                 |   6 +-
 block.c                                            |   7 +-
 block/io.c                                         |  10 +-
 block/nbd.c                                        |  21 ++--
 chardev/char-socket.c                              |   8 +-
 contrib/libvhost-user/libvhost-user.c              |   4 +-
 docs/system/arm/orangepi.rst                       |  16 ++-
 hw/9pfs/9p-util.h                                  |  13 ++
 hw/9pfs/9p.c                                       |  34 ++----
 hw/9pfs/9p.h                                       |  10 +-
 hw/9pfs/virtio-9p-device.c                         |  11 +-
 hw/9pfs/xen-9p-backend.c                           |  41 +++++--
 hw/acpi/core.c                                     |   9 +-
 hw/arm/sbsa-ref.c                                  |   2 +-
 hw/audio/es1370.c                                  |   7 +-
 hw/audio/gusemu_hal.c                              |   2 +-
 hw/audio/gusemu_mixer.c                            |   2 +-
 hw/display/artist.c                                |  12 +-
 hw/display/ati.c                                   |  10 +-
 hw/i386/intel_iommu.c                              |   7 +-
 hw/i386/intel_iommu_internal.h                     |   3 +-
 hw/net/e1000e_core.c                               |  10 +-
 hw/net/tulip.c                                     |   6 -
 hw/net/virtio-net.c                                |  29 +----
 hw/riscv/sifive_clint.c                            |   2 +-
 hw/s390x/virtio-ccw.c                              |   6 +
 hw/sd/pxa2xx_mmci.c                                |   4 +-
 hw/sd/sd.c                                         |  90 ++++++++++----
 hw/tpm/tpm_spapr.c                                 |   5 +-
 hw/usb/core.c                                      |  16 ++-
 hw/usb/dev-mtp.c                                   |  11 +-
 hw/usb/hcd-xhci.c                                  |   4 +-
 hw/virtio/virtio-balloon.c                         | 133 ++++++++++++---------
 hw/virtio/virtio-pci.c                             |  38 ++++--
 hw/virtio/virtio.c                                 |  25 ++++
 include/block/aio.h                                |   3 +
 include/hw/virtio/virtio-balloon.h                 |  20 ++--
 include/hw/virtio/virtio.h                         |   2 +
 include/qemu/osdep.h                               |  10 ++
 include/standard-headers/linux/ethtool.h           |  10 +-
 include/standard-headers/linux/input-event-codes.h |   5 +-
 include/standard-headers/linux/pci_regs.h          |   2 +
 include/standard-headers/linux/vhost_types.h       |   8 ++
 include/standard-headers/linux/virtio_balloon.h    |  12 +-
 include/standard-headers/linux/virtio_ids.h        |   1 +
 include/standard-headers/linux/virtio_net.h        | 102 +++++++++++++++-
 linux-headers/COPYING                              |   2 +
 linux-headers/asm-x86/kvm.h                        |   1 +
 linux-headers/asm-x86/unistd_32.h                  |   1 +
 linux-headers/asm-x86/unistd_64.h                  |   1 +
 linux-headers/asm-x86/unistd_x32.h                 |   1 +
 linux-headers/linux/kvm.h                          |  47 +++++++-
 linux-headers/linux/mman.h                         |   5 +-
 linux-headers/linux/userfaultfd.h                  |  40 +++++--
 linux-headers/linux/vfio.h                         |  37 ++++++
 linux-headers/linux/vhost.h                        |  24 ++++
 linux-user/strace.list                             |   4 +-
 memory.c                                           |  29 ++---
 migration/block-dirty-bitmap.c                     |   2 +-
 nbd/server.c                                       |  51 ++++++--
 net/net.c                                          |   4 +-
 pc-bios/openbios-ppc                               | Bin 696912 -> 696912 bytes
 pc-bios/openbios-sparc32                           | Bin 382048 -> 382048 bytes
 pc-bios/openbios-sparc64                           | Bin 1593408 -> 1593408 bytes
 qdev-monitor.c                                     |   2 +-
 qemu-nbd.c                                         |  13 +-
 qga/commands.c                                     |  17 ++-
 qga/main.c                                         |   6 +-
 roms/openbios                                      |   2 +-
 scsi/qemu-pr-helper.c                              |   4 +-
 target/arm/vec_helper.c                            |   2 +
 target/hppa/translate.c                            |   2 +
 target/i386/cpu.c                                  |   3 +
 target/i386/kvm.c                                  |  11 +-
 target/i386/kvm_i386.h                             |   1 +
 tests/acceptance/avocado_qemu/__init__.py          |  13 +-
 tests/acceptance/boot_linux.py                     |  49 ++++----
 tests/acceptance/boot_linux_console.py             |  55 ++++++---
 tests/qemu-iotests/028                             |  19 +++
 tests/qemu-iotests/028.out                         |  11 ++
 tests/qemu-iotests/143                             |   4 +
 tests/qemu-iotests/143.out                         |   2 +
 tests/qemu-iotests/283                             |   6 +-
 tests/qemu-iotests/283.out                         |   2 +-
 tests/qtest/libqos/pci-pc.c                        |   2 +-
 tests/qtest/tpm-util.c                             |   6 +-
 tests/qtest/usb-hcd-ehci-test.c                    |   2 +-
 tools/virtiofsd/fuse_lowlevel.h                    |   1 +
 tools/virtiofsd/helper.c                           |  47 ++++++++
 tools/virtiofsd/passthrough_ll.c                   |  22 ++--
 tools/virtiofsd/seccomp.c                          |   1 +
 util/aio-posix.c                                   |  13 ++
 util/aio-win32.c                                   |   4 +
 util/async.c                                       |   1 +
 util/fdmon-io_uring.c                              |  13 +-
 util/oslib-posix.c                                 |  35 ++++++
 util/oslib-win32.c                                 |  13 ++
 97 files changed, 1045 insertions(+), 377 deletions(-)