------------[ cut here ]------------ WARNING: CPU: 1 PID: 5022 at fs/bcachefs/super.c:525 bch2_fs_read_write_early+0x8a/0xa0 fs/bcachefs/super.c:525 Modules linked in: CPU: 1 PID: 5022 Comm: kworker/1:3 Not tainted 6.10.0-rc3-syzkaller-00044-g2ccbdf43d5e7 #0 Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.2-debian-1.16.2-1 04/01/2014 Workqueue: bcachefs_write_ref bch2_delete_dead_snapshots_work RIP: 0010:bch2_fs_read_write_early+0x8a/0xa0 fs/bcachefs/super.c:525 Code: 7c 1e 79 fd 48 8d bb 78 02 00 00 be ff ff ff ff e8 cb 4c c7 06 31 ff 89 c5 89 c6 e8 60 19 79 fd 85 ed 75 c7 e8 57 1e 79 fd 90 <0f> 0b 90 eb bc 48 c7 c7 58 fe e2 8f e8 e5 50 d6 fd eb 9b 0f 1f 00 RSP: 0018:ffffc900037b7910 EFLAGS: 00010293 RAX: 0000000000000000 RBX: ffff88805cf80000 RCX: ffffffff84157170 RDX: ffff88801e438000 RSI: ffffffff84157179 RDI: 0000000000000005 RBP: 0000000000000000 R08: 0000000000000005 R09: 0000000000000000 R10: 0000000000000000 R11: 000000000000005f R12: ffff88805cf801a8 R13: ffff88805cf80ae0 R14: 0000000000000001 R15: ffffc900037b7d80 FS: 0000000000000000(0000) GS:ffff88802c100000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000055e03faba8e8 CR3: 0000000021ec4000 CR4: 0000000000350ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: bch2_delete_dead_snapshots+0xfdc/0x55e0 fs/bcachefs/snapshot.c:1569 bch2_delete_dead_snapshots_work+0x20/0x160 fs/bcachefs/snapshot.c:1690 process_one_work+0x958/0x1ad0 kernel/workqueue.c:3231 process_scheduled_works kernel/workqueue.c:3312 [inline] worker_thread+0x6c8/0xf70 kernel/workqueue.c:3393 kthread+0x2c1/0x3a0 kernel/kthread.c:389 ret_from_fork+0x45/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244