============================= [ BUG: Invalid wait context ] 6.15.0-rc2-syzkaller-00042-g1a1d569a75f3 #0 Not tainted ----------------------------- syz.6.1482/11223 is trying to lock: ffffc900059c4410 (&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} 2 locks held by syz.6.1482/11223: #0: ffffffff9ab99ef0 (&fsnotify_mark_srcu){.+.?}-{0:0}, at: srcu_lock_acquire include/linux/srcu.h:161 [inline] #0: ffffffff9ab99ef0 (&fsnotify_mark_srcu){.+.?}-{0:0}, at: srcu_read_lock include/linux/srcu.h:253 [inline] #0: ffffffff9ab99ef0 (&fsnotify_mark_srcu){.+.?}-{0:0}, at: fsnotify_grab_connector+0x4b/0x290 fs/notify/mark.c:696 #1: ffffc900059c4958 (&kvm->srcu){.?.+}-{0:0}, at: srcu_lock_acquire include/linux/srcu.h:161 [inline] #1: ffffc900059c4958 (&kvm->srcu){.?.+}-{0:0}, at: srcu_read_lock include/linux/srcu.h:253 [inline] #1: ffffc900059c4958 (&kvm->srcu){.?.+}-{0:0}, at: kvm_xen_set_evtchn_fast+0x23a/0xeb0 arch/x86/kvm/xen.c:1817 stack backtrace: CPU: 2 UID: 0 PID: 11223 Comm: syz.6.1482 Not tainted 6.15.0-rc2-syzkaller-00042-g1a1d569a75f3 #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 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:4831 [inline] check_wait_context kernel/locking/lockdep.c:4903 [inline] __lock_acquire+0x3ff/0x1ba0 kernel/locking/lockdep.c:5185 lock_acquire kernel/locking/lockdep.c:5866 [inline] lock_acquire+0x179/0x350 kernel/locking/lockdep.c:5823 __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:1038 [inline] __sysvec_apic_timer_interrupt+0x108/0x3f0 arch/x86/kernel/apic/apic.c:1055 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1049 [inline] sysvec_apic_timer_interrupt+0x9f/0xc0 arch/x86/kernel/apic/apic.c:1049 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:702 RIP: 0010:lock_acquire+0x62/0x350 kernel/locking/lockdep.c:5870 Code: e2 0e 12 83 f8 07 0f 87 bc 02 00 00 89 c0 48 0f a3 05 12 42 ee 0e 0f 82 74 02 00 00 8b 35 aa 71 ee 0e 85 f6 0f 85 8d 00 00 00 <48> 8b 44 24 30 65 48 2b 05 e9 e1 0e 12 0f 85 c7 02 00 00 48 83 c4 RSP: 0018:ffffc90004d3fa58 EFLAGS: 00000206 RAX: 0000000000000046 RBX: ffffffff9ab99ef0 RCX: ffffffff93b45a20 RDX: 0000000000000000 RSI: ffffffff8dbc9fcf RDI: ffffffff8bf46500 RBP: 0000000000000002 R08: cbd6ec99d18dfc8b R09: 0000000000000001 R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000001 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 srcu_lock_acquire include/linux/srcu.h:161 [inline] srcu_read_lock include/linux/srcu.h:253 [inline] fsnotify_grab_connector+0x51/0x290 fs/notify/mark.c:696 fsnotify_destroy_marks+0x7a/0x3c0 fs/notify/mark.c:936 fsnotify_inode_delete include/linux/fsnotify.h:312 [inline] __destroy_inode+0x209/0x730 fs/inode.c:372 destroy_inode+0x91/0x1b0 fs/inode.c:394 evict+0x5b4/0x920 fs/inode.c:834 iput_final fs/inode.c:1898 [inline] iput fs/inode.c:1924 [inline] iput+0x521/0x880 fs/inode.c:1910 dentry_unlink_inode+0x29c/0x480 fs/dcache.c:457 __dentry_kill+0x1d0/0x600 fs/dcache.c:660 dput.part.0+0x4b1/0x9b0 fs/dcache.c:902 dput+0x1f/0x30 fs/dcache.c:892 __fput+0x51c/0xb70 fs/file_table.c:473 task_work_run+0x14d/0x240 kernel/task_work.c:227 resume_user_mode_work include/linux/resume_user_mode.h:50 [inline] exit_to_user_mode_loop kernel/entry/common.c:114 [inline] exit_to_user_mode_prepare include/linux/entry-common.h:329 [inline] __syscall_exit_to_user_mode_work kernel/entry/common.c:207 [inline] syscall_exit_to_user_mode+0x27b/0x2a0 kernel/entry/common.c:218 do_syscall_64+0xda/0x260 arch/x86/entry/syscall_64.c:100 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f536d58e169 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fffac2059f8 EFLAGS: 00000246 ORIG_RAX: 00000000000001b4 RAX: 0000000000000000 RBX: 00000000000280ee RCX: 00007f536d58e169 RDX: 0000000000000000 RSI: 000000000000001e RDI: 0000000000000003 RBP: 00007f536d7b7ba0 R08: 0000000000000001 R09: 00000009ac205cef R10: 00007f536d400000 R11: 0000000000000246 R12: 00007f536d7b5fac R13: 00007f536d7b5fa0 R14: ffffffffffffffff R15: 00007fffac205b10 ---------------- Code disassembly (best guess): 0: e2 0e loop 0x10 2: 12 83 f8 07 0f 87 adc -0x78f0f808(%rbx),%al 8: bc 02 00 00 89 mov $0x89000002,%esp d: c0 48 0f a3 rorb $0xa3,0xf(%rax) 11: 05 12 42 ee 0e add $0xeee4212,%eax 16: 0f 82 74 02 00 00 jb 0x290 1c: 8b 35 aa 71 ee 0e mov 0xeee71aa(%rip),%esi # 0xeee71cc 22: 85 f6 test %esi,%esi 24: 0f 85 8d 00 00 00 jne 0xb7 * 2a: 48 8b 44 24 30 mov 0x30(%rsp),%rax <-- trapping instruction 2f: 65 48 2b 05 e9 e1 0e sub %gs:0x120ee1e9(%rip),%rax # 0x120ee220 36: 12 37: 0f 85 c7 02 00 00 jne 0x304 3d: 48 rex.W 3e: 83 .byte 0x83 3f: c4 .byte 0xc4