> Isn't this needed in the other custom binary files ?
>
> ./virt/kvm/kvm_main.c
> ./debian/binary-custom.d/xen/src/virt/kvm/kvm_main.c
> ./debian/binary-custom.d/openvz/src/virt/kvm/kvm_main.c
Updated patch:
From: Herton Ronaldo Krzesinski <herton.krzesinski@canonical.com>
Subject: [PATCH] KVM: fix backport of 3e51570 on hardy
CVE-2012-1601
BugLink: http://bugs.launchpad.net/bugs/971685
Sasha Levin reported that our backport of 3e51570 ("KVM: Ensure all
vcpus are consistent with in-kernel irqchip settings") has a bug, and
suggested possible fixes. We increment kvm->online_vcpus, but not
decrement it in the case create_vcpu_fd fails, which could cause issues
if it fails and vm is not destroyed after (counter will be out of sync).
In the upstream change this is not a problem since the increment is done
after create_vcpu_fd is called. The solution chosen here is to just
decrement it on the failure path.