1. 09 7月, 2018 1 次提交
    • M
      qemuBuildSCSIiSCSIHostdevDrvStr: Don't leak @netsource and @srcprops · 87d80b50
      Michal Privoznik 提交于
      After 6b770f9a both @netsource and @srcprops are leaked
      because of early return introduced in the commit.
      
      ==1812== 644 bytes in 4 blocks are definitely lost in loss record 835 of 885
      ==1812==    at 0x4C2F12F: realloc (vg_replace_malloc.c:785)
      ==1812==    by 0x8846393: xmlSaveUriRealloc (in /usr/lib64/libxml2.so.2.9.8)
      ==1812==    by 0x8846B1C: xmlSaveUri (in /usr/lib64/libxml2.so.2.9.8)
      ==1812==    by 0x5DDA619: virURIFormat (viruri.c:256)
      ==1812==    by 0x56E941B: qemuBuildNetworkDriveURI (qemu_command.c:781)
      ==1812==    by 0x56E979A: qemuBuildNetworkDriveStr (qemu_command.c:859)
      ==1812==    by 0x56F3A0B: qemuBuildSCSIiSCSIHostdevDrvStr (qemu_command.c:4664)
      ==1812==    by 0x56F3D1F: qemuBuildSCSIHostdevDrvStr (qemu_command.c:4732)
      ==1812==    by 0x56F57F7: qemuBuildHostdevCommandLine (qemu_command.c:5337)
      ==1812==    by 0x570303A: qemuBuildCommandLine (qemu_command.c:10376)
      ==1812==    by 0x57604EE: qemuProcessCreatePretendCmd (qemu_process.c:6649)
      ==1812==    by 0x11352A: testCompareXMLToArgv (qemuxml2argvtest.c:566)
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      87d80b50
  2. 06 7月, 2018 4 次提交
  3. 04 7月, 2018 2 次提交
  4. 03 7月, 2018 9 次提交
  5. 02 7月, 2018 2 次提交
  6. 28 6月, 2018 2 次提交
  7. 27 6月, 2018 6 次提交
  8. 26 6月, 2018 10 次提交
  9. 25 6月, 2018 1 次提交
  10. 22 6月, 2018 2 次提交
    • W
      qemu: fix msg could be a wild pointer in qemuMonitorIOProcess() · f92d164c
      Weilun Zhu 提交于
      As qemuMonitorJSONIOProcess will call qemuMonitorJSONIOProcessEvent
      which unlocks the monitor mutex, there is some extreme situation,
      eg qemu send message to monitor twice in a short time, where the
      local viriable 'msg' of qemuMonitorIOProcess could be a wild point:
      
      1. qemuMonitorSend() assign mon->msg to parameter 'msg', which is alse a
      local variable of its caller qemuMonitorJSONCommandWithFd(), cause
      eventloop to send message to monitor, then wait condition.
      2. qemu send message to monitor for the first time immediately.
      3. qemuMonitorIOProcess() is called, then wake up the qemuMonitorSend()
      thread, but the qemuMonitorSend() thread stuck for a while as cpu pressure
      or some other reasons, which means the qemu monitor is still unlocked.
      4. qemu send event message to monitor for the second time,
      such as RTC_CHANGE event
      5. qemuMonitorIOProcess() is called again, the local viriable 'msg' is
      assigned to mon->msg.
      6. qemuMonitorIOProcess() call qemuMonitorJSONIOProcess() to deal with
      the qemu event.
      7. qemuMonitorJSONIOProcess() unlock the qemu monitor in the macro
      'QEMU_MONITOR_CALLBACK', then qemuMonitorSend() thread get the mutex
      and free the mon->msg, assign mon->msg to NULL.
      Signed-off-by: NWeilun Zhu <zhuweilun@huawei.com>
      Reviewed-by: NJiri Denemark <jdenemar@redhat.com>
      f92d164c
    • A
      qemu: Escape commas for qemuBuildDiskThrottling · 1136fd4e
      Anya Harter 提交于
      Add comma escaping for disk->blkdeviotune.group_name.
      Signed-off-by: NAnya Harter <aharter@redhat.com>
      Reviewed-by: NJohn Ferlan <jferlan@redhat.com>
      1136fd4e
  11. 21 6月, 2018 1 次提交