]> xenbits.xensource.com Git - people/julieng/xen-unstable.git/commitdiff
free domain's vcpu array
authorJan Beulich <jbeulich@suse.com>
Thu, 29 Oct 2015 12:35:40 +0000 (13:35 +0100)
committerJan Beulich <jbeulich@suse.com>
Thu, 29 Oct 2015 12:35:40 +0000 (13:35 +0100)
This was overlooked in fb442e2171 ("x86_64: allow more vCPU-s per
guest").

This is CVE-2015-7969 / XSA-149.

Reported-by: Ian Campbell <ian.campbell@citrix.com>
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Ian Campbell <ian.campbell@citrix.com>
xen/common/domain.c

index b95f29a015d8a1b02a74783741cc84e1f70f4e7e..f56b7ffb3d2f18f542fa16ee4bc535bb158b22d6 100644 (file)
@@ -841,6 +841,7 @@ static void complete_domain_destroy(struct rcu_head *head)
 
     xsm_free_security_domain(d);
     free_cpumask_var(d->domain_dirty_cpumask);
+    xfree(d->vcpu);
     free_domain_struct(d);
 
     send_global_virq(VIRQ_DOM_EXC);