[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Please unblock libvirt 0.8.3-2



Hi,
libvirt 0.8.3-2 adds an important upgrade notice since probing of disk
image types got disabled by upstream. It also fixes a minor issue with
Xen block device statistics. Please unblock, debdiff attached.
Cheers,
 -- Guido
diff -Nru libvirt-0.8.3/debian/changelog libvirt-0.8.3/debian/changelog
--- libvirt-0.8.3/debian/changelog	2010-08-06 23:06:40.000000000 +0200
+++ libvirt-0.8.3/debian/changelog	2010-09-29 14:07:46.000000000 +0200
@@ -1,3 +1,12 @@
+libvirt (0.8.3-2) unstable; urgency=low
+
+  * [4097bbd] New patch 0007-Fix-block-statistics-with-newer-versions-
+    of-Xen.patch. Fix block statistics with newer versions of Xen 
+    (Closes: #596004) - thanks to Gerald Turner for the patch
+  * [d554da3] Explain disk image probing changes (Closes: #594962)
+
+ -- Guido Günther <agx@sigxcpu.org>  Wed, 29 Sep 2010 14:00:38 +0200
+
 libvirt (0.8.3-1) unstable; urgency=low
 
   [ Guido Günther ]
diff -Nru libvirt-0.8.3/debian/libvirt-bin.NEWS libvirt-0.8.3/debian/libvirt-bin.NEWS
--- libvirt-0.8.3/debian/libvirt-bin.NEWS	2010-08-06 23:06:40.000000000 +0200
+++ libvirt-0.8.3/debian/libvirt-bin.NEWS	2010-09-29 13:29:13.000000000 +0200
@@ -7,3 +7,19 @@
   anything.
 
  -- Guido Günther <agx@sigxcpu.org>  Mon, 12 Jul 2010 19:58:35 +0200
+
+libvirt (0.8.3-2) unstable; urgency=low
+
+  Disk format probing is disabled now by default for security reasons
+  (CVE-2010-2237). You need to explicitly add a driver type element to your
+  disk devices in the domain XML:
+
+      <disk ...>
+         <driver name='qemu' type='qcow2'/>
+         ...
+      </disk>
+
+  Alternatively you can reenable probing by setting allow_disk_format_probing=1
+  in /etc/libvirt/qemu.conf but this is insecure.
+
+ -- Guido Günther <agx@sigxcpu.org>  Wed, 29 Sep 2010 13:10:02 +0200
diff -Nru libvirt-0.8.3/debian/patches/0007-Fix-block-statistics-with-newer-versions-of-Xen.patch libvirt-0.8.3/debian/patches/0007-Fix-block-statistics-with-newer-versions-of-Xen.patch
--- libvirt-0.8.3/debian/patches/0007-Fix-block-statistics-with-newer-versions-of-Xen.patch	1970-01-01 01:00:00.000000000 +0100
+++ libvirt-0.8.3/debian/patches/0007-Fix-block-statistics-with-newer-versions-of-Xen.patch	2010-09-29 13:05:45.000000000 +0200
@@ -0,0 +1,42 @@
+From: =?UTF-8?q?Guido=20G=C3=BCnther?= <agx@sigxcpu.org>
+Date: Fri, 10 Sep 2010 15:57:35 +0200
+Subject: [PATCH] Fix block statistics with newer versions of Xen
+
+Apparently the xen block device statistics moved from
+"/sys/devices/xen-backend/vbd-%d-%d/statistics/%s"
+to
+"/sys/bus/xen-backend/devices/vbd-%d-%d/statistics/%s"
+
+* src/xen/block_stats.c: try the extra path in case of failure to
+  find the statistics in /sys
+
+Origin: upstream, http://libvirt.org/git/?p=libvirt.git;a=commit;h=8a70113a9949fd482151f2962dd760364525a996
+Closes: #596004
+---
+ src/xen/block_stats.c |   12 ++++++++++++
+ 1 files changed, 12 insertions(+), 0 deletions(-)
+
+diff --git a/src/xen/block_stats.c b/src/xen/block_stats.c
+index 6e7a5c3..1d875f2 100644
+--- a/src/xen/block_stats.c
++++ b/src/xen/block_stats.c
+@@ -118,6 +118,18 @@ read_bd_stat (int device, int domid, const char *str)
+     int64_t r;
+ 
+     snprintf (path, sizeof path,
++              "/sys/bus/xen-backend/devices/vbd-%d-%d/statistics/%s",
++              domid, device, str);
++    r = read_stat (path);
++    if (r >= 0) return r;
++
++    snprintf (path, sizeof path,
++              "/sys/bus/xen-backend/devices/tap-%d-%d/statistics/%s",
++              domid, device, str);
++    r = read_stat (path);
++    if (r >= 0) return r;
++
++    snprintf (path, sizeof path,
+               "/sys/devices/xen-backend/vbd-%d-%d/statistics/%s",
+               domid, device, str);
+     r = read_stat (path);
+-- 
diff -Nru libvirt-0.8.3/debian/patches/series libvirt-0.8.3/debian/patches/series
--- libvirt-0.8.3/debian/patches/series	2010-08-05 23:20:55.000000000 +0200
+++ libvirt-0.8.3/debian/patches/series	2010-09-29 13:05:45.000000000 +0200
@@ -4,3 +4,4 @@
 0004-fix-Debian-specific-path-to-hvm-loader.patch
 0005-Terminate-nc-on-EOF.patch
 0006-patch-qemuMonitorTextGetMigrationStatus-to-intercept.patch
+0007-Fix-block-statistics-with-newer-versions-of-Xen.patch

Reply to: