ARINC653: fix sched_priv corruption in alloc_vdata
authorNathan Studer <nate.studer@dornerworks.com>
Mon, 4 Nov 2013 15:20:33 +0000 (16:20 +0100)
committerJan Beulich <jbeulich@suse.com>
Mon, 4 Nov 2013 15:20:33 +0000 (16:20 +0100)
commitd8b037eaf34233791124bf4da1f7a22c98e42523
tree646c14e0bdf90eae277a693452ec145a34cb497f
parent7b5af1df122092243a3697409d5a5ad3b9944da4
ARINC653: fix sched_priv corruption in alloc_vdata

The ARINC653 scheduler was directly assigning and manipulating
the sched_priv field of a vcpu in its alloc_vdata function.

When creating a cpu pool, this resulted in the corruption
of the sched_priv field of the vcpu, which was then passed
to the initial scheduler's free_vdata function with
disastrous results.

Signed-off-by: Nathan Studer <nate.studer@dornerworks.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: George Dunlap <george.dunlap@eu.citrix.com>
xen/common/sched_arinc653.c