------------[ cut here ]------------ WARNING: CPU: 1 PID: 1172 at fs/bcachefs/super.c:525 bch2_fs_read_write_early+0x7f/0xb0 fs/bcachefs/super.c:525 Modules linked in: CPU: 1 PID: 1172 Comm: kworker/1:2 Not tainted 6.10.0-rc3-syzkaller-00044-g2ccbdf43d5e7 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/07/2024 Workqueue: bcachefs_write_ref bch2_delete_dead_snapshots_work RIP: 0010:bch2_fs_read_write_early+0x7f/0xb0 fs/bcachefs/super.c:525 Code: e8 76 e0 57 fd 85 ed 74 1b e8 2d dc 57 fd eb 05 e8 26 dc 57 fd 48 89 df be 01 00 00 00 5b 5d e9 07 fc ff ff e8 12 dc 57 fd 90 <0f> 0b 90 eb e6 48 c7 c1 9c 56 ac 8f 80 e1 07 80 c1 03 38 c1 7c 96 RSP: 0018:ffffc90004b7f1a8 EFLAGS: 00010293 RAX: ffffffff843e49fe RBX: ffff888071b00000 RCX: ffff8880238ada00 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 0000000000000000 R08: ffffffff843e49da R09: 1ffff1100e360035 R10: dffffc0000000000 R11: ffffed100e360036 R12: 0000000000000000 R13: dffffc0000000000 R14: ffff888071b001a8 R15: ffff888071b00001 FS: 0000000000000000(0000) GS:ffff8880b9500000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000020021000 CR3: 000000005eae8000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: bch2_delete_dead_snapshots+0x218/0x5d90 fs/bcachefs/snapshot.c:1569 bch2_delete_dead_snapshots_work+0x1c/0x30 fs/bcachefs/snapshot.c:1690 process_one_work kernel/workqueue.c:3231 [inline] process_scheduled_works+0xa2c/0x1830 kernel/workqueue.c:3312 worker_thread+0x86d/0xd70 kernel/workqueue.c:3393 kthread+0x2f0/0x390 kernel/kthread.c:389 ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244