============================= [ BUG: Invalid wait context ] syzkaller #0 Tainted: G L ----------------------------- syz.5.1676/12244 is trying to lock: ffff88809597dbc8 (&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.5.1676/12244: 2, on CPU#0: #0: ffffffff9015a3a0 (rcu_read_lock){....}-{1:3}, at: rcu_lock_acquire include/linux/rcupdate.h:309 [inline] #0: ffffffff9015a3a0 (rcu_read_lock){....}-{1:3}, at: rcu_read_lock include/linux/rcupdate.h:849 [inline] #0: ffffffff9015a3a0 (rcu_read_lock){....}-{1:3}, at: __update_page_owner_free_handle+0x37/0x410 mm/page_owner.c:301 #1: ffff88809597e118 (&kvm->srcu){.?.+}-{0:0}, at: srcu_lock_acquire include/linux/srcu.h:249 [inline] #1: ffff88809597e118 (&kvm->srcu){.?.+}-{0:0}, at: srcu_read_lock include/linux/srcu.h:365 [inline] #1: ffff88809597e118 (&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: 12244 Comm: syz.5.1676 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:page_ext_lookup+0x5/0x180 mm/page_ext.c:503 Code: ff 4c 89 ff 48 c7 c6 a0 cc 3f 8c e8 f5 66 da fe 90 0f 0b 66 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 0f 1f 40 d6 55 <41> 57 41 56 41 55 41 54 53 48 89 fb e8 ea 90 7b ff 49 89 dc 49 c1 RSP: 0018:ffffc90003bef070 EFLAGS: 00000293 RAX: ffffffff824c0b9d RBX: 0000000000000001 RCX: 0000000000000000 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000042b6b RBP: 0000000000000000 R08: ffffffff824c0aa7 R09: 0000000000000000 R10: 000000000000000f R11: ffffffff81b3dd30 R12: 0000000000000000 R13: dffffc0000000000 R14: ffffffff824c0aa7 R15: 0000000000000000 page_ext_iter_begin include/linux/page_ext.h:136 [inline] __update_page_owner_free_handle+0x141/0x410 mm/page_owner.c:302 __reset_page_owner+0xd2/0x2a0 mm/page_owner.c:339 reset_page_owner include/linux/page_owner.h:26 [inline] __free_pages_prepare mm/page_alloc.c:1415 [inline] free_unref_folios+0xdcc/0x15d0 mm/page_alloc.c:3031 folios_put_refs+0x9e9/0xb30 mm/folio.c:1063 folio_batch_release include/linux/folio_batch.h:101 [inline] shmem_undo_range+0x55a/0x1730 mm/shmem.c:1400 shmem_truncate_range mm/shmem.c:1536 [inline] shmem_evict_inode+0x240/0xb00 mm/shmem.c:1680 evict+0x6bf/0xc20 fs/inode.c:829 dentry_kill+0x1b9/0x910 fs/dcache.c:857 finish_dput+0x1a/0x260 fs/dcache.c:1032 __fput+0x65b/0xa40 fs/file_table.c:520 task_work_run+0x1d9/0x260 kernel/task_work.c:233 exit_task_work include/linux/task_work.h:40 [inline] do_exit+0x705/0x2360 kernel/exit.c:980 do_group_exit+0x22d/0x2f0 kernel/exit.c:1123 get_signal+0x136a/0x1430 kernel/signal.c:3113 arch_do_signal_or_restart+0xbb/0x860 arch/x86/kernel/signal.c:337 __exit_to_user_mode_loop kernel/entry/common.c:66 [inline] exit_to_user_mode_loop kernel/entry/common.c:101 [inline] __exit_to_user_mode_prepare include/linux/irq-entry-common.h:207 [inline] irqentry_exit_to_user_mode_prepare include/linux/irq-entry-common.h:244 [inline] irqentry_exit_to_user_mode include/linux/irq-entry-common.h:315 [inline] irqentry_exit+0x348/0x9b0 kernel/entry/common.c:152 asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:595 RIP: 0033:0x7f282a655367 Code: Unable to access opcode bytes at 0x7f282a65533d. RSP: 002b:00007f282b633120 EFLAGS: 00010202 RAX: 0000000000000000 RBX: 000000000000000b RCX: 00007f282a7a9c99 RDX: 00007f282b633140 RSI: 00007f282b633270 RDI: 000000000000000b RBP: 00007f282a83b18b R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000206 R12: 0000000000000000 R13: 00007f282aa36130 R14: 00007f282aa36098 R15: 00007f282ab5fa48 ---------------- Code disassembly (best guess): 0: ff 4c 89 ff decl -0x1(%rcx,%rcx,4) 4: 48 c7 c6 a0 cc 3f 8c mov $0xffffffff8c3fcca0,%rsi b: e8 f5 66 da fe call 0xfeda6705 10: 90 nop 11: 0f 0b ud2 13: 66 90 xchg %ax,%ax 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: 90 nop 23: 90 nop 24: 90 nop 25: 0f 1f 40 d6 nopl -0x2a(%rax) 29: 55 push %rbp * 2a: 41 57 push %r15 <-- trapping instruction 2c: 41 56 push %r14 2e: 41 55 push %r13 30: 41 54 push %r12 32: 53 push %rbx 33: 48 89 fb mov %rdi,%rbx 36: e8 ea 90 7b ff call 0xff7b9125 3b: 49 89 dc mov %rbx,%r12 3e: 49 rex.WB 3f: c1 .byte 0xc1