]> xenbits.xensource.com Git - libvirt.git/commitdiff
Xen: use correct domctl version in domaininfolist union
authorJim Fehlig <jfehlig@suse.com>
Mon, 11 Jan 2016 22:17:53 +0000 (15:17 -0700)
committerJim Fehlig <jfehlig@suse.com>
Tue, 12 Jan 2016 17:37:56 +0000 (10:37 -0700)
Commmit fd2e3c4c used the domctl version 8 structure for version 9
in the xen_getdomaininfolist union, resulting in insufficient buffer
size (and subsequent memory corruption) for the GETDOMAININFOLIST
ioctl.

Signed-off-by: Jim Fehlig <jfehlig@suse.com>
src/xen/xen_hypervisor.c

index 431c47abdf17bef3abaee8d9c6861bd8e01ec380..c1834cb1b5128de60612c912546a7c32fc07e957 100644 (file)
@@ -309,7 +309,7 @@ union xen_getdomaininfolist {
     struct xen_v2d6_getdomaininfo *v2d6;
     struct xen_v2d7_getdomaininfo *v2d7;
     struct xen_v2d8_getdomaininfo *v2d8;
-    struct xen_v2d8_getdomaininfo *v2d9;
+    struct xen_v2d9_getdomaininfo *v2d9;
 };
 typedef union xen_getdomaininfolist xen_getdomaininfolist;