============================= [ BUG: Invalid wait context ] syzkaller #0 Not tainted ----------------------------- udevd/4992 is trying to lock: ff11000060489bc8 (&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 udevd/4992: 4, on CPU#0: #0: ff110000780b5638 (&p->lock){+.+.}-{4:4}, at: seq_read_iter+0xa4/0xca0 fs/seq_file.c:183 #1: ff11000065d9dc80 (&of->mutex#2){+.+.}-{4:4}, at: kernfs_seq_start+0x5d/0x420 fs/kernfs/file.c:165 #2: ff1100001e3e1e18 (kn->active#5){.+.+}-{0:0}, at: kernfs_get_active_of fs/kernfs/file.c:73 [inline] #2: ff1100001e3e1e18 (kn->active#5){.+.+}-{0:0}, at: kernfs_seq_start+0xb2/0x420 fs/kernfs/file.c:166 #3: ff1100006048a118 (&kvm->srcu){.?.+}-{0:0}, at: srcu_lock_acquire include/linux/srcu.h:249 [inline] #3: ff1100006048a118 (&kvm->srcu){.?.+}-{0:0}, at: srcu_read_lock include/linux/srcu.h:365 [inline] #3: ff1100006048a118 (&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: 4992 Comm: udevd 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:lock_release+0x2e1/0x3c0 kernel/locking/lockdep.c:5968 Code: 71 3e 13 00 00 00 00 eb b5 e8 ab 9f 65 0a f7 c3 00 02 00 00 74 b9 65 48 8b 05 d3 29 3e 13 48 3b 44 24 28 75 48 fb 48 83 c4 30 <5b> 41 5c 41 5d 41 5e 41 5f 5d c3 cc cc cc cc cc 48 8d 3d 08 ea 1c RSP: 0018:ffa00000049a7a30 EFLAGS: 00000286 RAX: 3c98de3fe0296700 RBX: 0000000000000287 RCX: 0000000000000046 RDX: 00000000ca0d7d65 RSI: ffffffff8e93a180 RDI: ffffffff8c8eb280 RBP: ff1100007dc48c28 R08: ffffffff8232c29c R09: 0000000000000000 R10: ff1100005466c000 R11: ffffffff86499610 R12: 0000000000000003 R13: 0000000000000003 R14: ffffffff90295600 R15: ff1100007dc48000 might_alloc include/linux/sched/mm.h:317 [inline] slab_pre_alloc_hook mm/slub.c:4673 [inline] slab_alloc_node mm/slub.c:5011 [inline] __kmalloc_cache_noprof+0x68/0x600 mm/slub.c:5676 _kmalloc_noprof include/linux/slab.h:991 [inline] _kzalloc_noprof include/linux/slab.h:1312 [inline] uevent_show+0x15c/0x310 drivers/base/core.c:2825 dev_attr_show+0x58/0xc0 drivers/base/core.c:2491 sysfs_kf_seq_show+0x331/0x490 fs/sysfs/file.c:65 seq_read_iter+0x463/0xca0 fs/seq_file.c:231 new_sync_read fs/read_write.c:473 [inline] vfs_read+0x595/0xa80 fs/read_write.c:554 ksys_read+0x150/0x270 fs/read_write.c:696 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:0x7fb413fd6407 Code: 48 89 fa 4c 89 df e8 38 aa 00 00 8b 93 08 03 00 00 59 5e 48 83 f8 fc 74 1a 5b c3 0f 1f 84 00 00 00 00 00 48 8b 44 24 10 0f 05 <5b> c3 0f 1f 80 00 00 00 00 83 e2 39 83 fa 08 75 de e8 23 ff ff ff RSP: 002b:00007ffe258e1200 EFLAGS: 00000202 ORIG_RAX: 0000000000000000 RAX: ffffffffffffffda RBX: 00007fb413f4a880 RCX: 00007fb413fd6407 RDX: 0000000000001000 RSI: 00005555f2b2e190 RDI: 000000000000000c RBP: 00007fb41411eff0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000202 R12: 000000000000000a R13: 00007fb41411eea0 R14: 0000000000000000 R15: 00005555f29de7a0 ---------------- Code disassembly (best guess): 0: 71 3e jno 0x40 2: 13 00 adc (%rax),%eax 4: 00 00 add %al,(%rax) 6: 00 eb add %ch,%bl 8: b5 e8 mov $0xe8,%ch a: ab stos %eax,%es:(%rdi) b: 9f lahf c: 65 0a f7 gs or %bh,%dh f: c3 ret 10: 00 02 add %al,(%rdx) 12: 00 00 add %al,(%rax) 14: 74 b9 je 0xffffffcf 16: 65 48 8b 05 d3 29 3e mov %gs:0x133e29d3(%rip),%rax # 0x133e29f1 1d: 13 1e: 48 3b 44 24 28 cmp 0x28(%rsp),%rax 23: 75 48 jne 0x6d 25: fb sti 26: 48 83 c4 30 add $0x30,%rsp * 2a: 5b pop %rbx <-- trapping instruction 2b: 41 5c pop %r12 2d: 41 5d pop %r13 2f: 41 5e pop %r14 31: 41 5f pop %r15 33: 5d pop %rbp 34: c3 ret 35: cc int3 36: cc int3 37: cc int3 38: cc int3 39: cc int3 3a: 48 rex.W 3b: 8d .byte 0x8d 3c: 3d .byte 0x3d 3d: 08 ea or %ch,%dl 3f: 1c .byte 0x1c