============================= [ BUG: Invalid wait context ] 6.15.0-syzkaller-10769-g7d4e49a77d99 #0 Not tainted ----------------------------- kworker/3:0/34 is trying to lock: ffffc9000c79a410 (&gpc->lock){....}-{3:3}, at: kvm_xen_set_evtchn_fast+0x254/0xeb0 arch/x86/kvm/xen.c:1819 other info that might help us debug this: context-{2:2} 3 locks held by kworker/3:0/34: #0: ffff88801b886d48 ((wq_completion)rcu_gp){+.+.}-{0:0}, at: process_one_work+0x12a2/0x1b70 kernel/workqueue.c:3213 #1: ffffc900006dfd10 ((work_completion)(&(&ssp->srcu_sup->work)->work)){+.+.}-{0:0}, at: process_one_work+0x929/0x1b70 kernel/workqueue.c:3214 #2: ffffc9000c79a960 (&kvm->srcu){.?.+}-{0:0}, at: srcu_lock_acquire include/linux/srcu.h:161 [inline] #2: ffffc9000c79a960 (&kvm->srcu){.?.+}-{0:0}, at: srcu_read_lock include/linux/srcu.h:253 [inline] #2: ffffc9000c79a960 (&kvm->srcu){.?.+}-{0:0}, at: kvm_xen_set_evtchn_fast+0x23a/0xeb0 arch/x86/kvm/xen.c:1817 stack backtrace: CPU: 3 UID: 0 PID: 34 Comm: kworker/3:0 Not tainted 6.15.0-syzkaller-10769-g7d4e49a77d99 #0 PREEMPT(full) Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 Workqueue: rcu_gp process_srcu Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x116/0x1f0 lib/dump_stack.c:120 print_lock_invalid_wait_context kernel/locking/lockdep.c:4833 [inline] check_wait_context kernel/locking/lockdep.c:4905 [inline] __lock_acquire+0xa12/0x1c90 kernel/locking/lockdep.c:5190 lock_acquire kernel/locking/lockdep.c:5871 [inline] lock_acquire+0x179/0x350 kernel/locking/lockdep.c:5828 __raw_read_lock_irqsave include/linux/rwlock_api_smp.h:160 [inline] _raw_read_lock_irqsave+0x46/0x90 kernel/locking/spinlock.c:236 kvm_xen_set_evtchn_fast+0x254/0xeb0 arch/x86/kvm/xen.c:1819 xen_timer_callback+0x1db/0x2a0 arch/x86/kvm/xen.c:140 __run_hrtimer kernel/time/hrtimer.c:1761 [inline] __hrtimer_run_queues+0x5ea/0xad0 kernel/time/hrtimer.c:1825 hrtimer_interrupt+0x397/0x8e0 kernel/time/hrtimer.c:1887 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1039 [inline] __sysvec_apic_timer_interrupt+0x108/0x3f0 arch/x86/kernel/apic/apic.c:1056 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1050 [inline] sysvec_apic_timer_interrupt+0x9f/0xc0 arch/x86/kernel/apic/apic.c:1050 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:702 RIP: 0010:queue_delayed_work_on+0x89/0x200 kernel/workqueue.c:2566 Code: 38 00 45 84 e4 74 3a e8 f5 2e 38 00 9c 5b 81 e3 00 02 00 00 31 ff 48 89 de e8 53 2a 38 00 48 85 db 0f 85 57 01 00 00 45 31 e4 d2 2e 38 00 44 89 e0 5b 5d 41 5c 41 5d 41 5e 41 5f c3 cc cc cc RSP: 0018:ffffc900006dfc28 EFLAGS: 00000293 RAX: 0000000000000000 RBX: 0000000000000000 RCX: ffffffff8183d321 RDX: ffff88801eaa4880 RSI: ffffffff8183d32b RDI: 0000000000000007 RBP: 0000000000000200 R08: 0000000000000007 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000001 R12: 0000000000000001 R13: 0000000000000008 R14: ffff88801b886c00 R15: 0000000000000000 process_one_work+0x9cf/0x1b70 kernel/workqueue.c:3238 process_scheduled_works kernel/workqueue.c:3321 [inline] worker_thread+0x6c8/0xf10 kernel/workqueue.c:3402 kthread+0x3c5/0x780 kernel/kthread.c:464 ret_from_fork+0x5d7/0x6f0 arch/x86/kernel/process.c:148 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 ---------------- Code disassembly (best guess): 0: 38 00 cmp %al,(%rax) 2: 45 84 e4 test %r12b,%r12b 5: 74 3a je 0x41 7: e8 f5 2e 38 00 call 0x382f01 c: 9c pushf d: 5b pop %rbx e: 81 e3 00 02 00 00 and $0x200,%ebx 14: 31 ff xor %edi,%edi 16: 48 89 de mov %rbx,%rsi 19: e8 53 2a 38 00 call 0x382a71 1e: 48 85 db test %rbx,%rbx 21: 0f 85 57 01 00 00 jne 0x17e 27: 45 31 e4 xor %r12d,%r12d * 2a: e8 d2 2e 38 00 call 0x382f01 <-- trapping instruction 2f: 44 89 e0 mov %r12d,%eax 32: 5b pop %rbx 33: 5d pop %rbp 34: 41 5c pop %r12 36: 41 5d pop %r13 38: 41 5e pop %r14 3a: 41 5f pop %r15 3c: c3 ret 3d: cc int3 3e: cc int3 3f: cc int3