exFAT-fs (loop9): error, in sector 160, dentry 12 should be unused, but 0x85 exFAT-fs (loop9): Filesystem has been set read-only ------------[ cut here ]------------ VFS: brelse: Trying to free free buffer WARNING: CPU: 0 PID: 11290 at fs/buffer.c:1229 __brelse+0x84/0xd8 fs/buffer.c:1229 Modules linked in: CPU: 0 UID: 0 PID: 11290 Comm: syz.9.1281 Tainted: G W 6.13.0-rc6-syzkaller-g6251d1776bc5 #0 Tainted: [W]=WARN Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 pstate: 60400005 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : __brelse+0x84/0xd8 fs/buffer.c:1229 lr : __brelse+0x84/0xd8 fs/buffer.c:1229 sp : ffff80009baf7120 x29: ffff80009baf7120 x28: 1ffff0001375eea5 x27: 0000000000000001 x26: 0000000000000000 x25: 1ffff0001375eea1 x24: dfff800000000000 x23: ffff0000db604828 x22: ffff80009baf7528 x21: ffff80009baf750c x20: 0000000000000000 x19: ffff0000db604888 x18: 1fffe000366fc67e x17: ffff80008f99d000 x16: ffff80008046323c x15: 0000000000000001 x14: 1fffe000366ff0d0 x13: ffff80009baf8000 x12: 0000000000000003 x11: 0000000000000001 x10: 0000000000000003 x9 : 6f73931d804d6300 x8 : 6f73931d804d6300 x7 : ffff8000803d02d8 x6 : 0000000000000000 x5 : 0000000000000001 x4 : 0000000000000001 x3 : 0000000000000000 x2 : 0000000000000006 x1 : ffff80008b757e80 x0 : ffff800123ef8000 Call trace: __brelse+0x84/0xd8 fs/buffer.c:1229 (P) brelse include/linux/buffer_head.h:324 [inline] exfat_put_dentry_set+0x150/0x268 fs/exfat/dir.c:553 exfat_add_entry+0x4dc/0x87c fs/exfat/namei.c:519 exfat_create+0x160/0x474 fs/exfat/namei.c:565 lookup_open fs/namei.c:3649 [inline] open_last_lookups fs/namei.c:3748 [inline] path_openat+0x13e4/0x2b14 fs/namei.c:3984 do_filp_open+0x1e8/0x404 fs/namei.c:4014 do_sys_openat2+0x124/0x1b8 fs/open.c:1402 do_sys_open fs/open.c:1417 [inline] __do_sys_openat fs/open.c:1433 [inline] __se_sys_openat fs/open.c:1428 [inline] __arm64_sys_openat+0x1f0/0x240 fs/open.c:1428 __invoke_syscall arch/arm64/kernel/syscall.c:35 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:49 el0_svc_common+0x130/0x23c arch/arm64/kernel/syscall.c:132 do_el0_svc+0x48/0x58 arch/arm64/kernel/syscall.c:151 el0_svc+0x54/0x168 arch/arm64/kernel/entry-common.c:744 el0t_64_sync_handler+0x84/0x108 arch/arm64/kernel/entry-common.c:762 el0t_64_sync+0x198/0x19c arch/arm64/kernel/entry.S:600 irq event stamp: 2772 hardirqs last enabled at (2771): [] raw_spin_rq_unlock_irq kernel/sched/sched.h:1535 [inline] hardirqs last enabled at (2771): [] finish_lock_switch+0xbc/0x1e4 kernel/sched/core.c:5123 hardirqs last disabled at (2772): [] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:488 softirqs last enabled at (2714): [] softirq_handle_end kernel/softirq.c:407 [inline] softirqs last enabled at (2714): [] handle_softirqs+0xb44/0xd34 kernel/softirq.c:589 softirqs last disabled at (2553): [] __do_softirq+0x14/0x20 kernel/softirq.c:595 ---[ end trace 0000000000000000 ]---