================================ WARNING: inconsistent lock state syzkaller #0 Not tainted -------------------------------- inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. kworker/0:5/4229 [HC0[0]:SC1[1]:HE1:SE0] takes: ffff88807db3c710 ((work_completion)(&(&host->detect)->work)){+.?.}-{0:0}, at: __flush_work+0xfa/0x210 kernel/workqueue.c:3090 {SOFTIRQ-ON-W} state was registered at: lock_acquire+0x19e/0x400 kernel/locking/lockdep.c:5623 __flush_work+0x116/0x210 kernel/workqueue.c:3090 __cancel_work_timer+0x3f4/0x560 kernel/workqueue.c:3181 __mmc_stop_host drivers/mmc/core/core.c:2294 [inline] mmc_stop_host+0xd5/0x460 drivers/mmc/core/core.c:2299 mmc_remove_host+0x11/0x60 drivers/mmc/core/host.c:642 vub300_disconnect+0x14b/0x2e0 drivers/mmc/host/vub300.c:2388 usb_unbind_interface+0x203/0x870 drivers/usb/core/driver.c:458 __device_release_driver drivers/base/dd.c:1249 [inline] device_release_driver_internal+0x487/0x710 drivers/base/dd.c:1282 bus_remove_device+0x2dd/0x400 drivers/base/bus.c:531 device_del+0x63f/0xa80 drivers/base/core.c:3615 usb_disable_device+0x3e7/0x8a0 drivers/usb/core/message.c:1472 usb_disconnect+0x33c/0x8a0 drivers/usb/core/hub.c:2287 hub_port_connect drivers/usb/core/hub.c:5341 [inline] hub_port_connect_change drivers/usb/core/hub.c:5637 [inline] port_event drivers/usb/core/hub.c:5799 [inline] hub_event+0x1d64/0x5260 drivers/usb/core/hub.c:5881 process_one_work+0x867/0xff0 kernel/workqueue.c:2310 process_scheduled_works kernel/workqueue.c:2373 [inline] worker_thread+0xd93/0x12a0 kernel/workqueue.c:2459 kthread+0x42e/0x520 kernel/kthread.c:334 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:287 irq event stamp: 78296 hardirqs last enabled at (78296): [] __cancel_work_timer+0x36a/0x560 kernel/workqueue.c:3174 hardirqs last disabled at (78295): [] try_to_grab_pending+0xfb/0x820 kernel/workqueue.c:1272 softirqs last enabled at (78172): [] spin_unlock_bh include/linux/spinlock.h:409 [inline] softirqs last enabled at (78172): [] nsim_fib_event_work+0x265/0x3380 drivers/net/netdevsim/fib.c:1478 softirqs last disabled at (78173): [] do_softirq+0x142/0x210 kernel/softirq.c:477 other info that might help us debug this: Possible unsafe locking scenario: CPU0 ---- lock((work_completion)(&(&host->detect)->work)); lock((work_completion)(&(&host->detect)->work)); *** DEADLOCK *** 3 locks held by kworker/0:5/4229: #0: ffff888016c70938 ((wq_completion)events){+.+.}-{0:0}, at: process_one_work+0x75c/0xff0 kernel/workqueue.c:-1 #1: ffffc9000413fd00 ((work_completion)(&data->fib_event_work)){+.+.}-{0:0}, at: process_one_work+0x79e/0xff0 kernel/workqueue.c:2285 #2: ffffc90000007c80 ((&vub300->inactivity_timer)){+.-.}-{0:0}, at: lockdep_copy_map include/linux/lockdep.h:45 [inline] #2: ffffc90000007c80 ((&vub300->inactivity_timer)){+.-.}-{0:0}, at: call_timer_fn+0xca/0x540 kernel/time/timer.c:1638 stack backtrace: CPU: 0 PID: 4229 Comm: kworker/0:5 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/2026 Workqueue: events nsim_fib_event_work Call Trace: dump_stack_lvl+0x188/0x250 lib/dump_stack.c:106 valid_state+0x13b/0x1d0 kernel/locking/lockdep.c:3932 mark_lock_irq+0xa9/0x900 kernel/locking/lockdep.c:4135 mark_lock+0x208/0x320 kernel/locking/lockdep.c:4591 mark_usage kernel/locking/lockdep.c:-1 [inline] __lock_acquire+0xc63/0x7b50 kernel/locking/lockdep.c:4966 lock_acquire+0x19e/0x400 kernel/locking/lockdep.c:5623 __flush_work+0x116/0x210 kernel/workqueue.c:3090 __cancel_work_timer+0x3f4/0x560 kernel/workqueue.c:3181 mmc_free_host+0x15/0x30 drivers/mmc/core/host.c:663 call_timer_fn+0x17b/0x540 kernel/time/timer.c:1648 expire_timers kernel/time/timer.c:1699 [inline] __run_timers+0x56c/0x810 kernel/time/timer.c:1970 run_timer_softirq+0x63/0xf0 kernel/time/timer.c:1983 handle_softirqs+0x336/0x830 kernel/softirq.c:576 do_softirq+0x142/0x210 kernel/softirq.c:477 __local_bh_enable_ip+0x180/0x1c0 kernel/softirq.c:401 spin_unlock_bh include/linux/spinlock.h:409 [inline] nsim_fib_event_work+0x265/0x3380 drivers/net/netdevsim/fib.c:1478 process_one_work+0x867/0xff0 kernel/workqueue.c:2310 worker_thread+0xad7/0x12a0 kernel/workqueue.c:2457 kthread+0x42e/0x520 kernel/kthread.c:334 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:287 BUG: sleeping function called from invalid context at kernel/workqueue.c:3031 in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 4229, name: kworker/0:5 INFO: lockdep is turned off. Preemption disabled at: [<0000000000000000>] 0x0 CPU: 0 PID: 4229 Comm: kworker/0:5 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/2026 Workqueue: events nsim_fib_event_work Call Trace: dump_stack_lvl+0x188/0x250 lib/dump_stack.c:106 ___might_sleep+0x493/0x610 kernel/sched/core.c:9658 start_flush_work+0x2e/0x830 kernel/workqueue.c:3031 __flush_work+0x148/0x210 kernel/workqueue.c:3093 __cancel_work_timer+0x3f4/0x560 kernel/workqueue.c:3181 mmc_free_host+0x15/0x30 drivers/mmc/core/host.c:663 call_timer_fn+0x17b/0x540 kernel/time/timer.c:1648 expire_timers kernel/time/timer.c:1699 [inline] __run_timers+0x56c/0x810 kernel/time/timer.c:1970 run_timer_softirq+0x63/0xf0 kernel/time/timer.c:1983 handle_softirqs+0x336/0x830 kernel/softirq.c:576 do_softirq+0x142/0x210 kernel/softirq.c:477 __local_bh_enable_ip+0x180/0x1c0 kernel/softirq.c:401 spin_unlock_bh include/linux/spinlock.h:409 [inline] nsim_fib_event_work+0x265/0x3380 drivers/net/netdevsim/fib.c:1478 process_one_work+0x867/0xff0 kernel/workqueue.c:2310 worker_thread+0xad7/0x12a0 kernel/workqueue.c:2457 kthread+0x42e/0x520 kernel/kthread.c:334 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:287 ODEBUG: object ffffc90000007a60 is NOT on stack ffffc90004138000, but annotated. ------------[ cut here ]------------ WARNING: CPU: 0 PID: 4229 at lib/debugobjects.c:561 debug_object_is_on_stack lib/debugobjects.c:-1 [inline] WARNING: CPU: 0 PID: 4229 at lib/debugobjects.c:561 lookup_object_or_alloc lib/debugobjects.c:594 [inline] WARNING: CPU: 0 PID: 4229 at lib/debugobjects.c:561 __debug_object_init+0x4c0/0xc80 lib/debugobjects.c:621 Modules linked in: CPU: 0 PID: 4229 Comm: kworker/0:5 Tainted: G W syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/2026 Workqueue: events nsim_fib_event_work RIP: 0010:debug_object_is_on_stack lib/debugobjects.c:561 [inline] RIP: 0010:lookup_object_or_alloc lib/debugobjects.c:594 [inline] RIP: 0010:__debug_object_init+0x4c0/0xc80 lib/debugobjects.c:621 Code: a6 23 73 12 48 c7 c1 c0 4a 7a 8a 48 c7 c7 20 4b 7a 8a 84 c0 48 0f 45 f9 4c 89 ee e8 ba cd c8 05 48 be 00 00 00 00 00 fc ff df <0f> 0b e9 4d fd ff ff 83 3d d2 22 73 12 00 4c 89 6c 24 28 0f 84 23 RSP: 0018:ffffc900000078a0 EFLAGS: 00010046 RAX: 0000000000000050 RBX: 0000000000000001 RCX: b2c88d9c82dfd300 RDX: 0000000000000100 RSI: dffffc0000000000 RDI: 0000000000000000 RBP: ffffc90000007a10 R08: ffffc900000073c7 R09: 1ffff92000000e78 R10: dffffc0000000000 R11: fffff52000000e79 R12: f8f8f8f8f8f8f8f8 R13: ffffc90000007a60 R14: ffff8880256c9de0 R15: ffff888023ee7230 FS: 0000000000000000(0000) GS:ffff8880b9000000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000110c2d2422 CR3: 0000000023126000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: __synchronize_srcu+0x229/0x350 kernel/rcu/srcutree.c:928 wakeup_source_remove drivers/base/power/wakeup.c:203 [inline] wakeup_source_unregister+0x112/0x190 drivers/base/power/wakeup.c:247 mmc_host_classdev_release+0x43/0xf0 drivers/mmc/core/host.c:77 device_release+0x92/0x1c0 drivers/base/core.c:-1 kobject_cleanup lib/kobject.c:713 [inline] kobject_release lib/kobject.c:744 [inline] kref_put include/linux/kref.h:65 [inline] kobject_put+0x217/0x450 lib/kobject.c:761 call_timer_fn+0x17b/0x540 kernel/time/timer.c:1648 expire_timers kernel/time/timer.c:1699 [inline] __run_timers+0x56c/0x810 kernel/time/timer.c:1970 run_timer_softirq+0x63/0xf0 kernel/time/timer.c:1983 handle_softirqs+0x336/0x830 kernel/softirq.c:576 do_softirq+0x142/0x210 kernel/softirq.c:477 __local_bh_enable_ip+0x180/0x1c0 kernel/softirq.c:401 spin_unlock_bh include/linux/spinlock.h:409 [inline] nsim_fib_event_work+0x265/0x3380 drivers/net/netdevsim/fib.c:1478 process_one_work+0x867/0xff0 kernel/workqueue.c:2310 worker_thread+0xad7/0x12a0 kernel/workqueue.c:2457 kthread+0x42e/0x520 kernel/kthread.c:334 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:287