diff options
| author | Jan Kiszka <jan.kiszka@siemens.com> | 2011-05-23 04:33:05 -0400 |
|---|---|---|
| committer | Luis Henriques <luis.henriques@canonical.com> | 2012-05-01 06:00:11 -0400 |
| commit | e1263827312b2d70158aa58dd7765f501d9b82cd (patch) | |
| tree | 2ab85929c85474152f6cd16c2768558e64d32d14 /include/linux/loop.h | |
| parent | b0527410f4532729d56a193ab350556fd659c9d4 (diff) | |
KVM: Clean up error handling during VCPU creation
BugLink: http://bugs.launchpad.net/bugs/971685
CVE-2012-1601
So far kvm_arch_vcpu_setup is responsible for freeing the vcpu struct if
it fails. Move this confusing resonsibility back into the hands of
kvm_vm_ioctl_create_vcpu. Only kvm_arch_vcpu_setup of x86 is affected,
all other archs cannot fail.
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
(cherry picked from commit d780592b99d7d8a5ff905f6bacca519d4a342c76)
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
Acked-by: Stefan Bader <stefan.bader@canonical.com>
Acked-by: Herton Krzesinski <herton.krzesinski@canonical.com>
Diffstat (limited to 'include/linux/loop.h')
0 files changed, 0 insertions, 0 deletions
