bcachefs: bch2_verify_accounting_clean() dev accounting mismatch: u64s 8 type accounting 216182677718433792:0:0 len 0 ver 25769804099: dev_data_type dev=0 data_type=need_discard 1 0 0 in mem 2 0 0 ------------[ cut here ]------------ WARNING: CPU: 1 PID: 6544 at fs/bcachefs/disk_accounting.c:1055 bch2_verify_accounting_clean+0x1998/0x1a1c fs/bcachefs/disk_accounting.c:1053 Modules linked in: CPU: 1 UID: 0 PID: 6544 Comm: syz-executor Not tainted syzkaller #0 PREEMPT Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/30/2025 pstate: 83400005 (Nzcv daif +PAN -UAO +TCO +DIT -SSBS BTYPE=--) pc : bch2_verify_accounting_clean+0x1998/0x1a1c fs/bcachefs/disk_accounting.c:1053 lr : bch2_verify_accounting_clean+0x1a18/0x1a1c fs/bcachefs/disk_accounting.c:1055 sp : ffff8000a5227560 x29: ffff8000a52278e0 x28: 0000000000000000 x27: 0000000000000000 x26: 0000000000000000 x25: 0000000000000001 x24: 00000000000001c0 x23: 0000000000004008 x22: 0000000000000000 x21: 0000000000000001 x20: ffff8000a5227660 x19: 0000000000000000 x18: 0000000000000000 x17: 3430383936373532 x16: ffff80008b065bd0 x15: 0000000000000001 x14: 1fffffbff7eed369 x13: 0000000000000000 x12: 0000000000000000 x11: ffff7fbff7eed36a x10: 0000000000ff0100 x9 : 0000000000000000 x8 : ffff0000c86a0000 x7 : 0000000000000000 x6 : ffffffffffffffff x5 : ffff8000a5227280 x4 : 0000000000000008 x3 : ffff80008289e104 x2 : 0000000000000001 x1 : 0000000000000000 x0 : 0000000000000000 Call trace: bch2_verify_accounting_clean+0x1998/0x1a1c fs/bcachefs/disk_accounting.c:1053 (P) bch2_fs_read_only+0x7b8/0x960 fs/bcachefs/super.c:389 __bch2_fs_stop+0x104/0x800 fs/bcachefs/super.c:677 bch2_put_super+0x40/0x50 fs/bcachefs/fs.c:2365 generic_shutdown_super+0x12c/0x2b8 fs/super.c:643 bch2_kill_sb+0x40/0x58 fs/bcachefs/fs.c:2618 deactivate_locked_super+0xc4/0x12c fs/super.c:474 deactivate_super+0xe0/0x100 fs/super.c:507 cleanup_mnt+0x31c/0x3ac fs/namespace.c:1375 __cleanup_mnt+0x20/0x30 fs/namespace.c:1382 task_work_run+0x1dc/0x260 kernel/task_work.c:227 resume_user_mode_work include/linux/resume_user_mode.h:50 [inline] exit_to_user_mode_loop+0xfc/0x168 kernel/entry/common.c:43 exit_to_user_mode_prepare include/linux/irq-entry-common.h:225 [inline] arm64_exit_to_user_mode arch/arm64/kernel/entry-common.c:103 [inline] el0_svc+0x170/0x254 arch/arm64/kernel/entry-common.c:745 el0t_64_sync_handler+0x84/0x12c arch/arm64/kernel/entry-common.c:763 el0t_64_sync+0x198/0x19c arch/arm64/kernel/entry.S:596 irq event stamp: 135106 hardirqs last enabled at (135105): [] __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:151 [inline] hardirqs last enabled at (135105): [] _raw_spin_unlock_irqrestore+0x38/0x98 kernel/locking/spinlock.c:194 hardirqs last disabled at (135106): [] el1_brk64+0x20/0x54 arch/arm64/kernel/entry-common.c:434 softirqs last enabled at (134998): [] softirq_handle_end kernel/softirq.c:425 [inline] softirqs last enabled at (134998): [] handle_softirqs+0xaf8/0xc88 kernel/softirq.c:607 softirqs last disabled at (134959): [] __do_softirq+0x14/0x20 kernel/softirq.c:613 ---[ end trace 0000000000000000 ]--- bcachefs (loop2): marking filesystem clean bcachefs (loop2): shutdown complete ocfs2: Unmounting device (7,2) on (node local)