================================ WARNING: inconsistent lock state syzkaller #0 Not tainted -------------------------------- inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. syz.1.841/7192 [HC0[0]:SC1[1]:HE1:SE0] takes: ffff888019a88648 ((work_completion)(&(&host->detect)->work)){+.?.}-{0:0}, at: __flush_work+0x109/0xac0 kernel/workqueue.c:3072 {SOFTIRQ-ON-W} state was registered at: lock_acquire+0x1bc/0x4a0 kernel/locking/lockdep.c:5790 __flush_work+0x122/0xac0 kernel/workqueue.c:3072 __cancel_work_timer+0x3f4/0x560 kernel/workqueue.c:3163 __mmc_stop_host drivers/mmc/core/core.c:2303 [inline] mmc_stop_host+0xd5/0x460 drivers/mmc/core/core.c:2308 mmc_remove_host+0x11/0x60 drivers/mmc/core/host.c:651 vub300_disconnect+0x14b/0x2e0 drivers/mmc/host/vub300.c:2388 usb_unbind_interface+0x200/0x870 drivers/usb/core/driver.c:457 device_remove drivers/base/dd.c:549 [inline] __device_release_driver drivers/base/dd.c:1279 [inline] device_release_driver_internal+0x4cf/0x7c0 drivers/base/dd.c:1305 bus_remove_device+0x2dd/0x400 drivers/base/bus.c:531 device_del+0x63f/0xa80 drivers/base/core.c:3900 usb_disable_device+0x3e7/0x8a0 drivers/usb/core/message.c:1472 usb_disconnect+0x33c/0x8a0 drivers/usb/core/hub.c:2319 hub_port_connect drivers/usb/core/hub.c:5366 [inline] hub_port_connect_change drivers/usb/core/hub.c:5662 [inline] port_event drivers/usb/core/hub.c:5822 [inline] hub_event+0x1d27/0x5200 drivers/usb/core/hub.c:5904 process_one_work+0x8ab/0x1160 kernel/workqueue.c:2292 process_scheduled_works kernel/workqueue.c:2355 [inline] worker_thread+0xd6e/0x12a0 kernel/workqueue.c:2441 kthread+0x29d/0x330 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295 irq event stamp: 149638 hardirqs last enabled at (149638): [] __cancel_work_timer+0x36a/0x560 kernel/workqueue.c:3156 hardirqs last disabled at (149637): [] try_to_grab_pending+0xfa/0x890 kernel/workqueue.c:1267 softirqs last enabled at (148984): [] __do_softirq kernel/softirq.c:630 [inline] softirqs last enabled at (148984): [] invoke_softirq kernel/softirq.c:470 [inline] softirqs last enabled at (148984): [] __irq_exit_rcu+0x13b/0x230 kernel/softirq.c:679 softirqs last disabled at (149573): [] __do_softirq kernel/softirq.c:630 [inline] softirqs last disabled at (149573): [] invoke_softirq kernel/softirq.c:470 [inline] softirqs last disabled at (149573): [] __irq_exit_rcu+0x13b/0x230 kernel/softirq.c:679 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 syz.1.841/7192: #0: ffff88807842e0e0 (&type->s_umount_key#59/1){+.+.}-{3:3}, at: alloc_super+0x1fb/0x930 fs/super.c:228 #1: ffff888077c1a238 (&nm_i->nid_list_lock){+.+.}-{2:2}, at: spin_lock include/linux/spinlock.h:351 [inline] #1: ffff888077c1a238 (&nm_i->nid_list_lock){+.+.}-{2:2}, at: load_free_nid_bitmap fs/f2fs/node.c:3239 [inline] #1: ffff888077c1a238 (&nm_i->nid_list_lock){+.+.}-{2:2}, at: f2fs_build_node_manager+0x1b33/0x2c10 fs/f2fs/node.c:3363 #2: ffffc900001e0bc0 ((&vub300->inactivity_timer)){+.-.}-{0:0}, at: call_timer_fn+0xcf/0x670 kernel/time/timer.c:1698 stack backtrace: CPU: 1 PID: 7192 Comm: syz.1.841 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/07/2026 Call Trace: dump_stack_lvl+0x188/0x24e lib/dump_stack.c:106 valid_state+0x13b/0x1d0 kernel/locking/lockdep.c:4041 mark_lock_irq+0xa9/0x900 kernel/locking/lockdep.c:4244 mark_lock+0x208/0x320 kernel/locking/lockdep.c:4706 mark_usage kernel/locking/lockdep.c:-1 [inline] __lock_acquire+0xdf3/0x7ea0 kernel/locking/lockdep.c:5125 lock_acquire+0x1bc/0x4a0 kernel/locking/lockdep.c:5790 __flush_work+0x122/0xac0 kernel/workqueue.c:3072 __cancel_work_timer+0x3f4/0x560 kernel/workqueue.c:3163 mmc_free_host+0x15/0x40 drivers/mmc/core/host.c:672 call_timer_fn+0x1ac/0x670 kernel/time/timer.c:1701 expire_timers kernel/time/timer.c:1752 [inline] __run_timers+0x56c/0x810 kernel/time/timer.c:2023 run_timer_softirq+0x63/0xf0 kernel/time/timer.c:2036 handle_softirqs+0x291/0x910 kernel/softirq.c:596 __do_softirq kernel/softirq.c:630 [inline] invoke_softirq kernel/softirq.c:470 [inline] __irq_exit_rcu+0x13b/0x230 kernel/softirq.c:679 irq_exit_rcu+0x5/0x20 kernel/softirq.c:691 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1118 [inline] sysvec_apic_timer_interrupt+0xa0/0xc0 arch/x86/kernel/apic/apic.c:1118 asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:691 RIP: 0010:variable_test_bit arch/x86/include/asm/bitops.h:228 [inline] RIP: 0010:arch_test_bit arch/x86/include/asm/bitops.h:240 [inline] RIP: 0010:_test_bit include/asm-generic/bitops/instrumented-non-atomic.h:142 [inline] RIP: 0010:test_bit_le include/asm-generic/bitops/le.h:21 [inline] RIP: 0010:update_free_nid_bitmap fs/f2fs/node.c:2291 [inline] RIP: 0010:load_free_nid_bitmap fs/f2fs/node.c:3241 [inline] RIP: 0010:f2fs_build_node_manager+0x1bdb/0x2c10 fs/f2fs/node.c:3363 Code: 20 44 89 e9 29 c1 d1 e9 01 c1 c1 e9 08 48 8b 1b 41 89 cc c1 e9 06 48 8d 3c cb be 08 00 00 00 e8 3b a5 1f fe 31 f6 4c 0f a3 23 <0f> 92 c3 40 0f 92 c6 bf 02 00 00 00 e8 04 4a ce fd 84 db 0f 84 c5 RSP: 0018:ffffc9000d2d79b8 EFLAGS: 00000247 RAX: 0000000000002b01 RBX: ffff88814cec0500 RCX: ffffffff83b3fec5 RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffff88814cec0518 RBP: 0000000000015790 R08: ffff88814cec051f R09: 1ffff110299d80a3 R10: dffffc0000000000 R11: ffffed10299d80a4 R12: 00000000000000c1 R13: 0000000000015790 R14: ffff8880303f0158 R15: 00000000000158ce f2fs_fill_super+0x4172/0x6ba0 fs/f2fs/super.c:4404 mount_bdev+0x28a/0x3c0 fs/super.c:1454 legacy_get_tree+0xe6/0x180 fs/fs_context.c:632 vfs_get_tree+0x88/0x270 fs/super.c:1584 do_new_mount+0x247/0xa40 fs/namespace.c:3078 do_mount fs/namespace.c:3421 [inline] __do_sys_mount fs/namespace.c:3629 [inline] __se_sys_mount+0x2e3/0x3d0 fs/namespace.c:3606 do_syscall_x64 arch/x86/entry/common.c:46 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:76 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7fc9a13a07ca Code: 48 c7 c2 e8 ff ff ff f7 d8 64 89 02 b8 ff ff ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 49 89 ca b8 a5 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 e8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fc9a21b7e58 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 00007fc9a21b7ee0 RCX: 00007fc9a13a07ca RDX: 0000200000000400 RSI: 0000200000000680 RDI: 00007fc9a21b7ea0 RBP: 0000200000000400 R08: 00007fc9a21b7ee0 R09: 0000000001000800 R10: 0000000001000800 R11: 0000000000000246 R12: 0000200000000680 R13: 00007fc9a21b7ea0 R14: 0000000000005524 R15: 00002000000006c0 vkms_vblank_simulate: vblank timer overrun BUG: sleeping function called from invalid context at kernel/workqueue.c:3013 in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 7192, name: syz.1.841 preempt_count: 101, expected: 0 RCU nest depth: 0, expected: 0 INFO: lockdep is turned off. Preemption disabled at: [<0000000000000000>] 0x0 CPU: 1 PID: 7192 Comm: syz.1.841 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/07/2026 Call Trace: dump_stack_lvl+0x188/0x24e lib/dump_stack.c:106 __might_resched+0x489/0x5f0 kernel/sched/core.c:9970 start_flush_work kernel/workqueue.c:3013 [inline] __flush_work+0x142/0xac0 kernel/workqueue.c:3075 __cancel_work_timer+0x3f4/0x560 kernel/workqueue.c:3163 mmc_free_host+0x15/0x40 drivers/mmc/core/host.c:672 call_timer_fn+0x1ac/0x670 kernel/time/timer.c:1701 expire_timers kernel/time/timer.c:1752 [inline] __run_timers+0x56c/0x810 kernel/time/timer.c:2023 run_timer_softirq+0x63/0xf0 kernel/time/timer.c:2036 handle_softirqs+0x291/0x910 kernel/softirq.c:596 __do_softirq kernel/softirq.c:630 [inline] invoke_softirq kernel/softirq.c:470 [inline] __irq_exit_rcu+0x13b/0x230 kernel/softirq.c:679 irq_exit_rcu+0x5/0x20 kernel/softirq.c:691 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1118 [inline] sysvec_apic_timer_interrupt+0xa0/0xc0 arch/x86/kernel/apic/apic.c:1118 asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:691 RIP: 0010:variable_test_bit arch/x86/include/asm/bitops.h:228 [inline] RIP: 0010:arch_test_bit arch/x86/include/asm/bitops.h:240 [inline] RIP: 0010:_test_bit include/asm-generic/bitops/instrumented-non-atomic.h:142 [inline] RIP: 0010:test_bit_le include/asm-generic/bitops/le.h:21 [inline] RIP: 0010:update_free_nid_bitmap fs/f2fs/node.c:2291 [inline] RIP: 0010:load_free_nid_bitmap fs/f2fs/node.c:3241 [inline] RIP: 0010:f2fs_build_node_manager+0x1bdb/0x2c10 fs/f2fs/node.c:3363 Code: 20 44 89 e9 29 c1 d1 e9 01 c1 c1 e9 08 48 8b 1b 41 89 cc c1 e9 06 48 8d 3c cb be 08 00 00 00 e8 3b a5 1f fe 31 f6 4c 0f a3 23 <0f> 92 c3 40 0f 92 c6 bf 02 00 00 00 e8 04 4a ce fd 84 db 0f 84 c5 RSP: 0018:ffffc9000d2d79b8 EFLAGS: 00000247 RAX: 0000000000002b01 RBX: ffff88814cec0500 RCX: ffffffff83b3fec5 RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffff88814cec0518 RBP: 0000000000015790 R08: ffff88814cec051f R09: 1ffff110299d80a3 R10: dffffc0000000000 R11: ffffed10299d80a4 R12: 00000000000000c1 R13: 0000000000015790 R14: ffff8880303f0158 R15: 00000000000158ce f2fs_fill_super+0x4172/0x6ba0 fs/f2fs/super.c:4404 mount_bdev+0x28a/0x3c0 fs/super.c:1454 legacy_get_tree+0xe6/0x180 fs/fs_context.c:632 vfs_get_tree+0x88/0x270 fs/super.c:1584 do_new_mount+0x247/0xa40 fs/namespace.c:3078 do_mount fs/namespace.c:3421 [inline] __do_sys_mount fs/namespace.c:3629 [inline] __se_sys_mount+0x2e3/0x3d0 fs/namespace.c:3606 do_syscall_x64 arch/x86/entry/common.c:46 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:76 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7fc9a13a07ca Code: 48 c7 c2 e8 ff ff ff f7 d8 64 89 02 b8 ff ff ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 49 89 ca b8 a5 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 e8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fc9a21b7e58 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 00007fc9a21b7ee0 RCX: 00007fc9a13a07ca RDX: 0000200000000400 RSI: 0000200000000680 RDI: 00007fc9a21b7ea0 RBP: 0000200000000400 R08: 00007fc9a21b7ee0 R09: 0000000001000800 R10: 0000000001000800 R11: 0000000000000246 R12: 0000200000000680 R13: 00007fc9a21b7ea0 R14: 0000000000005524 R15: 00002000000006c0 vkms_vblank_simulate: vblank timer overrun ODEBUG: object ffffc900001e09a0 is NOT on stack ffffc9000d2d0000, but annotated. ------------[ cut here ]------------ WARNING: CPU: 1 PID: 7192 at lib/debugobjects.c:558 debug_object_is_on_stack lib/debugobjects.c:-1 [inline] WARNING: CPU: 1 PID: 7192 at lib/debugobjects.c:558 lookup_object_or_alloc lib/debugobjects.c:591 [inline] WARNING: CPU: 1 PID: 7192 at lib/debugobjects.c:558 __debug_object_init+0x18e/0x440 lib/debugobjects.c:672 Modules linked in: CPU: 1 PID: 7192 Comm: syz.1.841 Tainted: G W syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/07/2026 RIP: 0010:debug_object_is_on_stack lib/debugobjects.c:558 [inline] RIP: 0010:lookup_object_or_alloc lib/debugobjects.c:591 [inline] RIP: 0010:__debug_object_init+0x18e/0x440 lib/debugobjects.c:672 Code: 24 04 74 2f 41 ff c6 44 89 35 3e 36 bf 13 48 c7 c1 00 7a df 8a 48 c7 c7 60 7a df 8a 84 c0 48 0f 45 f9 48 89 de e8 f2 9a 0d 06 <0f> 0b eb 05 4c 8b 7c 24 18 4d 8d 65 10 4d 89 e6 49 c1 ee 03 41 0f RSP: 0018:ffffc900001e0908 EFLAGS: 00010046 RAX: 0000000000000050 RBX: ffffc900001e09a0 RCX: 381cd1ff0a0c7700 RDX: 0000000000000100 RSI: 0000000000000102 RDI: 0000000000000000 RBP: dffffc0000000000 R08: ffffc900001e0587 R09: 1ffff9200003c0b0 R10: dffffc0000000000 R11: fffff5200003c0b1 R12: ffff888027630020 R13: ffff8880562e8e70 R14: 0000000000000001 R15: ffffffff8a8d32c0 FS: 00007fc9a21b86c0(0000) GS:ffff8880b8d00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b2fd06ff8 CR3: 000000007ddfa000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: __synchronize_srcu+0x227/0x350 kernel/rcu/srcutree.c:1241 wakeup_source_remove drivers/base/power/wakeup.c:198 [inline] wakeup_source_unregister+0x112/0x190 drivers/base/power/wakeup.c:242 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:681 [inline] kobject_release lib/kobject.c:712 [inline] kref_put include/linux/kref.h:65 [inline] kobject_put+0x217/0x450 lib/kobject.c:729 call_timer_fn+0x1ac/0x670 kernel/time/timer.c:1701 expire_timers kernel/time/timer.c:1752 [inline] __run_timers+0x56c/0x810 kernel/time/timer.c:2023 run_timer_softirq+0x63/0xf0 kernel/time/timer.c:2036 handle_softirqs+0x291/0x910 kernel/softirq.c:596 __do_softirq kernel/softirq.c:630 [inline] invoke_softirq kernel/softirq.c:470 [inline] __irq_exit_rcu+0x13b/0x230 kernel/softirq.c:679 irq_exit_rcu+0x5/0x20 kernel/softirq.c:691 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1118 [inline] sysvec_apic_timer_interrupt+0xa0/0xc0 arch/x86/kernel/apic/apic.c:1118 asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:691 RIP: 0010:variable_test_bit arch/x86/include/asm/bitops.h:228 [inline] RIP: 0010:arch_test_bit arch/x86/include/asm/bitops.h:240 [inline] RIP: 0010:_test_bit include/asm-generic/bitops/instrumented-non-atomic.h:142 [inline] RIP: 0010:test_bit_le include/asm-generic/bitops/le.h:21 [inline] RIP: 0010:update_free_nid_bitmap fs/f2fs/node.c:2291 [inline] RIP: 0010:load_free_nid_bitmap fs/f2fs/node.c:3241 [inline] RIP: 0010:f2fs_build_node_manager+0x1bdb/0x2c10 fs/f2fs/node.c:3363 Code: 20 44 89 e9 29 c1 d1 e9 01 c1 c1 e9 08 48 8b 1b 41 89 cc c1 e9 06 48 8d 3c cb be 08 00 00 00 e8 3b a5 1f fe 31 f6 4c 0f a3 23 <0f> 92 c3 40 0f 92 c6 bf 02 00 00 00 e8 04 4a ce fd 84 db 0f 84 c5 RSP: 0018:ffffc9000d2d79b8 EFLAGS: 00000247 RAX: 0000000000002b01 RBX: ffff88814cec0500 RCX: ffffffff83b3fec5 RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffff88814cec0518 RBP: 0000000000015790 R08: ffff88814cec051f R09: 1ffff110299d80a3 R10: dffffc0000000000 R11: ffffed10299d80a4 R12: 00000000000000c1 R13: 0000000000015790 R14: ffff8880303f0158 R15: 00000000000158ce f2fs_fill_super+0x4172/0x6ba0 fs/f2fs/super.c:4404 mount_bdev+0x28a/0x3c0 fs/super.c:1454 legacy_get_tree+0xe6/0x180 fs/fs_context.c:632 vfs_get_tree+0x88/0x270 fs/super.c:1584 do_new_mount+0x247/0xa40 fs/namespace.c:3078 do_mount fs/namespace.c:3421 [inline] __do_sys_mount fs/namespace.c:3629 [inline] __se_sys_mount+0x2e3/0x3d0 fs/namespace.c:3606 do_syscall_x64 arch/x86/entry/common.c:46 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:76 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7fc9a13a07ca Code: 48 c7 c2 e8 ff ff ff f7 d8 64 89 02 b8 ff ff ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 49 89 ca b8 a5 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 e8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fc9a21b7e58 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 00007fc9a21b7ee0 RCX: 00007fc9a13a07ca RDX: 0000200000000400 RSI: 0000200000000680 RDI: 00007fc9a21b7ea0 RBP: 0000200000000400 R08: 00007fc9a21b7ee0 R09: 0000000001000800 R10: 0000000001000800 R11: 0000000000000246 R12: 0000200000000680 R13: 00007fc9a21b7ea0 R14: 0000000000005524 R15: 00002000000006c0 ---------------- Code disassembly (best guess): 0: 20 44 89 e9 and %al,-0x17(%rcx,%rcx,4) 4: 29 c1 sub %eax,%ecx 6: d1 e9 shr $1,%ecx 8: 01 c1 add %eax,%ecx a: c1 e9 08 shr $0x8,%ecx d: 48 8b 1b mov (%rbx),%rbx 10: 41 89 cc mov %ecx,%r12d 13: c1 e9 06 shr $0x6,%ecx 16: 48 8d 3c cb lea (%rbx,%rcx,8),%rdi 1a: be 08 00 00 00 mov $0x8,%esi 1f: e8 3b a5 1f fe call 0xfe1fa55f 24: 31 f6 xor %esi,%esi 26: 4c 0f a3 23 bt %r12,(%rbx) * 2a: 0f 92 c3 setb %bl <-- trapping instruction 2d: 40 0f 92 c6 setb %sil 31: bf 02 00 00 00 mov $0x2,%edi 36: e8 04 4a ce fd call 0xfdce4a3f 3b: 84 db test %bl,%bl 3d: 0f .byte 0xf 3e: 84 c5 test %al,%ch