============================= [ BUG: Invalid wait context ] syzkaller #0 Tainted: G L ----------------------------- kworker/u8:13/12715 is trying to lock: ffff888090bd1bc8 (&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 kworker/u8:13/12715: 9, on CPU#1: #0: ffff88801d68e148 ((wq_completion)netns){+.+.}-{0:0}, at: rcu_lock_acquire include/linux/rcupdate.h:309 [inline] #0: ffff88801d68e148 ((wq_completion)netns){+.+.}-{0:0}, at: rcu_read_lock include/linux/rcupdate.h:849 [inline] #0: ffff88801d68e148 ((wq_completion)netns){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3462 [inline] #0: ffff88801d68e148 ((wq_completion)netns){+.+.}-{0:0}, at: process_scheduled_works+0x99a/0x1650 kernel/workqueue.c:3580 #1: ffffc9000331fc40 (net_cleanup_work){+.+.}-{0:0}, at: rcu_lock_acquire include/linux/rcupdate.h:309 [inline] #1: ffffc9000331fc40 (net_cleanup_work){+.+.}-{0:0}, at: rcu_read_lock include/linux/rcupdate.h:849 [inline] #1: ffffc9000331fc40 (net_cleanup_work){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3462 [inline] #1: ffffc9000331fc40 (net_cleanup_work){+.+.}-{0:0}, at: process_scheduled_works+0x99a/0x1650 kernel/workqueue.c:3580 #2: ffffffff91687868 (pernet_ops_rwsem){++++}-{4:4}, at: cleanup_net+0xf5/0x810 net/core/net_namespace.c:684 #3: ffff8880270e4128 (&dev->mutex){....}-{4:4}, at: device_lock include/linux/device.h:1109 [inline] #3: ffff8880270e4128 (&dev->mutex){....}-{4:4}, at: devl_dev_lock net/devlink/devl_internal.h:124 [inline] #3: ffff8880270e4128 (&dev->mutex){....}-{4:4}, at: devlink_pernet_pre_exit+0x122/0x560 net/devlink/core.c:581 #4: ffff8880270e2258 (&devlink->lock_key#5){+.+.}-{4:4}, at: devl_lock net/devlink/core.c:314 [inline] #4: ffff8880270e2258 (&devlink->lock_key#5){+.+.}-{4:4}, at: devl_dev_lock net/devlink/devl_internal.h:125 [inline] #4: ffff8880270e2258 (&devlink->lock_key#5){+.+.}-{4:4}, at: devlink_pernet_pre_exit+0x138/0x560 net/devlink/core.c:581 #5: ffffffff91696520 (rtnl_mutex){+.+.}-{4:4}, at: nsim_destroy+0x173/0x800 drivers/net/netdevsim/netdev.c:1201 #6: ffffffff90c219c0 (gdp_mutex){+.+.}-{4:4}, at: cleanup_glue_dir+0xc3/0x220 drivers/base/core.c:3437 #7: ffff88801d68caa0 (&root->kernfs_supers_rwsem){++++}-{4:4}, at: kernfs_remove+0x35/0x80 fs/kernfs/dir.c:1621 #8: ffff888090bd2118 (&kvm->srcu){.?.+}-{0:0}, at: srcu_lock_acquire include/linux/srcu.h:249 [inline] #8: ffff888090bd2118 (&kvm->srcu){.?.+}-{0:0}, at: srcu_read_lock include/linux/srcu.h:356 [inline] #8: ffff888090bd2118 (&kvm->srcu){.?.+}-{0:0}, at: kvm_xen_set_evtchn_fast+0x1d2/0x8d0 arch/x86/kvm/xen.c:1870 stack backtrace: CPU: 1 UID: 0 PID: 12715 Comm: kworker/u8:13 Tainted: G L syzkaller #0 PREEMPT(full) Tainted: [L]=SOFTLOCKUP Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/06/2026 Workqueue: netns cleanup_net 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_acquire+0x232/0x350 kernel/locking/lockdep.c:5947 Code: ff ff ff e8 70 c8 65 0a f7 44 24 10 00 02 00 00 0f 84 38 ff ff ff 65 48 8b 05 32 52 3e 13 48 3b 44 24 50 75 33 fb 48 83 c4 58 <5b> 41 5c 41 5d 41 5e 41 5f 5d e9 8f df 68 0a cc 48 8d 3d f7 2d 1d RSP: 0018:ffffc9000331f190 EFLAGS: 00000296 RAX: 5344735b7f6e7c00 RBX: 0000000000000001 RCX: 0000000000000046 RDX: ffff88803337ac08 RSI: ffffffff8e93a102 RDI: ffffffff8c8eb280 RBP: ffff888033379f40 R08: ffffc9000331efb0 R09: 0000000000000020 R10: dffffc0000000000 R11: ffffffff81a4ade0 R12: ffff88801d68caa0 R13: 0000000000000001 R14: 0000000000000000 R15: 0000000000000246 down_read+0x45/0x320 kernel/locking/rwsem.c:1574 kernfs_remove+0x35/0x80 fs/kernfs/dir.c:1621 __kobject_del+0xe0/0x310 lib/kobject.c:604 kobject_del+0x45/0x60 lib/kobject.c:627 cleanup_glue_dir+0x1a3/0x220 drivers/base/core.c:3488 device_del+0x77d/0x8f0 drivers/base/core.c:3988 unregister_netdevice_many_notify+0x181a/0x1dc0 net/core/dev.c:12809 unregister_netdevice_many net/core/dev.c:12847 [inline] unregister_netdevice_queue+0x2f5/0x340 net/core/dev.c:12643 unregister_netdevice include/linux/netdevice.h:3511 [inline] nsim_destroy+0x275/0x800 drivers/net/netdevsim/netdev.c:1206 __nsim_dev_port_del+0x14e/0x200 drivers/net/netdevsim/dev.c:1471 nsim_dev_port_del_all drivers/net/netdevsim/dev.c:1485 [inline] nsim_dev_reload_destroy+0x288/0x490 drivers/net/netdevsim/dev.c:1709 nsim_dev_reload_down+0x8a/0xc0 drivers/net/netdevsim/dev.c:962 devlink_reload+0x1ed/0x7f0 net/devlink/dev.c:462 devlink_pernet_pre_exit+0x1d9/0x560 net/devlink/core.c:584 ops_pre_exit_list net/core/net_namespace.c:161 [inline] ops_undo_list+0x17d/0x8f0 net/core/net_namespace.c:235 cleanup_net+0x578/0x810 net/core/net_namespace.c:713 process_one_work kernel/workqueue.c:3497 [inline] process_scheduled_works+0xc5d/0x1650 kernel/workqueue.c:3580 worker_thread+0xa47/0xfb0 kernel/workqueue.c:3661 kthread+0x38b/0x480 kernel/kthread.c:436 ret_from_fork+0x514/0xb70 arch/x86/kernel/process.c:158 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 ---------------- Code disassembly (best guess), 2 bytes skipped: 0: ff ljmp (bad) 1: e8 70 c8 65 0a call 0xa65c876 6: f7 44 24 10 00 02 00 testl $0x200,0x10(%rsp) d: 00 e: 0f 84 38 ff ff ff je 0xffffff4c 14: 65 48 8b 05 32 52 3e mov %gs:0x133e5232(%rip),%rax # 0x133e524e 1b: 13 1c: 48 3b 44 24 50 cmp 0x50(%rsp),%rax 21: 75 33 jne 0x56 23: fb sti 24: 48 83 c4 58 add $0x58,%rsp * 28: 5b pop %rbx <-- trapping instruction 29: 41 5c pop %r12 2b: 41 5d pop %r13 2d: 41 5e pop %r14 2f: 41 5f pop %r15 31: 5d pop %rbp 32: e9 8f df 68 0a jmp 0xa68dfc6 37: cc int3 38: 48 rex.W 39: 8d .byte 0x8d 3a: 3d .byte 0x3d 3b: f7 .byte 0xf7 3c: 2d .byte 0x2d 3d: 1d .byte 0x1d