================================ WARNING: inconsistent lock state syzkaller #0 Not tainted -------------------------------- inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. udevd/5046 [HC0[0]:SC1[1]:HE1:SE0] takes: ffff8880783ec710 ((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+0x19f/0x400 kernel/locking/lockdep.c:5737 process_one_work+0x7ba/0xff0 kernel/workqueue.c:2286 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 irq event stamp: 965194 hardirqs last enabled at (965194): [] __cancel_work_timer+0x36a/0x560 kernel/workqueue.c:3174 hardirqs last disabled at (965193): [] try_to_grab_pending+0xfb/0x820 kernel/workqueue.c:1272 softirqs last enabled at (961472): [] local_bh_enable+0x5/0x20 include/linux/bottom_half.h:31 softirqs last disabled at (965129): [] __do_softirq kernel/softirq.c:610 [inline] softirqs last disabled at (965129): [] invoke_softirq kernel/softirq.c:450 [inline] softirqs last disabled at (965129): [] __irq_exit_rcu+0x13b/0x230 kernel/softirq.c:659 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 *** 1 lock held by udevd/5046: #0: ffffc9000339fb20 ((&vub300->inactivity_timer)){+.-.}-{0:0}, at: lockdep_copy_map include/linux/lockdep.h:45 [inline] #0: ffffc9000339fb20 ((&vub300->inactivity_timer)){+.-.}-{0:0}, at: call_timer_fn+0xca/0x540 kernel/time/timer.c:1638 stack backtrace: CPU: 1 PID: 5046 Comm: udevd Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/16/2026 Call Trace: dump_stack_lvl+0x188/0x250 lib/dump_stack.c:106 valid_state+0x13b/0x1d0 kernel/locking/lockdep.c:3999 mark_lock_irq+0xa9/0x900 kernel/locking/lockdep.c:4202 mark_lock+0x208/0x320 kernel/locking/lockdep.c:4664 mark_usage kernel/locking/lockdep.c:-1 [inline] __lock_acquire+0xd77/0x7d40 kernel/locking/lockdep.c:5074 lock_acquire+0x19f/0x400 kernel/locking/lockdep.c:5737 __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 kernel/softirq.c:610 [inline] invoke_softirq kernel/softirq.c:450 [inline] __irq_exit_rcu+0x13b/0x230 kernel/softirq.c:659 irq_exit_rcu+0x5/0x20 kernel/softirq.c:671 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1108 [inline] sysvec_apic_timer_interrupt+0x52/0xc0 arch/x86/kernel/apic/apic.c:1108 asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:676 RIP: 0033:0x7f5ac1720b18 Code: 00 00 c6 44 24 14 20 31 ed e9 fa f2 ff ff 0f 1f 40 00 49 8b 55 08 48 8d 42 08 49 89 45 08 e9 a6 f4 ff ff 0f 1f 80 00 00 00 00 <45> 85 e4 0f 85 7f 04 00 00 83 f8 2f 0f 87 ab 07 00 00 89 c2 83 c0 RSP: 002b:00007ffe693cb320 EFLAGS: 00000246 RAX: 0000000000000018 RBX: 00007ffe693cb820 RCX: 00007f5ac171f80d RDX: 0000000000000000 RSI: 0000562ac92837ee RDI: 00007ffe693cb820 RBP: 0000000000000000 R08: 0000000000000075 R09: 0000000000000000 R10: 0000000000000000 R11: 00007f5ac1893ac0 R12: 0000000000000000 R13: 00007ffe693cb8e8 R14: 00000000ffffffff R15: 0000000000000000 BUG: sleeping function called from invalid context at kernel/workqueue.c:3031 in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 5046, name: udevd INFO: lockdep is turned off. Preemption disabled at: [] softirq_handle_begin kernel/softirq.c:414 [inline] [] handle_softirqs+0xfd/0x830 kernel/softirq.c:552 CPU: 1 PID: 5046 Comm: udevd Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/16/2026 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 kernel/softirq.c:610 [inline] invoke_softirq kernel/softirq.c:450 [inline] __irq_exit_rcu+0x13b/0x230 kernel/softirq.c:659 irq_exit_rcu+0x5/0x20 kernel/softirq.c:671 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1108 [inline] sysvec_apic_timer_interrupt+0x52/0xc0 arch/x86/kernel/apic/apic.c:1108 asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:676 RIP: 0033:0x7f5ac1720b18 Code: 00 00 c6 44 24 14 20 31 ed e9 fa f2 ff ff 0f 1f 40 00 49 8b 55 08 48 8d 42 08 49 89 45 08 e9 a6 f4 ff ff 0f 1f 80 00 00 00 00 <45> 85 e4 0f 85 7f 04 00 00 83 f8 2f 0f 87 ab 07 00 00 89 c2 83 c0 RSP: 002b:00007ffe693cb320 EFLAGS: 00000246 RAX: 0000000000000018 RBX: 00007ffe693cb820 RCX: 00007f5ac171f80d RDX: 0000000000000000 RSI: 0000562ac92837ee RDI: 00007ffe693cb820 RBP: 0000000000000000 R08: 0000000000000075 R09: 0000000000000000 R10: 0000000000000000 R11: 00007f5ac1893ac0 R12: 0000000000000000 R13: 00007ffe693cb8e8 R14: 00000000ffffffff R15: 0000000000000000 BUG: scheduling while atomic: udevd/5046/0x00000101 INFO: lockdep is turned off. Modules linked in: Preemption disabled at: [] softirq_handle_begin kernel/softirq.c:414 [inline] [] handle_softirqs+0xfd/0x830 kernel/softirq.c:552