bcachefs (baafa011-d992-4344-aaf9-4ff0e0bec0ff): Using encoding defined by superblock: utf8-12.1.0 ------------[ cut here ]------------ WARNING: CPU: 0 PID: 6760 at fs/bcachefs/super.c:1253 bch2_dev_free+0x222/0x290 fs/bcachefs/super.c:1253 Modules linked in: CPU: 0 UID: 0 PID: 6760 Comm: syz.2.107 Not tainted 6.15.0-rc7-syzkaller-00142-g4856ebd99715 #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025 RIP: 0010:bch2_dev_free+0x222/0x290 fs/bcachefs/super.c:1253 Code: 08 e8 62 10 68 00 4c 89 ef e8 5a 10 68 00 48 89 df 48 83 c4 10 5b 41 5c 41 5d 41 5e 41 5f 5d e9 34 d5 fc 06 e8 af da 76 fd 90 <0f> 0b 90 e9 11 fe ff ff e8 a1 da 76 fd 90 0f 0b 90 e9 18 fe ff ff RSP: 0018:ffffc9000b0ef360 EFLAGS: 00010283 RAX: ffffffff84491631 RBX: ffff88805b0fe000 RCX: 0000000000080000 RDX: ffffc9000c78b000 RSI: 0000000000027d66 RDI: 0000000000027d67 RBP: 00000000fffffff4 R08: ffffc9000b0ef207 R09: 0000000000000000 R10: ffffc9000b0ef1e0 R11: fffff5200161de41 R12: ffff888054d00000 R13: ffff88805b0fe0b0 R14: dffffc0000000000 R15: ffff88805b0fe040 FS: 00007f390e9966c0(0000) GS:ffff8881260f6000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fd89757ed38 CR3: 0000000053fce000 CR4: 00000000003526f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: __bch2_dev_alloc+0x832/0xb50 fs/bcachefs/super.c:1422 bch2_dev_alloc+0xcb/0x170 fs/bcachefs/super.c:1448 bch2_fs_alloc fs/bcachefs/super.c:960 [inline] bch2_fs_open+0x2700/0x2820 fs/bcachefs/super.c:2210 bch2_fs_get_tree+0x45d/0x13b0 fs/bcachefs/fs.c:2467 vfs_get_tree+0x92/0x2b0 fs/super.c:1759 do_new_mount+0x24a/0xa40 fs/namespace.c:3881 do_mount fs/namespace.c:4221 [inline] __do_sys_mount fs/namespace.c:4432 [inline] __se_sys_mount+0x317/0x410 fs/namespace.c:4409 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xf6/0x210 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f390db9010a 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:00007f390e995e68 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 00007f390e995ef0 RCX: 00007f390db9010a RDX: 000020000000f640 RSI: 000020000000f680 RDI: 00007f390e995eb0 RBP: 000020000000f640 R08: 00007f390e995ef0 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 000020000000f680 R13: 00007f390e995eb0 R14: 000000000000f62d R15: 00002000000000c0