1. 15 3月, 2018 1 次提交
  2. 14 3月, 2018 1 次提交
    • D
      qemu: avoid denial of service reading from QEMU guest agent (CVE-2018-1064) · fbf31e1a
      Daniel P. Berrangé 提交于
      We read from the agent until seeing a \r\n pair to indicate a completed
      reply or event. To avoid memory denial-of-service though, we must have a
      size limit on amount of data we buffer. 10 MB is large enough that it
      ought to cope with normal agent replies, and small enough that we're not
      consuming unreasonable mem.
      
      This is identical to the flaw we had reading from the QEMU monitor
      as CVE-2018-5748, so rather embarrassing that we forgot to fix
      the agent code at the same time.
      Signed-off-by: NDaniel P. Berrangé <berrange@redhat.com>
      fbf31e1a
  3. 13 3月, 2018 7 次提交
  4. 12 3月, 2018 3 次提交
  5. 09 3月, 2018 12 次提交
  6. 08 3月, 2018 5 次提交
  7. 07 3月, 2018 2 次提交
    • J
      qemu: report a nicer error when USB is disabled · 1cdc9ece
      Ján Tomko 提交于
      If the user tries to define a domain that has
      
        <controller type='usb' model='none'/>
      
      and also some USB devices, we report an error:
        error: internal error: No free USB ports
      
      Which is technically still correct for a domain with no USB ports.
      
      Change it to:
      
      USB is disabled for this domain, but USB devices are present in the domain XML
      
      https://bugzilla.redhat.com/show_bug.cgi?id=1347550Signed-off-by: NJán Tomko <jtomko@redhat.com>
      1cdc9ece
    • M
      qemuDomainObjBeginJob: Don't account DESTROY job to maxQueuedJobs · c1766641
      Michal Privoznik 提交于
      When trying to destroy a domain (e.g. because we've seen EOF on
      the monitor) we try to acquire QEMU_JOB_DESTROY. However, if
      max_queued is set in qemu.conf this may fail and since our code
      doesn't count on that we will still report domain as active even
      though the qemu process is long gone. More specifically, if we've
      seen EOF on the monitor, qemuProcessHandleMonitorEOF() is called
      which sends MONITOR_EOF job to the event worker pool and
      unregisters monitor from the event loop. The worker pool calls
      processMonitorEOFEvent() which tries to set job which may fail
      due to the limit as described above.
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      c1766641
  8. 06 3月, 2018 2 次提交
  9. 28 2月, 2018 1 次提交
    • Z
      qemu: fix memory leak of @vporttype during migration. · f7399de1
      Zhangzijian 提交于
      12 bytes in 1 blocks are definitely lost in loss record 188 of 1,145
      at 0x4C2B6CD: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
      by 0x5D2CD77: xmlStrndup (in /lib/x86_64-linux-gnu/libxml2.so.2.7.8)
      by 0x514E137: virXMLPropString (virxml.c:506)
      by 0x234F51: qemuMigrationCookieNetworkXMLParse qemu_migration.c:1001)
      by 0x235FF8: qemuMigrationCookieXMLParse (qemu_migration.c:1333)
      by 0x236214: qemuMigrationCookieXMLParseStr (qemu_migration.c:1372)
      by 0x2365D2: qemuMigrationEatCookie (qemu_migration.c:1456)
      by 0x243DBA: qemuMigrationFinish (qemu_migration.c:6381)
      by 0x204032: qemuDomainMigrateFinish3 (qemu_driver.c:13228)
      by 0x521CCBB: virDomainMigrateFinish3 (libvirt-domain.c:4788)
      by 0x1936DE: remoteDispatchDomainMigrateFinish3 (remote.c:4580)
      by 0x16DBB1: remoteDispatchDomainMigrateFinish3Helper(remote_dispatch.h:7582)
      Signed-off-by: NZhangZijian <zhang.zijian@h3c.com>
      f7399de1
  10. 26 2月, 2018 3 次提交
  11. 23 2月, 2018 3 次提交