============================= [ BUG: Invalid wait context ] syzkaller #0 Tainted: G L ----------------------------- syz.0.8111/31696 is trying to lock: ffff88804e4c9bc8 (&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.0.8111/31696: 1, on CPU#1: #0: ffff88804e4ca118 (&kvm->srcu){.?.+}-{0:0}, at: srcu_lock_acquire include/linux/srcu.h:249 [inline] #0: ffff88804e4ca118 (&kvm->srcu){.?.+}-{0:0}, at: srcu_read_lock include/linux/srcu.h:356 [inline] #0: ffff88804e4ca118 (&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: 31696 Comm: syz.0.8111 Tainted: G L syzkaller #0 PREEMPT(full) Tainted: [L]=SOFTLOCKUP Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/06/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:2079 [inline] __hrtimer_run_queues+0x371/0xa10 kernel/time/hrtimer.c:2136 hrtimer_interrupt+0x4cd/0xaa0 kernel/time/hrtimer.c:2255 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:class_preempt_destructor include/linux/preempt.h:496 [inline] RIP: 0010:__mutex_unlock_slowpath+0x72c/0x900 kernel/locking/mutex.c:1080 Code: 46 28 83 f8 01 75 18 49 81 c6 b8 18 00 00 4c 89 f7 48 c7 c6 40 c1 86 81 e8 d1 63 a6 f5 eb 06 0f 8c af 00 00 00 bf 01 00 00 00 9f 8d 8e f5 65 48 8b 05 d7 39 da 08 48 85 c0 74 53 48 b8 00 00 RSP: 0000:ffffc9000608fa60 EFLAGS: 00000246 RAX: ffff88802a9e1f40 RBX: ffffffff90abd840 RCX: ffffffff8c07307a RDX: 0000000000000001 RSI: 0000000000000008 RDI: 0000000000000001 RBP: ffffc9000608fb50 R08: ffffc9000608fae7 R09: 1ffff92000c11f5c R10: dffffc0000000000 R11: fffff52000c11f5d R12: 1ffffffff37d5740 R13: 1ffffffff237c5fe R14: 0000000000000000 R15: ffffc9000608fae0 rng_dev_read+0x30c/0x830 drivers/char/hw_random/core.c:283 vfs_read+0x213/0xa80 fs/read_write.c:572 ksys_read+0x150/0x270 fs/read_write.c:716 do_syscall_32_irqs_on arch/x86/entry/syscall_32.c:79 [inline] __do_fast_syscall_32+0x293/0x6e0 arch/x86/entry/syscall_32.c:286 do_fast_syscall_32+0x33/0x70 arch/x86/entry/syscall_32.c:311 entry_SYSENTER_compat_after_hwframe+0x84/0x8e RIP: 0023:0xf73fef1c Code: 90 85 d2 74 0a 89 ce 81 e6 ff 0f 00 00 89 32 85 c0 74 05 c1 e9 0c 89 08 31 c0 5e 5d c3 90 0f 1f 00 51 52 55 89 e5 0f 34 cd 80 <5d> 5a 59 c3 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 58 b8 RSP: 002b:00000000f541650c EFLAGS: 00000206 ORIG_RAX: 0000000000000003 RAX: ffffffffffffffda RBX: 0000000000000006 RCX: 0000000080000340 RDX: 00000000fffffce2 RSI: 0000000000000000 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: 46 28 83 f8 01 75 18 rex.RX sub %r8b,0x187501f8(%rbx) 7: 49 81 c6 b8 18 00 00 add $0x18b8,%r14 e: 4c 89 f7 mov %r14,%rdi 11: 48 c7 c6 40 c1 86 81 mov $0xffffffff8186c140,%rsi 18: e8 d1 63 a6 f5 call 0xf5a663ee 1d: eb 06 jmp 0x25 1f: 0f 8c af 00 00 00 jl 0xd4 25: bf 01 00 00 00 mov $0x1,%edi * 2a: e8 9f 8d 8e f5 call 0xf58e8dce <-- trapping instruction 2f: 65 48 8b 05 d7 39 da mov %gs:0x8da39d7(%rip),%rax # 0x8da3a0e 36: 08 37: 48 85 c0 test %rax,%rax 3a: 74 53 je 0x8f 3c: 48 rex.W 3d: b8 .byte 0xb8