]> xenbits.xensource.com Git - xen.git/commitdiff
free domain's vcpu array
authorJan Beulich <jbeulich@suse.com>
Thu, 29 Oct 2015 13:27:02 +0000 (14:27 +0100)
committerJan Beulich <jbeulich@suse.com>
Thu, 29 Oct 2015 13:27:02 +0000 (14:27 +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>
master commit: d46896ebbb23f3a9fef2eb6066ae614fd1acfd96
master date: 2015-10-29 13:35:40 +0100

xen/common/domain.c

index fefef402a4523d39607148af56c91c7129b6b7f0..fa6d939227db2e61f1ba01992bdfe0be8c78f9f2 100644 (file)
@@ -734,6 +734,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);