bcachefs: bch2_verify_accounting_clean() dev accounting mismatch: u64s 8 type accounting 216172782113783808:0:0 len 0 ver 12884902004: dev_data_type dev=0 data_type=free 89 0 0 in mem 89 0 3 ------------[ cut here ]------------ WARNING: CPU: 1 PID: 7397 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: 7397 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 : ffff8000a4487540 x29: ffff8000a44878c0 x28: 0000000000000000 x27: 0000000000000000 x26: 0000000000000000 x25: 0000000000000001 x24: 0000000000000160 x23: 0000000000000000 x22: 0000000000000000 x21: 0000000000000001 x20: ffff8000a4487640 x19: 0000000000000000 x18: 0000000000000000 x17: 0000000000000000 x16: ffff80008b007180 x15: 0000000000000001 x14: 1fffffbff7ef38f3 x13: 0000000000000000 x12: 0000000000000000 x11: ffff7fbff7ef38f4 x10: 0000000000ff0100 x9 : 0000000000000000 x8 : ffff0000d98abd00 x7 : 0000000000000000 x6 : ffffffffffffffff x5 : ffff8000a4487260 x4 : 0000000000000008 x3 : ffff8000828b48c8 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:1378 __cleanup_mnt+0x20/0x30 fs/namespace.c:1385 task_work_run+0x1dc/0x260 kernel/task_work.c:227 resume_user_mode_work include/linux/resume_user_mode.h:50 [inline] do_notify_resume+0x174/0x1f4 arch/arm64/kernel/entry-common.c:155 exit_to_user_mode_prepare arch/arm64/kernel/entry-common.c:173 [inline] exit_to_user_mode arch/arm64/kernel/entry-common.c:182 [inline] el0_svc+0xb8/0x180 arch/arm64/kernel/entry-common.c:880 el0t_64_sync_handler+0x84/0x12c arch/arm64/kernel/entry-common.c:898 el0t_64_sync+0x198/0x19c arch/arm64/kernel/entry.S:596 irq event stamp: 4483386 hardirqs last enabled at (4483385): [] __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:151 [inline] hardirqs last enabled at (4483385): [] _raw_spin_unlock_irqrestore+0x38/0x98 kernel/locking/spinlock.c:194 hardirqs last disabled at (4483386): [] el1_brk64+0x1c/0x48 arch/arm64/kernel/entry-common.c:574 softirqs last enabled at (4482580): [] softirq_handle_end kernel/softirq.c:425 [inline] softirqs last enabled at (4482580): [] handle_softirqs+0xaf8/0xc88 kernel/softirq.c:607 softirqs last disabled at (4482569): [] __do_softirq+0x14/0x20 kernel/softirq.c:613 ---[ end trace 0000000000000000 ]--- bcachefs (loop1): marking filesystem clean bcachefs (loop1): shutdown complete bcachefs (loop1): shutting down bcachefs (loop1): going read-only bcachefs (loop1): finished waiting for writes to stop bcachefs (loop1): flushing journal and stopping allocators, journal seq 2 bcachefs (loop1): flushing journal and stopping allocators complete, journal seq 3 bcachefs (loop1): clean shutdown complete, journal seq 4 bcachefs (loop1): marking filesystem clean bcachefs (loop1): shutdown complete bcachefs (loop1): shutting down bcachefs (loop1): going read-only bcachefs (loop1): finished waiting for writes to stop bcachefs (loop1): flushing journal and stopping allocators, journal seq 3 bcachefs (loop1): flushing journal and stopping allocators complete, journal seq 3 bcachefs (loop1): clean shutdown complete, journal seq 4 bcachefs (loop1): marking filesystem clean bcachefs (loop1): shutdown complete bcachefs (loop1): shutting down bcachefs (loop1): going read-only bcachefs (loop1): finished waiting for writes to stop bcachefs (loop1): flushing journal and stopping allocators, journal seq 2 bcachefs (loop1): flushing journal and stopping allocators complete, journal seq 3 bcachefs (loop1): clean shutdown complete, journal seq 4 bcachefs (loop1): marking filesystem clean bcachefs (loop1): shutdown complete bcachefs (loop1): shutting down bcachefs (loop1): going read-only bcachefs (loop1): finished waiting for writes to stop bcachefs (loop1): flushing journal and stopping allocators, journal seq 2 bcachefs (loop1): flushing journal and stopping allocators complete, journal seq 3 bcachefs (loop1): clean shutdown complete, journal seq 4 bcachefs (loop1): marking filesystem clean bcachefs (loop1): shutdown complete bcachefs (loop1): shutting down bcachefs (loop1): going read-only bcachefs (loop1): finished waiting for writes to stop bcachefs (loop1): flushing journal and stopping allocators, journal seq 2 bcachefs (loop1): flushing journal and stopping allocators complete, journal seq 3 bcachefs (loop1): clean shutdown complete, journal seq 4 bcachefs (loop1): marking filesystem clean bcachefs (loop1): shutdown complete