loop4: detected capacity change from 0 to 4096 ntfs3(loop4): Different NTFS sector size (1024) and media sector size (512). ================================== WARNING: Nested lock was not taken 6.12.0-rc5-syzkaller-00299-g11066801dd4b #0 Not tainted ---------------------------------- syz.4.5/5973 is trying to lock: ffff888060aab650 (&sb->s_type->i_lock_key#36){+.+.}-{2:2}, at: spin_lock include/linux/spinlock.h:351 [inline] ffff888060aab650 (&sb->s_type->i_lock_key#36){+.+.}-{2:2}, at: iput_final fs/inode.c:1866 [inline] ffff888060aab650 (&sb->s_type->i_lock_key#36){+.+.}-{2:2}, at: iput fs/inode.c:1903 [inline] ffff888060aab650 (&sb->s_type->i_lock_key#36){+.+.}-{2:2}, at: iput+0x648/0x890 fs/inode.c:1889 but this task is not holding: Oops: general protection fault, probably for non-canonical address 0xdffffc0000000003: 0000 [#1] PREEMPT SMP KASAN NOPTI KASAN: null-ptr-deref in range [0x0000000000000018-0x000000000000001f] CPU: 1 UID: 0 PID: 5973 Comm: syz.4.5 Not tainted 6.12.0-rc5-syzkaller-00299-g11066801dd4b #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 RIP: 0010:print_lock_nested_lock_not_held kernel/locking/lockdep.c:5025 [inline] RIP: 0010:__lock_acquire+0x1127/0x3ce0 kernel/locking/lockdep.c:5193 Code: fc ff df 48 c1 ea 03 80 3c 02 00 0f 85 14 2b 00 00 48 b8 00 00 00 00 00 fc ff df 49 8b 5d 18 48 8d 7b 18 48 89 fa 48 c1 ea 03 <80> 3c 02 00 0f 85 e7 2a 00 00 48 8b 73 18 48 c7 c7 a0 04 6d 8b e8 RSP: 0018:ffffc900047af820 EFLAGS: 00010016 RAX: dffffc0000000000 RBX: 0000000000000000 RCX: ffffc9000c742000 RDX: 0000000000000003 RSI: ffffffff816de8a6 RDI: 0000000000000018 RBP: 00000000ffffffff R08: 0000000000000005 R09: 0000000000000000 R10: 0000000080000002 R11: 7369687420747562 R12: ffff88802ff70000 R13: ffff88802ff70b08 R14: ffffed1005fee15b R15: ffff88802ff70000 FS: 00007f0866fc96c0(0000) GS:ffff8880b8700000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000055558555c608 CR3: 00000000312f4000 CR4: 0000000000350ef0 Call Trace: lock_acquire.part.0+0x11b/0x380 kernel/locking/lockdep.c:5825 __raw_spin_lock include/linux/spinlock_api_smp.h:133 [inline] _raw_spin_lock+0x2e/0x40 kernel/locking/spinlock.c:154 spin_lock include/linux/spinlock.h:351 [inline] iput_final fs/inode.c:1866 [inline] iput fs/inode.c:1903 [inline] iput+0x648/0x890 fs/inode.c:1889 ntfs_fill_super+0x3325/0x41a0 fs/ntfs3/super.c:1472 get_tree_bdev_flags+0x38e/0x620 fs/super.c:1636 vfs_get_tree+0x92/0x380 fs/super.c:1814 do_new_mount fs/namespace.c:3507 [inline] path_mount+0x14e6/0x1f20 fs/namespace.c:3834 do_mount fs/namespace.c:3847 [inline] __do_sys_mount fs/namespace.c:4057 [inline] __se_sys_mount fs/namespace.c:4034 [inline] __x64_sys_mount+0x294/0x320 fs/namespace.c:4034 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f086617feba Code: d8 64 89 02 48 c7 c0 ff ff ff ff eb a6 e8 de 1a 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 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f0866fc8e68 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 00007f0866fc8ef0 RCX: 00007f086617feba RDX: 0000000020000040 RSI: 0000000020000980 RDI: 00007f0866fc8eb0 RBP: 0000000020000040 R08: 00007f0866fc8ef0 R09: 0000000000800000 R10: 0000000000800000 R11: 0000000000000246 R12: 0000000020000980 R13: 00007f0866fc8eb0 R14: 000000000001f855 R15: 0000000020000640 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:print_lock_nested_lock_not_held kernel/locking/lockdep.c:5025 [inline] RIP: 0010:__lock_acquire+0x1127/0x3ce0 kernel/locking/lockdep.c:5193 Code: fc ff df 48 c1 ea 03 80 3c 02 00 0f 85 14 2b 00 00 48 b8 00 00 00 00 00 fc ff df 49 8b 5d 18 48 8d 7b 18 48 89 fa 48 c1 ea 03 <80> 3c 02 00 0f 85 e7 2a 00 00 48 8b 73 18 48 c7 c7 a0 04 6d 8b e8 RSP: 0018:ffffc900047af820 EFLAGS: 00010016 RAX: dffffc0000000000 RBX: 0000000000000000 RCX: ffffc9000c742000 RDX: 0000000000000003 RSI: ffffffff816de8a6 RDI: 0000000000000018 RBP: 00000000ffffffff R08: 0000000000000005 R09: 0000000000000000 R10: 0000000080000002 R11: 7369687420747562 R12: ffff88802ff70000 R13: ffff88802ff70b08 R14: ffffed1005fee15b R15: ffff88802ff70000 FS: 00007f0866fc96c0(0000) GS:ffff8880b8700000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000055558555c608 CR3: 00000000312f4000 CR4: 0000000000350ef0 ---------------- Code disassembly (best guess), 3 bytes skipped: 0: 48 c1 ea 03 shr $0x3,%rdx 4: 80 3c 02 00 cmpb $0x0,(%rdx,%rax,1) 8: 0f 85 14 2b 00 00 jne 0x2b22 e: 48 b8 00 00 00 00 00 movabs $0xdffffc0000000000,%rax 15: fc ff df 18: 49 8b 5d 18 mov 0x18(%r13),%rbx 1c: 48 8d 7b 18 lea 0x18(%rbx),%rdi 20: 48 89 fa mov %rdi,%rdx 23: 48 c1 ea 03 shr $0x3,%rdx * 27: 80 3c 02 00 cmpb $0x0,(%rdx,%rax,1) <-- trapping instruction 2b: 0f 85 e7 2a 00 00 jne 0x2b18 31: 48 8b 73 18 mov 0x18(%rbx),%rsi 35: 48 c7 c7 a0 04 6d 8b mov $0xffffffff8b6d04a0,%rdi 3c: e8 .byte 0xe8