1. 25 4月, 2018 1 次提交
  2. 24 4月, 2018 5 次提交
    • D
      build: prevent unloading of dlopen'd modules · 71feef92
      Daniel P. Berrangé 提交于
      We previously added "-z nodelete" to the build of libvirt.so to prevent
      crashes when thread local destructors run which point to a code that
      has been dlclose()d:
      
        commit 8e44e559
        Author: Daniel P. Berrange <berrange@redhat.com>
        Date:   Thu Sep 1 17:57:06 2011 +0100
      
            Prevent crash from dlclose() of libvirt.so
      
      The libvirtd loadable modules can suffer from the same problem if they
      were ever unloaded. Fortunately we don't ever call dlclose() on them,
      but lets add a second layer of protection by linking them with the
      "-z nodelete" flag. While we're doing this, lets add a third layer of
      protection by passing RTLD_NODELETE to dlopen().
      Signed-off-by: NDaniel P. Berrangé <berrange@redhat.com>
      71feef92
    • D
      remote: stop trying to load Xen driver module · 87680332
      Daniel P. Berrangé 提交于
      The Xen driver was recently deleted, but libvirtd has left over code
      that tries to use it. Fortunately this is dead code because WITH_XEN
      will never be defined anymore.
      Signed-off-by: NDaniel P. Berrangé <berrange@redhat.com>
      87680332
    • D
      build: prevent unloading of all public libraries · 419607c4
      Daniel P. Berrangé 提交于
      We previously added "-z nodelete" to the build of libvirt.so to prevent
      crashes when thread local destructors run which point to a code that
      has been dlclose()d:
      
        commit 8e44e559
        Author: Daniel P. Berrange <berrange@redhat.com>
        Date:   Thu Sep 1 17:57:06 2011 +0100
      
            Prevent crash from dlclose() of libvirt.so
      
      We forgot to copy this protection into the libvirt-qemu.so, libvirt-lxc.so
      and libvirt-admin.so libraries when we introduced them.
      Signed-off-by: NDaniel P. Berrangé <berrange@redhat.com>
      419607c4
    • J
      Check return status for virUUIDGenerate · da613819
      John Ferlan 提交于
      Although legal, a few paths were not checking a return value < 0
      for failure instead they checked a non zero failure.
      
      Clean them all up to be consistent.
      Signed-off-by: NJohn Ferlan <jferlan@redhat.com>
      da613819
    • M
      virNumaGetHugePageInfo: Return page_avail and page_free as ULL · 31daccf5
      Michal Privoznik 提交于
      https://bugzilla.redhat.com/show_bug.cgi?id=1569678
      
      On some large systems (with ~400GB of RAM) it is possible for
      unsigned int to overflow in which case we report invalid number
      of 4K pages pool size. Switch to unsigned long long.
      
      We hit overflow in virNumaGetPages when doing:
      
          huge_page_sum += 1024 * page_size * page_avail;
      
      because although 'huge_page_sum' is an unsigned long long, the
      page_size and page_avail are both unsigned int, so the promotion
      to unsigned long long doesn't happen until the sum has been
      calculated, by which time we've already overflowed.
      
      Turning page_avail into a unsigned long long is not strictly
      needed until we need ability to represent more than 2^32
      4k pages, which equates to 16 TB of RAM. That's not
      outside the realm of possibility, so makes sense that we
      change it to unsigned long long to avoid future problems.
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      Reviewed-by: NDaniel P. Berrangé <berrange@redhat.com>
      31daccf5
  3. 23 4月, 2018 4 次提交
  4. 20 4月, 2018 19 次提交
  5. 19 4月, 2018 8 次提交
  6. 18 4月, 2018 3 次提交