kobject: '9-1' (ffff88805fe4f0a8): kobject_cleanup, parent 0000000000000000 kobject: '9-1' (ffff88805fe4f0a8): calling ktype release kobject: '9-1': free name ================================ WARNING: inconsistent lock state syzkaller #0 Not tainted -------------------------------- inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. syz.6.787/7475 [HC0[0]:SC1[1]:HE1:SE0] takes: ffff888078840710 ((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: 78648 hardirqs last enabled at (78648): [] __cancel_work_timer+0x36a/0x560 kernel/workqueue.c:3174 hardirqs last disabled at (78647): [] try_to_grab_pending+0xfb/0x820 kernel/workqueue.c:1272 softirqs last enabled at (78570): [] __do_softirq kernel/softirq.c:610 [inline] softirqs last enabled at (78570): [] invoke_softirq kernel/softirq.c:450 [inline] softirqs last enabled at (78570): [] __irq_exit_rcu+0x13b/0x230 kernel/softirq.c:659 softirqs last disabled at (78585): [] __do_softirq kernel/softirq.c:610 [inline] softirqs last disabled at (78585): [] invoke_softirq kernel/softirq.c:450 [inline] softirqs last disabled at (78585): [] __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 *** 3 locks held by syz.6.787/7475: #0: ffff8880211a20e0 (&type->s_umount_key#65/1){+.+.}-{3:3}, at: alloc_super+0x200/0x970 fs/super.c:229 #1: ffffffff8d113ae0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0xa7/0x150 kernel/printk/printk.c:2273 #2: ffffc90000007bc0 ((&vub300->inactivity_timer)){+.-.}-{0:0}, at: lockdep_copy_map include/linux/lockdep.h:45 [inline] #2: ffffc90000007bc0 ((&vub300->inactivity_timer)){+.-.}-{0:0}, at: call_timer_fn+0xca/0x540 kernel/time/timer.c:1638 stack backtrace: CPU: 0 PID: 7475 Comm: syz.6.787 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/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+0xa0/0xc0 arch/x86/kernel/apic/apic.c:1108 asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:676 RIP: 0010:console_unlock+0xc90/0x10f0 kernel/printk/printk.c:2749 Code: 75 11 e8 33 e5 18 00 4d 85 e4 75 16 e8 29 e5 18 00 eb 15 e8 22 e5 18 00 e8 8d d8 61 08 4d 85 e4 74 ea e8 13 e5 18 00 fb 31 ff <89> de e8 69 e8 18 00 85 db 0f 94 c0 22 44 24 1f 3c 01 75 1f e8 f7 RSP: 0018:ffffc900038df0c0 EFLAGS: 00000246 RAX: ffffffff81603e4d RBX: 0000000000000000 RCX: 0000000000080000 RDX: ffffc90003461000 RSI: 00000000000120d4 RDI: 0000000000000000 RBP: ffffc900038df330 R08: ffffffff910150c7 R09: 1ffffffff2202a18 R10: dffffc0000000000 R11: fffffbfff2202a19 R12: 0000000000000200 R13: 000000000000004f R14: 0000000000000000 R15: dffffc0000000000 vprintk_emit+0xc0/0x150 kernel/printk/printk.c:2274 _printk+0xda/0x130 kernel/printk/printk.c:2299 btrfs_printk+0x4df/0x510 fs/btrfs/super.c:245 btrfs_parse_options+0x1bba/0x3210 fs/btrfs/super.c:738 open_ctree+0x11ad/0x3300 fs/btrfs/disk-io.c:3285 btrfs_fill_super+0x1c2/0x2e0 fs/btrfs/super.c:1387 btrfs_mount_root+0x8cb/0x930 fs/btrfs/super.c:1751 legacy_get_tree+0xe6/0x180 fs/fs_context.c:611 vfs_get_tree+0x88/0x270 fs/super.c:1541 fc_mount fs/namespace.c:1005 [inline] vfs_kern_mount+0xba/0x150 fs/namespace.c:1035 btrfs_mount+0x342/0xb10 fs/btrfs/super.c:1811 legacy_get_tree+0xe6/0x180 fs/fs_context.c:611 vfs_get_tree+0x88/0x270 fs/super.c:1541 do_new_mount+0x247/0xa40 fs/namespace.c:3034 do_mount fs/namespace.c:3377 [inline] __do_sys_mount fs/namespace.c:3585 [inline] __se_sys_mount+0x2e3/0x3d0 fs/namespace.c:3562 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 RIP: 0033:0x7f6fc06857ca 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:00007f6fbe8dae58 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 00007f6fbe8daee0 RCX: 00007f6fc06857ca RDX: 0000200000000000 RSI: 00002000000000c0 RDI: 00007f6fbe8daea0 RBP: 0000200000000000 R08: 00007f6fbe8daee0 R09: 0000000000800810 R10: 0000000000800810 R11: 0000000000000246 R12: 00002000000000c0 R13: 00007f6fbe8daea0 R14: 000000000000510a R15: 0000200000000140 BUG: sleeping function called from invalid context at kernel/workqueue.c:3031 in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 7475, name: syz.6.787 INFO: lockdep is turned off. Preemption disabled at: [] vprintk_emit+0xa2/0x150 kernel/printk/printk.c:2267 CPU: 0 PID: 7475 Comm: syz.6.787 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/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+0xa0/0xc0 arch/x86/kernel/apic/apic.c:1108 asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:676 RIP: 0010:console_unlock+0xc90/0x10f0 kernel/printk/printk.c:2749 Code: 75 11 e8 33 e5 18 00 4d 85 e4 75 16 e8 29 e5 18 00 eb 15 e8 22 e5 18 00 e8 8d d8 61 08 4d 85 e4 74 ea e8 13 e5 18 00 fb 31 ff <89> de e8 69 e8 18 00 85 db 0f 94 c0 22 44 24 1f 3c 01 75 1f e8 f7 RSP: 0018:ffffc900038df0c0 EFLAGS: 00000246 RAX: ffffffff81603e4d RBX: 0000000000000000 RCX: 0000000000080000 RDX: ffffc90003461000 RSI: 00000000000120d4 RDI: 0000000000000000 RBP: ffffc900038df330 R08: ffffffff910150c7 R09: 1ffffffff2202a18 R10: dffffc0000000000 R11: fffffbfff2202a19 R12: 0000000000000200 R13: 000000000000004f R14: 0000000000000000 R15: dffffc0000000000 vprintk_emit+0xc0/0x150 kernel/printk/printk.c:2274 _printk+0xda/0x130 kernel/printk/printk.c:2299 btrfs_printk+0x4df/0x510 fs/btrfs/super.c:245 btrfs_parse_options+0x1bba/0x3210 fs/btrfs/super.c:738 open_ctree+0x11ad/0x3300 fs/btrfs/disk-io.c:3285 btrfs_fill_super+0x1c2/0x2e0 fs/btrfs/super.c:1387 btrfs_mount_root+0x8cb/0x930 fs/btrfs/super.c:1751 legacy_get_tree+0xe6/0x180 fs/fs_context.c:611 vfs_get_tree+0x88/0x270 fs/super.c:1541 fc_mount fs/namespace.c:1005 [inline] vfs_kern_mount+0xba/0x150 fs/namespace.c:1035 btrfs_mount+0x342/0xb10 fs/btrfs/super.c:1811 legacy_get_tree+0xe6/0x180 fs/fs_context.c:611 vfs_get_tree+0x88/0x270 fs/super.c:1541 do_new_mount+0x247/0xa40 fs/namespace.c:3034 do_mount fs/namespace.c:3377 [inline] __do_sys_mount fs/namespace.c:3585 [inline] __se_sys_mount+0x2e3/0x3d0 fs/namespace.c:3562 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 RIP: 0033:0x7f6fc06857ca 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:00007f6fbe8dae58 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 00007f6fbe8daee0 RCX: 00007f6fc06857ca RDX: 0000200000000000 RSI: 00002000000000c0 RDI: 00007f6fbe8daea0 RBP: 0000200000000000 R08: 00007f6fbe8daee0 R09: 0000000000800810 R10: 0000000000800810 R11: 0000000000000246 R12: 00002000000000c0 R13: 00007f6fbe8daea0 R14: 000000000000510a R15: 0000200000000140 kobject: 'mmc0' (ffff888078840008): kobject_cleanup, parent 0000000000000000 kobject: 'mmc0' (ffff888078840008): calling ktype release BUG: scheduling while atomic: syz.6.787/7475/0x00000102 INFO: lockdep is turned off. Modules linked in: Preemption disabled at: [] vprintk_emit+0xa2/0x150 kernel/printk/printk.c:2267 ---------------- Code disassembly (best guess): 0: 75 11 jne 0x13 2: e8 33 e5 18 00 call 0x18e53a 7: 4d 85 e4 test %r12,%r12 a: 75 16 jne 0x22 c: e8 29 e5 18 00 call 0x18e53a 11: eb 15 jmp 0x28 13: e8 22 e5 18 00 call 0x18e53a 18: e8 8d d8 61 08 call 0x861d8aa 1d: 4d 85 e4 test %r12,%r12 20: 74 ea je 0xc 22: e8 13 e5 18 00 call 0x18e53a 27: fb sti 28: 31 ff xor %edi,%edi * 2a: 89 de mov %ebx,%esi <-- trapping instruction 2c: e8 69 e8 18 00 call 0x18e89a 31: 85 db test %ebx,%ebx 33: 0f 94 c0 sete %al 36: 22 44 24 1f and 0x1f(%rsp),%al 3a: 3c 01 cmp $0x1,%al 3c: 75 1f jne 0x5d 3e: e8 .byte 0xe8 3f: f7 .byte 0xf7