loop0: detected capacity change from 0 to 4096 ntfs3: loop0: Different NTFS' sector size (1024) and media sector size (512) ================================ WARNING: inconsistent lock state 6.1.61-syzkaller #0 Not tainted -------------------------------- inconsistent {IN-HARDIRQ-W} -> {HARDIRQ-ON-W} usage. syz-executor194/11584 [HC0[0]:SC0[0]:HE1:SE1] takes: ffffffff81f7d67e (&obj_hash[i].lock){?.-.}-{2:2}, at: 0xa1972b4aa77b9a29 {IN-HARDIRQ-W} state was registered at: lock_acquire+0x1f8/0x5a0 kernel/locking/lockdep.c:5661 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline] _raw_spin_lock_irqsave+0xd1/0x120 kernel/locking/spinlock.c:162 debug_object_activate+0x16a/0x890 lib/debugobjects.c:706 debug_timer_activate kernel/time/timer.c:782 [inline] add_timer_on+0x348/0x580 kernel/time/timer.c:1234 handle_irq_event_percpu kernel/irq/handle.c:195 [inline] handle_irq_event+0xa9/0x1e0 kernel/irq/handle.c:210 handle_edge_irq+0x245/0xbf0 kernel/irq/chip.c:819 generic_handle_irq_desc include/linux/irqdesc.h:158 [inline] handle_irq arch/x86/kernel/irq.c:231 [inline] __common_interrupt+0xd7/0x1f0 arch/x86/kernel/irq.c:250 common_interrupt+0x9f/0xc0 arch/x86/kernel/irq.c:240 asm_common_interrupt+0x22/0x40 arch/x86/include/asm/idtentry.h:640 console_emit_next_record+0xc69/0xea0 kernel/printk/printk.c:2751 console_unlock+0x278/0x7c0 kernel/printk/printk.c:2871 vprintk_emit+0x523/0x740 kernel/printk/printk.c:2268 _printk+0xd1/0x111 kernel/printk/printk.c:2293 calibrate_delay+0x158f/0x16a0 init/calibrate.c:308 start_kernel+0x41e/0x53f init/main.c:1099 secondary_startup_64_no_verify+0xcf/0xdb irq event stamp: 12493 hardirqs last enabled at (12493): [] raw_spin_rq_unlock_irq kernel/sched/sched.h:1366 [inline] hardirqs last enabled at (12493): [] finish_lock_switch kernel/sched/core.c:5000 [inline] hardirqs last enabled at (12493): [] finish_task_switch+0x1ca/0x810 kernel/sched/core.c:5118 hardirqs last disabled at (12492): [] __schedule+0x320/0x4550 kernel/sched/core.c:6453 softirqs last enabled at (11754): [] invoke_softirq kernel/softirq.c:445 [inline] softirqs last enabled at (11754): [] __irq_exit_rcu+0x155/0x240 kernel/softirq.c:650 softirqs last disabled at (10939): [] invoke_softirq kernel/softirq.c:445 [inline] softirqs last disabled at (10939): [] __irq_exit_rcu+0x155/0x240 kernel/softirq.c:650 other info that might help us debug this: Possible unsafe locking scenario: CPU0 ---- lock(&obj_hash[i].lock); lock(&obj_hash[i].lock); *** DEADLOCK *** 1 lock held by syz-executor194/11584: #0: ffff8880731b40e0 (&type->s_umount_key#49/1){+.+.}-{3:3}, at: alloc_super+0x217/0x930 fs/super.c:228 stack backtrace: CPU: 1 PID: 11584 Comm: syz-executor194 Not tainted 6.1.61-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/09/2023 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x1e3/0x2cb lib/dump_stack.c:106 valid_state+0x136/0x1c0 kernel/locking/lockdep.c:3968 mark_lock_irq+0xa8/0xba0 kernel/locking/lockdep.c:4171 mark_lock+0x21c/0x340 kernel/locking/lockdep.c:4627 mark_usage kernel/locking/lockdep.c:4536 [inline] __lock_acquire+0xc0d/0x1f80 kernel/locking/lockdep.c:5002 lock_acquire+0x1f8/0x5a0 kernel/locking/lockdep.c:5661 __raw_spin_lock include/linux/spinlock_api_smp.h:133 [inline] _raw_spin_lock+0x2a/0x40 kernel/locking/spinlock.c:154 spin_lock include/linux/spinlock.h:350 [inline] iput_final fs/inode.c:1778 [inline] iput+0x61e/0x980 fs/inode.c:1815 ntfs_fill_super+0x3cec/0x4500 fs/ntfs3/super.c:1190 get_tree_bdev+0x3fe/0x620 fs/super.c:1355 vfs_get_tree+0x88/0x270 fs/super.c:1562 do_new_mount+0x28b/0xae0 fs/namespace.c:3040 do_mount fs/namespace.c:3383 [inline] __do_sys_mount fs/namespace.c:3591 [inline] __se_sys_mount+0x2d5/0x3c0 fs/namespace.c:3568 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7fc20f6a069a Code: d8 64 89 02 48 c7 c0 ff ff ff ff eb a6 e8 ee 08 00 00 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 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fff78d97998 EFLAGS: 00000286 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007fc20f6a069a RDX: 0000000020000000 RSI: 000000002001f740 RDI: 00007fff78d979e0 RBP: 0000000000000004 R08: 00007fff78d97a20 R09: 000000000001f735 R10: 0000000001000000 R11: 0000000000000286 R12: 00007fff78d979e0 R13: 00007fff78d97a20 R14: 0000000000200000 R15: 0000000000000003 ntfs3: loop0: Mark volume as dirty due to NTFS errors