Skip to content
Snippets Groups Projects
Commit c0368991 authored by Coleman Dietsch's avatar Coleman Dietsch Committed by Paolo Bonzini
Browse files

KVM: x86/xen: Stop Xen timer before changing IRQ

Stop Xen timer (if it's running) prior to changing the IRQ vector and
potentially (re)starting the timer. Changing the IRQ vector while the
timer is still running can result in KVM injecting a garbage event, e.g.
vm_xen_inject_timer_irqs() could see a non-zero xen.timer_pending from
a previous timer but inject the new xen.timer_virq.

Fixes: 53639526 ("KVM: x86/xen: handle PV timers oneshot mode")
Cc: stable@vger.kernel.org
Link: https://syzkaller.appspot.com/bug?id=8234a9dfd3aafbf092cc5a7cd9842e3ebc45fc42


Reported-by: default avatar <syzbot+e54f930ed78eb0f85281@syzkaller.appspotmail.com>
Signed-off-by: default avatarColeman Dietsch <dietschc@csp.edu>
Reviewed-by: default avatarSean Christopherson <seanjc@google.com>
Acked-by: default avatarDavid Woodhouse <dwmw@amazon.co.uk>
Message-Id: <20220808190607.323899-3-dietschc@csp.edu>
Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
parent af735db3
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment