1. 15 5月, 2017 2 次提交
  2. 12 5月, 2017 7 次提交
  3. 11 5月, 2017 3 次提交
  4. 10 5月, 2017 6 次提交
  5. 09 5月, 2017 18 次提交
  6. 06 5月, 2017 1 次提交
  7. 05 5月, 2017 1 次提交
    • M
      virNWFilterObjListFree: Don't leak nwfilters->objs · 772e4247
      Michal Privoznik 提交于
      When adding a nwfilter onto the list in
      virNWFilterObjListAssignDef() this array is re-allocated to match
      demand for new size. However, it is never freed leading to a
      leak:
      
      ==26535== 136 bytes in 1 blocks are definitely lost in loss record 1,079 of 1,250
      ==26535==    at 0x4C2E2BE: realloc (vg_replace_malloc.c:785)
      ==26535==    by 0x54BA28E: virReallocN (viralloc.c:245)
      ==26535==    by 0x54BA384: virExpandN (viralloc.c:294)
      ==26535==    by 0x54BA657: virInsertElementsN (viralloc.c:436)
      ==26535==    by 0x55DB011: virNWFilterObjListAssignDef (virnwfilterobj.c:362)
      ==26535==    by 0x55DB530: virNWFilterObjListLoadConfig (virnwfilterobj.c:503)
      ==26535==    by 0x55DB635: virNWFilterObjListLoadAllConfigs (virnwfilterobj.c:539)
      ==26535==    by 0x2AC5A28B: nwfilterStateInitialize (nwfilter_driver.c:250)
      ==26535==    by 0x5621C64: virStateInitialize (libvirt.c:770)
      ==26535==    by 0x124379: daemonRunStateInit (libvirtd.c:881)
      ==26535==    by 0x554AC78: virThreadHelper (virthread.c:206)
      ==26535==    by 0x8F5F493: start_thread (in /lib64/libpthread-2.23.so)
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      Reviewed-by: NJohn Ferlan <jferlan@redhat.com>
      772e4247
  8. 04 5月, 2017 2 次提交
    • M
      virPerfEventIsEnabled: Accept NULL @perf · 033369c7
      Michal Privoznik 提交于
      After bdcf6e48 there is a crasher in libvirt. The commit assumes
      that priv->perf is always set. That is not true. For inactive
      domains, the priv->perf is not allocated as it is set in
      qemuProcessLaunch(). Now, usually we differentiate between
      accesses to inactive and active definition and it works just
      fine. Except for 'domstats'. There priv->perf is accessed without
      prior check for domain inactivity. While we could check for that,
      more robust solution is to make virPerfEventIsEnabled() accept
      NULL.
      
      How to reproduce:
      1) ensure you have at least one inactive domain
      2) virsh domstats
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      Reviewed-by: NDaniel P. Berrange <berrange@redhat.com>
      033369c7
    • E
      mdev: Fix mingw build by adding a check for non-NULL pointer · 574718d3
      Erik Skultety 提交于
      This patch fixes the following MinGW error (although actually being a
      false positive):
      
      ../../src/util/virmdev.c: In function 'virMediatedDeviceListMarkDevices':
      ../../src/util/virmdev.c:453:21: error: potential null pointer
      dereference [-Werror=null-dereference]
                const char *mdev_path = mdev->path;
                            ^~~~~~~~~
      Signed-off-by: NErik Skultety <eskultet@redhat.com>
      574718d3