exFAT-fs (loop0): error, in sector 160, dentry 5 should be unused, but 0xc1 ------------[ cut here ]------------ VFS: brelse: Trying to free free buffer WARNING: CPU: 0 PID: 5325 at fs/buffer.c:1229 __brelse+0x71/0xa0 fs/buffer.c:1229 Modules linked in: CPU: 0 UID: 0 PID: 5325 Comm: syz.0.0 Not tainted 6.13.0-rc4-syzkaller-00054-gd6ef8b40d075 #0 Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 RIP: 0010:__brelse+0x71/0xa0 fs/buffer.c:1229 Code: e8 54 d5 75 ff 48 89 df be 04 00 00 00 e8 97 3f dc ff 3e ff 0b eb 17 e8 3d d5 75 ff 90 48 c7 c7 e0 03 19 8c e8 f0 78 36 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:ffffc9000d48ecd8 EFLAGS: 00010246 RAX: 6a1dca780f7d9700 RBX: ffff88804376b4e8 RCX: ffff88801f820000 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 0000000000000000 R08: ffffffff81601a82 R09: 1ffff11003f8519a R10: dffffc0000000000 R11: ffffed1003f8519b R12: 0000000000000000 R13: 0000000000000001 R14: 1ffff92001a91e19 R15: 0000000000000000 FS: 00007f0c1b3aa6c0(0000) GS:ffff88801fc00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000020000040 CR3: 000000003a36e000 CR4: 0000000000352ef0 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_add_entry+0x5e0/0xaa0 fs/exfat/namei.c:519 exfat_create+0x1c7/0x570 fs/exfat/namei.c:565 lookup_open fs/namei.c:3649 [inline] open_last_lookups fs/namei.c:3748 [inline] path_openat+0x1c03/0x3590 fs/namei.c:3984 do_filp_open+0x27f/0x4e0 fs/namei.c:4014 file_open_name fs/open.c:1347 [inline] filp_open+0x261/0x2d0 fs/open.c:1367 do_coredump+0x20f5/0x3100 fs/coredump.c:699 get_signal+0x140b/0x1750 kernel/signal.c:3002 arch_do_signal_or_restart+0x96/0x860 arch/x86/kernel/signal.c:337 exit_to_user_mode_loop kernel/entry/common.c:111 [inline] exit_to_user_mode_prepare include/linux/entry-common.h:329 [inline] irqentry_exit_to_user_mode+0x7e/0x250 kernel/entry/common.c:231 exc_page_fault+0x590/0x8b0 arch/x86/mm/fault.c:1542 asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:623 RIP: 0033:0x7f0c1a585d31 Code: 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 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48 83 c8 ff c3 66 2e 0f 1f RSP: 002b:0000000000000050 EFLAGS: 00010217 RAX: 0000000000000000 RBX: 00007f0c1a775fa0 RCX: 00007f0c1a585d29 RDX: 0000000000000000 RSI: 0000000000000050 RDI: 0000000000000000 RBP: 00007f0c1a601b08 R08: 00000000200001c0 R09: 00000000200001c0 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f0c1a775fa0 R15: 00007fff9247b4a8