===================================== WARNING: bad unlock balance detected! 6.2.0-rc6-syzkaller #0 Not tainted ------------------------------------- syz-executor.0/6515 is trying to release lock (&ni->ni_lock) at: [] ni_unlock fs/ntfs3/ntfs_fs.h:1137 [inline] [] ntfs_set_size+0x12a/0x190 fs/ntfs3/inode.c:827 but there are no more locks to release! other info that might help us debug this: 3 locks held by syz-executor.0/6515: #0: ffff88807ab7a460 (sb_writers#13){.+.+}-{0:0}, at: do_sendfile+0x4e0/0xcc0 fs/read_write.c:1254 #1: ffff8880736999c0 (&sb->s_type->i_mutex_key#21){+.+.}-{3:3}, at: inode_trylock include/linux/fs.h:776 [inline] #1: ffff8880736999c0 (&sb->s_type->i_mutex_key#21){+.+.}-{3:3}, at: ntfs_file_write_iter+0x151/0x520 fs/ntfs3/file.c:1048 #2: ffff88807369971f (&ni->ni_lock/4){+.+.}-{3:3}, at: ni_lock fs/ntfs3/ntfs_fs.h:1122 [inline] #2: ffff88807369971f (&ni->ni_lock/4){+.+.}-{3:3}, at: ntfs_set_size+0xdb/0x190 fs/ntfs3/inode.c:820 stack backtrace: CPU: 0 PID: 6515 Comm: syz-executor.0 Not tainted 6.2.0-rc6-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x12a/0x1c0 lib/dump_stack.c:106 print_unlock_imbalance_bug+0x258/0x2c0 kernel/locking/lockdep.c:5108 __lock_release kernel/locking/lockdep.c:5345 [inline] lock_release+0x52e/0x820 kernel/locking/lockdep.c:5688 __mutex_unlock_slowpath+0xde/0x770 kernel/locking/mutex.c:907 ni_unlock fs/ntfs3/ntfs_fs.h:1137 [inline] ntfs_set_size+0x12a/0x190 fs/ntfs3/inode.c:827 ntfs_extend+0x134/0x390 fs/ntfs3/file.c:337 ntfs_file_write_iter+0x210/0x520 fs/ntfs3/file.c:1064 do_iter_write+0x632/0xa90 fs/read_write.c:861 iter_file_splice_write+0x79d/0xf60 fs/splice.c:686 do_splice_from fs/splice.c:764 [inline] direct_splice_actor+0xdd/0x1a0 fs/splice.c:931 splice_direct_to_actor+0x434/0xa70 fs/splice.c:886 do_splice_direct+0x261/0x3a0 fs/splice.c:974 do_sendfile+0x501/0xcc0 fs/read_write.c:1255 __do_sys_sendfile64 fs/read_write.c:1323 [inline] __se_sys_sendfile64+0x107/0x160 fs/read_write.c:1309 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:0x7f2fd1e8c0d9 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 f1 19 00 00 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 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:00007f2fd2b83168 EFLAGS: 00000246 ORIG_RAX: 0000000000000028 RAX: ffffffffffffffda RBX: 00007f2fd1fabf80 RCX: 00007f2fd1e8c0d9 RDX: 0000000000000000 RSI: 0000000000000005 RDI: 0000000000000004 RBP: 00007f2fd1ee7ae9 R08: 0000000000000000 R09: 0000000000000000 R10: 00008400fffffffa R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffe5f0fc5bf R14: 00007f2fd2b83300 R15: 0000000000022000