bcachefs (loop0): btree node read error at btree extents level 0/0 u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c70ab18f40f86f94 written 24 min_key POS_MIN durability: 1 ptr: 0:167:0 gen 0 loop0 node offset 16/24 bset u64s 0: empty bset loop0 btree validate error ret fsck_errors_not_fixed bcachefs (loop0): invalid bkey in btree_node btree=alloc level=0: u64s 13 type alloc_v4 0:23:0 len 0 ver 0: gen 0 oldest_gen 0 data_type sb journal_seq_nonempty 1 journal_seq_empty 0 need_discard 1 need_inc_gen 1 dirty_sectors 32 stripe_sectors 0 cached_sectors 0 stripe 255 stripe_redundancy 0 io_time[READ] 1 io_time[WRITE] 18446744073709289729 fragmentation 0 bp_start 8 invalid data type (got 1 should be 7), deleting bcachefs (loop0): invalid bkey in btree_node btree=alloc level=0: u64s 13 type alloc_v4 0:257:4278190080 len 0 ver 0: gen 0 oldest_gen 0 data_type sb journal_seq_nonempty 5 journal_seq_empty 0 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] 128 fragmentation 0 bp_start 8 nonzero snapshot, deleting ------------[ cut here ]------------ kernel BUG at fs/bcachefs/journal.h:245! Oops: invalid opcode: 0000 [#1] SMP KASAN NOPTI CPU: 0 UID: 0 PID: 11 Comm: kworker/0:0H Not tainted syzkaller #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 Workqueue: bcachefs_btree_write_complete btree_node_write_work RIP: 0010:bch2_journal_add_entry fs/bcachefs/journal.h:245 [inline] RIP: 0010:bch2_trans_commit_write_locked fs/bcachefs/btree_trans_commit.c:750 [inline] RIP: 0010:do_bch2_trans_commit fs/bcachefs/btree_trans_commit.c:854 [inline] RIP: 0010:__bch2_trans_commit+0x82e7/0x8870 fs/bcachefs/btree_trans_commit.c:1085 Code: e8 5e 44 90 fd 48 8b 7c 24 28 e8 a4 91 fe ff e9 8a b6 ff ff e8 4a 44 90 fd 90 0f 0b e8 42 44 90 fd 90 0f 0b e8 3a 44 90 fd 90 <0f> 0b e8 32 44 90 fd 90 0f 0b f3 0f 1e fa 48 8b 44 24 70 42 80 3c RSP: 0018:ffffc900001d7140 EFLAGS: 00010293 RAX: ffffffff842f8666 RBX: ffff888054b630e0 RCX: ffff88801c6fa440 RDX: 0000000000000000 RSI: 000000000000000b RDI: 0000000000000007 RBP: ffffc900001d7430 R08: ffffffffffffffff R09: ffffffffffffffff R10: ffffffff00000000 R11: ffffffffffffffff R12: 0000000000000007 R13: 000000000000000b R14: 1ffff1100a83001d R15: 0000000000000007 FS: 0000000000000000(0000) GS:ffff88808d007000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fb55a7909c0 CR3: 0000000043722000 CR4: 0000000000352ef0 Call Trace: bch2_trans_commit fs/bcachefs/btree_update.h:241 [inline] __bch2_btree_node_update_key fs/bcachefs/btree_update_interior.c:2530 [inline] bch2_btree_node_update_key+0x1ab7/0x3030 fs/bcachefs/btree_update_interior.c:2598 bch2_btree_node_update_key_get_iter+0x5ad/0x640 fs/bcachefs/btree_update_interior.c:2622 btree_node_write_work+0x763/0xc40 fs/bcachefs/btree_io.c:2203 process_one_work kernel/workqueue.c:3236 [inline] process_scheduled_works+0xade/0x17b0 kernel/workqueue.c:3319 worker_thread+0x8a0/0xda0 kernel/workqueue.c:3400 kthread+0x711/0x8a0 kernel/kthread.c:463 ret_from_fork+0x439/0x7d0 arch/x86/kernel/process.c:148 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:bch2_journal_add_entry fs/bcachefs/journal.h:245 [inline] RIP: 0010:bch2_trans_commit_write_locked fs/bcachefs/btree_trans_commit.c:750 [inline] RIP: 0010:do_bch2_trans_commit fs/bcachefs/btree_trans_commit.c:854 [inline] RIP: 0010:__bch2_trans_commit+0x82e7/0x8870 fs/bcachefs/btree_trans_commit.c:1085 Code: e8 5e 44 90 fd 48 8b 7c 24 28 e8 a4 91 fe ff e9 8a b6 ff ff e8 4a 44 90 fd 90 0f 0b e8 42 44 90 fd 90 0f 0b e8 3a 44 90 fd 90 <0f> 0b e8 32 44 90 fd 90 0f 0b f3 0f 1e fa 48 8b 44 24 70 42 80 3c RSP: 0018:ffffc900001d7140 EFLAGS: 00010293 RAX: ffffffff842f8666 RBX: ffff888054b630e0 RCX: ffff88801c6fa440 RDX: 0000000000000000 RSI: 000000000000000b RDI: 0000000000000007 RBP: ffffc900001d7430 R08: ffffffffffffffff R09: ffffffffffffffff R10: ffffffff00000000 R11: ffffffffffffffff R12: 0000000000000007 R13: 000000000000000b R14: 1ffff1100a83001d R15: 0000000000000007 FS: 0000000000000000(0000) GS:ffff88808d007000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fb55a7909c0 CR3: 0000000051a87000 CR4: 0000000000352ef0