loop0: detected capacity change from 0 to 32768 bcachefs (loop0): starting version 1.7: mi_btree_bitmap opts=errors=continue,write_error_timeout=192,metadata_checksum=none,data_checksum=none,compression=lz4,nocow allowing incompatible features above 0.0: (unknown version) bcachefs (loop0): initializing new filesystem bcachefs (loop0): sb invalid before write: Invalid superblock section journal_v2: journal bucket at sector 0 journal_v2 (size 40): Buckets: 0-9 7-31 bcachefs (loop0): going read-write bcachefs (loop0): sb invalid before write: Invalid superblock section journal_v2: journal bucket at sector 0 journal_v2 (size 40): Buckets: 0-9 7-31 bcachefs (loop0): flushing journal and stopping allocators, journal seq 0 bcachefs (loop0): flushing journal and stopping allocators complete, journal seq 0 ------------[ cut here ]------------ kernel BUG at fs/bcachefs/journal.c:413! Oops: invalid opcode: 0000 [#1] SMP KASAN NOPTI CPU: 0 UID: 0 PID: 5329 Comm: syz.0.0 Not tainted 6.15.0-rc3-syzkaller-00076-ge72e9e693307 #0 PREEMPT(full) Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 RIP: 0010:journal_entry_open fs/bcachefs/journal.c:413 [inline] RIP: 0010:__journal_res_get+0x22c1/0x24f0 fs/bcachefs/journal.c:616 Code: e5 9f 83 fd 41 bf f5 f6 ff ff e9 31 de ff ff e8 b5 38 20 07 e8 d0 9f 83 fd 90 0f 0b e8 c8 9f 83 fd 90 0f 0b e8 c0 9f 83 fd 90 <0f> 0b e8 b8 9f 83 fd 90 0f 0b e8 b0 9f 83 fd 90 0f 0b e8 a8 9f 83 RSP: 0018:ffffc9000d546d60 EFLAGS: 00010283 RAX: ffffffff843c2dc0 RBX: 0000000000000001 RCX: 0000000000100000 RDX: ffffc9000e382000 RSI: 000000000005580c RDI: 000000000005580d RBP: ffffc9000d547030 R08: ffff8880529ca7b7 R09: 1ffff1100a5394f6 R10: dffffc0000000000 R11: ffffed100a5394f7 R12: 00fffffffffffffe R13: 1ffff1100a5394ff R14: 0000000000000000 R15: ffff888053500000 FS: 00007f4c3dfed6c0(0000) GS:ffff88808d2a3000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f4c3dee56a0 CR3: 00000000435d0000 CR4: 0000000000352ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: bch2_journal_res_get_slowpath+0xdd/0x950 fs/bcachefs/journal.c:710 bch2_journal_res_get+0x14f/0x1f0 fs/bcachefs/journal.h:401 __bch2_journal_meta+0x40/0x1d0 fs/bcachefs/journal.c:955 bch2_fs_journal_stop+0x1dd/0x440 fs/bcachefs/journal.c:1366 __bch2_fs_read_only+0x32c/0x4b0 fs/bcachefs/super.c:285 __bch2_fs_read_write+0x291/0x3d0 fs/bcachefs/super.c:522 bch2_fs_read_write_early+0x2b/0x40 fs/bcachefs/super.c:541 bch2_fs_initialize+0x9b3/0x13f0 fs/bcachefs/recovery.c:1135 bch2_fs_start+0x31b/0x680 fs/bcachefs/super.c:1066 bch2_fs_get_tree+0xd99/0x1340 fs/bcachefs/fs.c:2253 vfs_get_tree+0x8f/0x2b0 fs/super.c:1759 do_new_mount+0x249/0xa50 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:0x7f4c3d19010a 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:00007f4c3dfece68 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 00007f4c3dfecef0 RCX: 00007f4c3d19010a RDX: 0000200000000040 RSI: 0000200000000180 RDI: 00007f4c3dfeceb0 RBP: 0000200000000040 R08: 00007f4c3dfecef0 R09: 0000000000000800 R10: 0000000000000800 R11: 0000000000000246 R12: 0000200000000180 R13: 00007f4c3dfeceb0 R14: 0000000000005a2b R15: 00002000000000c0 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:journal_entry_open fs/bcachefs/journal.c:413 [inline] RIP: 0010:__journal_res_get+0x22c1/0x24f0 fs/bcachefs/journal.c:616 Code: e5 9f 83 fd 41 bf f5 f6 ff ff e9 31 de ff ff e8 b5 38 20 07 e8 d0 9f 83 fd 90 0f 0b e8 c8 9f 83 fd 90 0f 0b e8 c0 9f 83 fd 90 <0f> 0b e8 b8 9f 83 fd 90 0f 0b e8 b0 9f 83 fd 90 0f 0b e8 a8 9f 83 RSP: 0018:ffffc9000d546d60 EFLAGS: 00010283 RAX: ffffffff843c2dc0 RBX: 0000000000000001 RCX: 0000000000100000 RDX: ffffc9000e382000 RSI: 000000000005580c RDI: 000000000005580d RBP: ffffc9000d547030 R08: ffff8880529ca7b7 R09: 1ffff1100a5394f6 R10: dffffc0000000000 R11: ffffed100a5394f7 R12: 00fffffffffffffe R13: 1ffff1100a5394ff R14: 0000000000000000 R15: ffff888053500000 FS: 00007f4c3dfed6c0(0000) GS:ffff88808d2a3000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f4c3dee56a0 CR3: 00000000435d0000 CR4: 0000000000352ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400