exFAT-fs (loop3): error, in sector 160, dentry 12 should be unused, but 0x85 exFAT-fs (loop3): Filesystem has been set read-only ------------[ cut here ]------------ VFS: brelse: Trying to free free buffer WARNING: CPU: 1 PID: 6192 at fs/buffer.c:1229 __brelse+0x71/0xa0 fs/buffer.c:1229 Modules linked in: CPU: 1 UID: 0 PID: 6192 Comm: syz.3.105 Not tainted 6.12.0-next-20241119-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/30/2024 RIP: 0010:__brelse+0x71/0xa0 fs/buffer.c:1229 Code: e8 b4 08 70 ff 48 89 df be 04 00 00 00 e8 c7 fe da ff f0 ff 0b eb 17 e8 9d 08 70 ff 90 48 c7 c7 e0 e0 18 8c e8 20 a7 30 ff 90 <0f> 0b 90 90 5b 5d c3 cc cc cc cc 89 d9 80 e1 07 80 c1 03 38 c1 7c RSP: 0018:ffffc9000bd673f8 EFLAGS: 00010246 RAX: 7ecd60b713fdf700 RBX: ffff88807838ea58 RCX: 0000000000040000 RDX: ffffc90005361000 RSI: 000000000000b9e8 RDI: 000000000000b9e9 RBP: 0000000000000000 R08: ffffffff81601a72 R09: fffffbfff1cfa218 R10: dffffc0000000000 R11: fffffbfff1cfa218 R12: 0000000000000000 R13: 0000000000000002 R14: 1ffff920017aced5 R15: 0000000000000008 FS: 00007f2c2038c6c0(0000) GS:ffff8880b8700000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f31864656c0 CR3: 000000005e0c6000 CR4: 00000000003526f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: brelse include/linux/buffer_head.h:324 [inline] exfat_put_dentry_set+0x182/0x2b0 fs/exfat/dir.c:553 exfat_rename_file fs/exfat/namei.c:1050 [inline] __exfat_rename fs/exfat/namei.c:1182 [inline] exfat_rename+0x1085/0x2160 fs/exfat/namei.c:1256 vfs_rename+0xbdb/0xf00 fs/namei.c:5067 do_renameat2+0xd94/0x13f0 fs/namei.c:5224 __do_sys_rename fs/namei.c:5271 [inline] __se_sys_rename fs/namei.c:5269 [inline] __x64_sys_rename+0x82/0x90 fs/namei.c:5269 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f2c1f57e759 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 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 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f2c2038c038 EFLAGS: 00000246 ORIG_RAX: 0000000000000052 RAX: ffffffffffffffda RBX: 00007f2c1f735f80 RCX: 00007f2c1f57e759 RDX: 0000000000000000 RSI: 0000000020000f40 RDI: 0000000020000440 RBP: 00007f2c1f5f175e R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f2c1f735f80 R15: 00007ffe2a8965c8