exFAT-fs (loop0): error, in sector 160, dentry 12 should be unused, but 0x85 exFAT-fs (loop0): Filesystem has been set read-only ------------[ cut here ]------------ VFS: brelse: Trying to free free buffer WARNING: CPU: 0 PID: 11876 at fs/buffer.c:1229 __brelse+0x71/0xa0 fs/buffer.c:1229 Modules linked in: CPU: 0 UID: 0 PID: 11876 Comm: syz.0.2249 Not tainted 6.12.0-next-20241120-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 64 0b 70 ff 48 89 df be 04 00 00 00 e8 d7 fe da ff f0 ff 0b eb 17 e8 4d 0b 70 ff 90 48 c7 c7 20 e1 18 8c e8 20 a9 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:ffffc90002e7f3f8 EFLAGS: 00010246 RAX: 33d871841ca98500 RBX: ffff88805dfde148 RCX: 0000000000040000 RDX: ffffc90004b4a000 RSI: 000000000000bfd6 RDI: 000000000000bfd7 RBP: 0000000000000000 R08: ffffffff81601b32 R09: 1ffff110170c519a R10: dffffc0000000000 R11: ffffed10170c519b R12: 0000000000000000 R13: 0000000000000001 R14: 1ffff920005cfeb9 R15: 0000000000000000 FS: 00007fac7e13b6c0(0000) GS:ffff8880b8600000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000555569e82588 CR3: 000000007a592000 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_move_file fs/exfat/namei.c:1114 [inline] __exfat_rename fs/exfat/namei.c:1184 [inline] exfat_rename+0xf40/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:0x7fac7d37e759 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:00007fac7e13b038 EFLAGS: 00000246 ORIG_RAX: 0000000000000052 RAX: ffffffffffffffda RBX: 00007fac7d535f80 RCX: 00007fac7d37e759 RDX: 0000000000000000 RSI: 0000000020000f40 RDI: 0000000020000000 RBP: 00007fac7d3f175e R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007fac7d535f80 R15: 00007ffdec998c48