============================= [ BUG: Invalid wait context ] syzkaller #0 Tainted: G L ----------------------------- syz-executor/13269 is trying to lock: ffff88804d9c9bc8 (&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 syz-executor/13269: 1, on CPU#0: #0: ffff88804d9ca118 (&kvm->srcu){.?.+}-{0:0}, at: srcu_lock_acquire include/linux/srcu.h:213 [inline] #0: ffff88804d9ca118 (&kvm->srcu){.?.+}-{0:0}, at: srcu_read_lock include/linux/srcu.h:320 [inline] #0: ffff88804d9ca118 (&kvm->srcu){.?.+}-{0:0}, at: kvm_xen_set_evtchn_fast+0x1d2/0x8d0 arch/x86/kvm/xen.c:1870 stack backtrace: CPU: 0 UID: 0 PID: 13269 Comm: syz-executor Tainted: G L syzkaller #0 PREEMPT(full) Tainted: [L]=SOFTLOCKUP Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/07/2026 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:2075 [inline] __hrtimer_run_queues+0x371/0xa10 kernel/time/hrtimer.c:2132 hrtimer_interrupt+0x4cd/0xaa0 kernel/time/hrtimer.c:2251 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1051 [inline] __sysvec_apic_timer_interrupt+0x102/0x430 arch/x86/kernel/apic/apic.c:1068 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1062 [inline] sysvec_apic_timer_interrupt+0xa1/0xc0 arch/x86/kernel/apic/apic.c:1062 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 4d 66 9f f5 f7 c3 00 02 00 00 74 05 e8 50 07 cc f5 9c 58 a9 00 02 00 00 75 29 f7 c3 00 02 00 00 74 01 fb bf 01 00 00 00 64 5a 90 f5 65 48 8b 05 ac a1 ba 08 48 85 c0 74 18 5b 41 5e c3 RSP: 0000:ffffc9001b5ffb98 EFLAGS: 00000206 RAX: 0000000000000002 RBX: 0000000000000246 RCX: 8000000000000001 RDX: 0000000000000000 RSI: ffffffff8e6a2015 RDI: 0000000000000001 RBP: 0000000000000001 R08: ffffffff919d71bf R09: 1ffffffff233ae37 R10: dffffc0000000000 R11: fffffbfff233ae38 R12: 000000000000c350 R13: dffffc0000000000 R14: ffff8880b8228600 R15: 0000000000000246 unlock_hrtimer_base kernel/time/hrtimer.c:1043 [inline] hrtimer_start_range_ns_user+0x2ba/0x430 kernel/time/hrtimer.c:1630 hrtimer_start_expires_user include/linux/hrtimer.h:247 [inline] hrtimer_sleeper_start_expires kernel/time/hrtimer.c:2357 [inline] do_nanosleep+0x17a/0x710 kernel/time/hrtimer.c:2434 hrtimer_nanosleep+0x18f/0x3a0 kernel/time/hrtimer.c:2483 __do_sys_clock_nanosleep_time32 kernel/time/posix-timers.c:1448 [inline] __se_sys_clock_nanosleep_time32+0x35d/0x3b0 kernel/time/posix-timers.c:1425 do_syscall_32_irqs_on arch/x86/entry/syscall_32.c:79 [inline] do_int80_emulation+0x198/0x500 arch/x86/entry/syscall_32.c:166 asm_int80_emulation+0x1a/0x20 arch/x86/include/asm/idtentry.h:598 RIP: 0023:0xf71e77ab Code: 57 56 53 8b 44 24 14 f6 00 08 75 23 8b 44 24 18 8b 5c 24 1c 8b 4c 24 20 8b 54 24 24 8b 74 24 28 8b 7c 24 2c 8b 6c 24 30 cd 80 <5b> 5e 5f 5d c3 5b 5e 5f 5d e9 f7 a1 ff ff 66 90 66 90 66 90 90 53 RSP: 002b:00000000f75dfc4c EFLAGS: 00000246 ORIG_RAX: 000000000000010b RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000000000 RDX: 00000000f75dfce4 RSI: 00000000f75dfcdc RDI: 0000000000000000 RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000206 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 ---------------- Code disassembly (best guess): 0: f7 e8 imul %eax 2: 4d rex.WRB 3: 66 9f data16 lahf 5: f5 cmc 6: f7 c3 00 02 00 00 test $0x200,%ebx c: 74 05 je 0x13 e: e8 50 07 cc f5 call 0xf5cc0763 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 64 5a 90 f5 call 0xf5905a93 <-- trapping instruction 2f: 65 48 8b 05 ac a1 ba mov %gs:0x8baa1ac(%rip),%rax # 0x8baa1e3 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