]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86: don't forget vcpu_put() in kvm_arch_vcpu_ioctl_set_sregs()
authorEric Biggers <ebiggers@google.com>
Thu, 21 Dec 2017 00:24:27 +0000 (16:24 -0800)
committerRadim Krčmář <rkrcmar@redhat.com>
Fri, 2 Feb 2018 16:49:55 +0000 (17:49 +0100)
commit3e65356869b363e75453a6deb619ce89ca193e1c
tree73d504a4b5641c7171b055b22770a8a5d786e6b7
parent7871b941b18a79667050bcf813db7c12613dacd3
KVM: x86: don't forget vcpu_put() in kvm_arch_vcpu_ioctl_set_sregs()

Due to a bad merge resolution between commit 4ba026612306 ("KVM/x86:
Check input paging mode when cs.l is set") and commit 42c17da5816f
("KVM: Move vcpu_load to arch-specific kvm_arch_vcpu_ioctl_set_sregs"),
there is a case in kvm_arch_vcpu_ioctl_set_sregs() where vcpu_put() is
not called after vcpu_get().  Fix it.

Reported-by: syzbot <syzkaller@googlegroups.com>
Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>
arch/x86/kvm/x86.c