============================= [ BUG: Invalid wait context ] syzkaller #0 Tainted: G L ----------------------------- kworker/1:2H/17803 is trying to lock: ffff8880277b5bc8 (&gpc->lock){....}-{3:3}, at: kvm_xen_set_evtchn_fast+0x208/0x8d0 arch/x86/kvm/xen.c:1872 other info that might help us debug this: context-{2:2} locks held by kworker/1:2H/17803: 3, on CPU#1: #0: ffff88801c869d48 ((wq_completion)events_highpri){+.+.}-{0:0}, at: rcu_lock_acquire include/linux/rcupdate.h:309 [inline] #0: ffff88801c869d48 ((wq_completion)events_highpri){+.+.}-{0:0}, at: rcu_read_lock include/linux/rcupdate.h:849 [inline] #0: ffff88801c869d48 ((wq_completion)events_highpri){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3478 [inline] #0: ffff88801c869d48 ((wq_completion)events_highpri){+.+.}-{0:0}, at: process_scheduled_works+0x99a/0x1650 kernel/workqueue.c:3596 #1: ffffc900015d7c40 ((work_completion)(&vmidi->output_work)){+.+.}-{0:0}, at: rcu_lock_acquire include/linux/rcupdate.h:309 [inline] #1: ffffc900015d7c40 ((work_completion)(&vmidi->output_work)){+.+.}-{0:0}, at: rcu_read_lock include/linux/rcupdate.h:849 [inline] #1: ffffc900015d7c40 ((work_completion)(&vmidi->output_work)){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3478 [inline] #1: ffffc900015d7c40 ((work_completion)(&vmidi->output_work)){+.+.}-{0:0}, at: process_scheduled_works+0x99a/0x1650 kernel/workqueue.c:3596 #2: ffff8880277b6118 (&kvm->srcu){.?.+}-{0:0}, at: srcu_lock_acquire include/linux/srcu.h:249 [inline] #2: ffff8880277b6118 (&kvm->srcu){.?.+}-{0:0}, at: srcu_read_lock include/linux/srcu.h:365 [inline] #2: ffff8880277b6118 (&kvm->srcu){.?.+}-{0:0}, at: kvm_xen_set_evtchn_fast+0x1d2/0x8d0 arch/x86/kvm/xen.c:1870 stack backtrace: CPU: 1 UID: 0 PID: 17803 Comm: kworker/1:2H Tainted: G L syzkaller #0 PREEMPT(full) Tainted: [L]=SOFTLOCKUP Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/06/2026 Workqueue: events_highpri snd_vmidi_output_work Call Trace: dump_stack_lvl+0xe8/0x150 lib/dump_stack.c:120 print_lock_invalid_wait_context kernel/locking/lockdep.c:4874 [inline] check_wait_context kernel/locking/lockdep.c:4946 [inline] __lock_acquire+0xf5b/0x2de0 kernel/locking/lockdep.c:5238 lock_acquire+0x115/0x350 kernel/locking/lockdep.c:5942 __raw_read_lock_irqsave include/linux/rwlock_api_smp.h:174 [inline] _raw_read_lock_irqsave+0x48/0x60 kernel/locking/spinlock.c:271 kvm_xen_set_evtchn_fast+0x208/0x8d0 arch/x86/kvm/xen.c:1872 xen_timer_callback+0x109/0x220 arch/x86/kvm/xen.c:139 __run_hrtimer kernel/time/hrtimer.c:2109 [inline] __hrtimer_run_queues+0x371/0xa10 kernel/time/hrtimer.c:2166 hrtimer_interrupt+0x4cd/0xaa0 kernel/time/hrtimer.c:2285 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1062 [inline] __sysvec_apic_timer_interrupt+0x102/0x430 arch/x86/kernel/apic/apic.c:1079 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1073 [inline] sysvec_apic_timer_interrupt+0xa1/0xc0 arch/x86/kernel/apic/apic.c:1073 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:674 RIP: 0010:__raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:211 [inline] RIP: 0010:_raw_spin_unlock_irqrestore+0x47/0x80 kernel/locking/spinlock.c:221 Code: f7 e8 dd e3 83 f5 f7 c3 00 02 00 00 74 05 e8 00 ad b0 f5 9c 58 a9 00 02 00 00 75 29 f7 c3 00 02 00 00 74 01 fb bf 01 00 00 00 c4 c8 74 f5 65 48 8b 05 2c 08 e6 08 48 85 c0 74 18 5b 41 5e c3 RSP: 0000:ffffc900015d79b0 EFLAGS: 00000206 RAX: 0000000000000006 RBX: 0000000000000293 RCX: 8000000000000001 RDX: 0000000000000006 RSI: ffffffff8e8c30b5 RDI: 0000000000000001 RBP: 0000000000000001 R08: ffffffff91dee2bf R09: 1ffffffff23bdc57 R10: dffffc0000000000 R11: fffffbfff23bdc58 R12: ffffc900015d7a60 R13: ffff888033427c18 R14: ffff888033427c38 R15: ffff888033427c00 spin_unlock_irqrestore include/linux/spinlock.h:425 [inline] class_spinlock_irqsave_destructor include/linux/spinlock.h:644 [inline] snd_rawmidi_transmit+0x9c/0xd0 sound/core/rawmidi.c:1549 snd_vmidi_output_work+0x1a5/0x3e0 sound/core/seq/seq_virmidi.c:152 process_one_work kernel/workqueue.c:3513 [inline] process_scheduled_works+0xc5d/0x1650 kernel/workqueue.c:3596 worker_thread+0xa47/0xfb0 kernel/workqueue.c:3677 kthread+0x38b/0x480 kernel/kthread.c:436 ret_from_fork+0x514/0xb70 arch/x86/kernel/process.c:158 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 ---------------- Code disassembly (best guess): 0: f7 e8 imul %eax 2: dd e3 fucom %st(3) 4: 83 f5 f7 xor $0xfffffff7,%ebp 7: c3 ret 8: 00 02 add %al,(%rdx) a: 00 00 add %al,(%rax) c: 74 05 je 0x13 e: e8 00 ad b0 f5 call 0xf5b0ad13 13: 9c pushf 14: 58 pop %rax 15: a9 00 02 00 00 test $0x200,%eax 1a: 75 29 jne 0x45 1c: f7 c3 00 02 00 00 test $0x200,%ebx 22: 74 01 je 0x25 24: fb sti 25: bf 01 00 00 00 mov $0x1,%edi * 2a: e8 c4 c8 74 f5 call 0xf574c8f3 <-- trapping instruction 2f: 65 48 8b 05 2c 08 e6 mov %gs:0x8e6082c(%rip),%rax # 0x8e60863 36: 08 37: 48 85 c0 test %rax,%rax 3a: 74 18 je 0x54 3c: 5b pop %rbx 3d: 41 5e pop %r14 3f: c3 ret