------------[ cut here ]------------ WARNING: CPU: 0 PID: 10550 at fs/bcachefs/super.c:1240 bch2_dev_free+0x27f/0x2d0 fs/bcachefs/super.c:1240 Modules linked in: CPU: 0 UID: 0 PID: 10550 Comm: syz.1.1254 Not tainted 6.15.0-rc4-syzkaller-00021-gca91b9500108 #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/19/2025 RIP: 0010:bch2_dev_free+0x27f/0x2d0 fs/bcachefs/super.c:1240 Code: 02 89 ee e8 d3 14 5d fd 40 84 ed 0f 84 de fe ff ff e9 cc fe ff ff e8 e0 19 5d fd 90 0f 0b 90 e9 e4 fd ff ff e8 d2 19 5d fd 90 <0f> 0b 90 e9 ae fd ff ff 4c 89 f7 e8 01 9f c1 fd e9 05 fe ff ff e8 RSP: 0018:ffffc900042df238 EFLAGS: 00010246 RAX: 0000000000080000 RBX: ffff888062712000 RCX: ffffc90011d7d000 RDX: 0000000000080000 RSI: ffffffff845e167e RDI: 0000000000000001 RBP: 0000000000000000 R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: ffff8880627120c0 R13: ffffc900042df398 R14: ffff888062712000 R15: ffffc900042df340 FS: 00007fde470956c0(0000) GS:ffff8881249e9000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f2a30b82338 CR3: 00000000398ca000 CR4: 0000000000350ef0 Call Trace: __bch2_dev_alloc+0xa4e/0xe80 fs/bcachefs/super.c:1409 bch2_dev_alloc+0xb8/0x170 fs/bcachefs/super.c:1435 bch2_fs_alloc+0x1b1d/0x2450 fs/bcachefs/super.c:947 bch2_fs_open+0x78e/0xb40 fs/bcachefs/super.c:2197 bch2_fs_get_tree+0x1011/0x17f0 fs/bcachefs/fs.c:2489 vfs_get_tree+0x8e/0x340 fs/super.c:1759 do_new_mount fs/namespace.c:3884 [inline] path_mount+0x14d4/0x1f20 fs/namespace.c:4211 do_mount fs/namespace.c:4224 [inline] __do_sys_mount fs/namespace.c:4435 [inline] __se_sys_mount fs/namespace.c:4412 [inline] __x64_sys_mount+0x28d/0x310 fs/namespace.c:4412 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xcd/0x260 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fde4619010a Code: d8 64 89 02 48 c7 c0 ff ff ff ff eb a6 e8 de 1a 00 00 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 49 89 ca b8 a5 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fde47094e68 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 00007fde47094ef0 RCX: 00007fde4619010a RDX: 0000200000000140 RSI: 0000200000000040 RDI: 00007fde47094eb0 RBP: 0000200000000140 R08: 00007fde47094ef0 R09: 0000000000000010 R10: 0000000000000010 R11: 0000000000000246 R12: 0000200000000040 R13: 00007fde47094eb0 R14: 0000000000005a55 R15: 0000200000000000