]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
KVM: x86/xen: Fix eventfd error handling in kvm_xen_eventfd_assign()
authorEiichi Tsukata <eiichi.tsukata@nutanix.com>
Fri, 28 Oct 2022 09:26:31 +0000 (09:26 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 26 Nov 2022 08:27:54 +0000 (09:27 +0100)
commitd76f46f47dfde220712d1420ee5dbc546c8fc674
tree74888ff46da08f248a369fc9ddc05b31cd69c830
parent2526ac6b0f5a9b38e7e9073e37141cf78408078d
KVM: x86/xen: Fix eventfd error handling in kvm_xen_eventfd_assign()

commit 7353633814f6e5b4899fb9ee1483709d6bb0e1cd upstream.

Should not call eventfd_ctx_put() in case of error.

Fixes: 2fd6df2f2b47 ("KVM: x86/xen: intercept EVTCHNOP_send from guests")
Reported-by: syzbot+6f0c896c5a9449a10ded@syzkaller.appspotmail.com
Signed-off-by: Eiichi Tsukata <eiichi.tsukata@nutanix.com>
Message-Id: <20221028092631.117438-1-eiichi.tsukata@nutanix.com>
[Introduce new goto target instead. - Paolo]
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/x86/kvm/xen.c