============================= [ BUG: Invalid wait context ] syzkaller #0 Not tainted ----------------------------- syz-executor/5591 is trying to lock: ff11000058dbdbc8 (&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/5591: 8, on CPU#0: #0: ffffffff9023a9d0 (dup_mmap_sem){.+.+}-{0:0}, at: dup_mm kernel/fork.c:1536 [inline] #0: ffffffff9023a9d0 (dup_mmap_sem){.+.+}-{0:0}, at: copy_mm+0xf6/0x640 kernel/fork.c:1602 #1: ff110000366e6540 (&mm->mmap_lock){++++}-{4:4}, at: mmap_write_lock_killable include/linux/mmap_lock.h:566 [inline] #1: ff110000366e6540 (&mm->mmap_lock){++++}-{4:4}, at: dup_mm kernel/fork.c:1537 [inline] #1: ff110000366e6540 (&mm->mmap_lock){++++}-{4:4}, at: copy_mm+0x110/0x640 kernel/fork.c:1602 #2: ff1100002b1aa800 (&mm->mmap_lock/1){+.+.}-{4:4}, at: mmap_write_lock_nested include/linux/mmap_lock.h:556 [inline] #2: ff1100002b1aa800 (&mm->mmap_lock/1){+.+.}-{4:4}, at: dup_mmap+0x1f6/0x1c80 mm/mmap.c:1722 #3: ffffffff9015a360 (rcu_read_lock){....}-{1:3}, at: rcu_lock_acquire include/linux/rcupdate.h:309 [inline] #3: ffffffff9015a360 (rcu_read_lock){....}-{1:3}, at: rcu_read_lock include/linux/rcupdate.h:849 [inline] #3: ffffffff9015a360 (rcu_read_lock){....}-{1:3}, at: __pte_offset_map+0x29/0x240 mm/pgtable-generic.c:302 #4: ff1100005f1cad38 (ptlock_ptr(ptdesc)#2){+.+.}-{3:3}, at: spin_lock include/linux/spinlock.h:347 [inline] #4: ff1100005f1cad38 (ptlock_ptr(ptdesc)#2){+.+.}-{3:3}, at: pte_offset_map_lock+0x13d/0x210 mm/pgtable-generic.c:423 #5: ffffffff9015a360 (rcu_read_lock){....}-{1:3}, at: rcu_lock_acquire include/linux/rcupdate.h:309 [inline] #5: ffffffff9015a360 (rcu_read_lock){....}-{1:3}, at: rcu_read_lock include/linux/rcupdate.h:849 [inline] #5: ffffffff9015a360 (rcu_read_lock){....}-{1:3}, at: __pte_offset_map+0x29/0x240 mm/pgtable-generic.c:302 #6: ff11000029dd4258 (ptlock_ptr(ptdesc)#2/1){+.+.}-{3:3}, at: copy_pte_range mm/memory.c:1334 [inline] #6: ff11000029dd4258 (ptlock_ptr(ptdesc)#2/1){+.+.}-{3:3}, at: copy_pmd_range+0x6f8/0x5e60 mm/memory.c:1470 #7: ff11000058dbe118 (&kvm->srcu){.?.+}-{0:0}, at: srcu_lock_acquire include/linux/srcu.h:249 [inline] #7: ff11000058dbe118 (&kvm->srcu){.?.+}-{0:0}, at: srcu_read_lock include/linux/srcu.h:356 [inline] #7: ff11000058dbe118 (&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: 5591 Comm: syz-executor Not tainted syzkaller #0 PREEMPT(full) 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:get_current arch/x86/include/asm/current.h:25 [inline] RIP: 0010:write_comp_data kernel/kcov.c:251 [inline] RIP: 0010:__sanitizer_cov_trace_const_cmp4+0x8/0xb0 kernel/kcov.c:328 Code: 01 10 4a 89 74 01 18 4a 89 44 01 20 c3 cc cc cc cc cc 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 f3 0f 1e fa 48 8b 04 24 <65> 48 8b 15 08 71 19 13 65 48 8b 0d 08 71 19 13 f7 c1 00 01 00 ff RSP: 0018:ffa000000349f2a8 EFLAGS: 00000246 RAX: ffffffff824db86c RBX: 0000000000000001 RCX: ff1100007f674b80 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 0000000000000001 R08: 0000000000000001 R09: 1fe220000be364a4 R10: dffffc0000000000 R11: ffe21c000be364a5 R12: 0000000000000000 R13: 8000000066453005 R14: 0000000000000005 R15: dffffc0000000000 __page_table_check_ptes_set+0x27c/0x340 mm/page_table_check.c:-1 page_table_check_ptes_set include/linux/page_table_check.h:83 [inline] set_ptes include/linux/pgtable.h:448 [inline] __copy_present_ptes mm/memory.c:1163 [inline] copy_present_ptes mm/memory.c:1259 [inline] copy_pte_range mm/memory.c:1382 [inline] copy_pmd_range+0x4d2d/0x5e60 mm/memory.c:1470 copy_pud_range mm/memory.c:1505 [inline] copy_p4d_range mm/memory.c:1529 [inline] copy_page_range+0xcf9/0x1320 mm/memory.c:1615 dup_mmap+0xdd7/0x1c80 mm/mmap.c:1813 dup_mm kernel/fork.c:1549 [inline] copy_mm+0x2ae/0x640 kernel/fork.c:1602 copy_process+0x1ec3/0x4560 kernel/fork.c:2328 kernel_clone+0x2d7/0x940 kernel/fork.c:2813 __do_sys_clone kernel/fork.c:2955 [inline] __se_sys_clone kernel/fork.c:2939 [inline] __x64_sys_clone+0x1b6/0x230 kernel/fork.c:2939 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0x171/0x540 arch/x86/entry/syscall_64.c:89 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fbc7c3d5852 Code: 89 e7 e8 b1 c7 f6 ff 45 31 c0 31 d2 31 f6 64 48 8b 04 25 10 00 00 00 bf 11 00 20 01 4c 8d 90 d0 02 00 00 b8 38 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 66 89 c5 85 c0 75 3b 64 48 8b 04 25 10 00 00 RSP: 002b:00007ffefb931e90 EFLAGS: 00000246 ORIG_RAX: 0000000000000038 RAX: ffffffffffffffda RBX: 00007ffefb931e90 RCX: 00007fbc7c3d5852 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000001200011 RBP: 00007ffefb93201c R08: 0000000000000000 R09: 0000000000000001 R10: 00005555671b37d0 R11: 0000000000000246 R12: 0000000000000001 R13: 00000000000927c0 R14: 000000000002de41 R15: 00007ffefb932070 ---------------- Code disassembly (best guess): 0: 01 10 add %edx,(%rax) 2: 4a 89 74 01 18 mov %rsi,0x18(%rcx,%r8,1) 7: 4a 89 44 01 20 mov %rax,0x20(%rcx,%r8,1) c: c3 ret d: cc int3 e: cc int3 f: cc int3 10: cc int3 11: cc int3 12: 90 nop 13: 90 nop 14: 90 nop 15: 90 nop 16: 90 nop 17: 90 nop 18: 90 nop 19: 90 nop 1a: 90 nop 1b: 90 nop 1c: 90 nop 1d: 90 nop 1e: 90 nop 1f: 90 nop 20: 90 nop 21: 90 nop 22: f3 0f 1e fa endbr64 26: 48 8b 04 24 mov (%rsp),%rax * 2a: 65 48 8b 15 08 71 19 mov %gs:0x13197108(%rip),%rdx # 0x1319713a <-- trapping instruction 31: 13 32: 65 48 8b 0d 08 71 19 mov %gs:0x13197108(%rip),%rcx # 0x13197142 39: 13 3a: f7 c1 00 01 00 ff test $0xff000100,%ecx