io_time[READ] 0 io_time[WRITE] 0 fragmentation 268435456 bp_start 8 , fixing missing fragmentation lru entry u64s 13 type alloc_v4 0:42:0 len 0 ver 0: gen 0 oldest_gen 0 data_type btree journal_seq 7 need_discard 1 need_inc_gen 1 dirty_sectors 32 stripe_sectors 0 cached_sectors 0 stripe 0 stripe_redundancy 0 io_time[READ] 1 io_time[WRITE] 1280 fragmentation 268435456 bp_start 8 , fixing done bcachefs (loop0): bucket_gens_init... done bcachefs (loop0): check_snapshot_trees... done bcachefs (loop0): check_snapshots... snapshot points to missing/incorrect tree: u64s 8 type snapshot 0:4294967295:0 len 0 ver 0: is_subvol 1 deleted 0 parent 0 children 0 0 subvol 1 tree 0, fixing snapshot points to missing/incorrect tree: u64s 8 type snapshot 0:4294967295:0 len 0 ver 0: is_subvol 1 deleted 0 parent 0 children 0 0 subvol 1 tree 0, fixing done bcachefs (loop0): check_subvols... done bcachefs (loop0): check_subvol_children... done bcachefs (loop0): delete_dead_snapshots... done bcachefs (loop0): check_inodes... done bcachefs (loop0): check_extents... key in missing inode: u64s 7 type extent 4099:8:U32_MAX len 8 ver 0: durability: 1 crc: c_size 8 size 8 offset 0 nonce 0 csum none 0:0 compress incompressible ptr: 0:34:0 gen 0, fixing key in missing inode: u64s 7 type extent 4099:8:U32_MAX len 8 ver 0: durability: 1 crc: c_size 8 size 8 offset 0 nonce 0 csum none 0:0 compress incompressible ptr: 0:34:0 gen 0, fixing key in missing inode: u64s 7 type extent 4099:8:U32_MAX len 8 ver 0: durability: 1 crc: c_size 8 size 8 offset 0 nonce 0 csum none 0:0 compress incompressible ptr: 0:34:0 gen 0, fixing key in missing inode: u64s 7 type extent 4099:8:U32_MAX len 8 ver 0: durability: 1 crc: c_size 8 size 8 offset 0 nonce 0 csum none 0:0 compress incompressible ptr: 0:34:0 gen 0, fixing key in missing inode: u64s 10 type inline_data 4100:8:U32_MAX len 8 ver 0: datalen 40: 2f746d702f73797a2d696d61676567656e3931343136303536352f66696c6530, fixing key in missing inode: u64s 7 type inline_data 536870912:8:U32_MAX len 8 ver 0: datalen 16: 73797a6b616c6c657273000000000000, fixing key in missing inode: u64s 7 type extent 536870913:24:U32_MAX len 24 ver 0: durability: 1 crc: c_size 8 size 24 offset 0 nonce 0 csum none 0:0 compress lz4 ptr: 0:34:8 gen 0, fixing ------------[ cut here ]------------ kernel BUG at fs/bcachefs/journal.c:105! Oops: invalid opcode: 0000 [#1] PREEMPT SMP KASAN NOPTI CPU: 0 UID: 0 PID: 5322 Comm: syz.0.0 Not tainted 6.13.0-rc7-syzkaller-00160-gad26fc09dabf #0 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_seq_to_buf fs/bcachefs/journal.c:105 [inline] RIP: 0010:bch2_journal_noflush_seq+0x320/0x330 fs/bcachefs/journal.c:819 Code: e8 05 69 5c fd 48 8b 3c 24 e8 9c c2 88 07 44 89 f0 48 83 c4 30 5b 41 5c 41 5d 41 5e 41 5f 5d c3 cc cc cc cc e8 e1 68 5c fd 90 <0f> 0b e8 d9 68 5c fd 90 0f 0b 66 0f 1f 44 00 00 90 90 90 90 90 90 RSP: 0018:ffffc9000d276258 EFLAGS: 00010246 RAX: ffffffff8443198f RBX: 0000000000000025 RCX: 0000000000100000 RDX: ffffc9000e58a000 RSI: 00000000000fffff RDI: 0000000000100000 RBP: ffff888052b4ab40 R08: ffffffff844317e9 R09: 1ffff1100a569567 R10: dffffc0000000000 R11: ffffed100a569568 R12: ffff888052b4a608 R13: dffffc0000000000 R14: 0000000000000301 R15: 0000000000000026 FS: 00007f3e9849d6c0(0000) GS:ffff88801fc00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f3e9847c9a0 CR3: 0000000040a5a000 CR4: 0000000000352ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: bch2_trigger_alloc+0x16d9/0x41e0 fs/bcachefs/alloc_background.c:948 bch2_key_trigger fs/bcachefs/bkey_methods.h:87 [inline] run_one_mem_trigger+0x81f/0xc10 fs/bcachefs/btree_trans_commit.c:472 bch2_trans_commit_write_locked fs/bcachefs/btree_trans_commit.c:731 [inline] do_bch2_trans_commit fs/bcachefs/btree_trans_commit.c:900 [inline] __bch2_trans_commit+0x473b/0x93c0 fs/bcachefs/btree_trans_commit.c:1121 bch2_trans_commit fs/bcachefs/btree_update.h:184 [inline] check_extent fs/bcachefs/fsck.c:1994 [inline] bch2_check_extents+0x4579/0x65a0 fs/bcachefs/fsck.c:2037 bch2_run_recovery_pass+0xf0/0x1e0 fs/bcachefs/recovery_passes.c:191 bch2_run_recovery_passes+0x3a7/0x880 fs/bcachefs/recovery_passes.c:244 bch2_fs_recovery+0x25cc/0x39d0 fs/bcachefs/recovery.c:861 bch2_fs_start+0x356/0x5b0 fs/bcachefs/super.c:1037 bch2_fs_get_tree+0xd68/0x1710 fs/bcachefs/fs.c:2170 vfs_get_tree+0x90/0x2b0 fs/super.c:1814 do_new_mount+0x2be/0xb40 fs/namespace.c:3511 do_mount fs/namespace.c:3851 [inline] __do_sys_mount fs/namespace.c:4061 [inline] __se_sys_mount+0x2d6/0x3c0 fs/namespace.c:4038 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f3e975874ca 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:00007f3e9849ce68 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 00007f3e9849cef0 RCX: 00007f3e975874ca RDX: 00000000200000c0 RSI: 0000000020000100 RDI: 00007f3e9849ceb0 RBP: 00000000200000c0 R08: 00007f3e9849cef0 R09: 0000000000010010 R10: 0000000000010010 R11: 0000000000000246 R12: 0000000020000100 R13: 00007f3e9849ceb0 R14: 00000000000059e9 R15: 0000000020000000 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:journal_seq_to_buf fs/bcachefs/journal.c:105 [inline] RIP: 0010:bch2_journal_noflush_seq+0x320/0x330 fs/bcachefs/journal.c:819 Code: e8 05 69 5c fd 48 8b 3c 24 e8 9c c2 88 07 44 89 f0 48 83 c4 30 5b 41 5c 41 5d 41 5e 41 5f 5d c3 cc cc cc cc e8 e1 68 5c fd 90 <0f> 0b e8 d9 68 5c fd 90 0f 0b 66 0f 1f 44 00 00 90 90 90 90 90 90 RSP: 0018:ffffc9000d276258 EFLAGS: 00010246 RAX: ffffffff8443198f RBX: 0000000000000025 RCX: 0000000000100000 RDX: ffffc9000e58a000 RSI: 00000000000fffff RDI: 0000000000100000 RBP: ffff888052b4ab40 R08: ffffffff844317e9 R09: 1ffff1100a569567 R10: dffffc0000000000 R11: ffffed100a569568 R12: ffff888052b4a608 R13: dffffc0000000000 R14: 0000000000000301 R15: 0000000000000026 FS: 00007f3e9849d6c0(0000) GS:ffff88801fc00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f3e9847c9a0 CR3: 0000000040a5a000 CR4: 0000000000352ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400