loop0: detected capacity change from 0 to 32768 bcachefs (loop0): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names,read_only allowing incompatible features above 0.0: (unknown version) features: lz4,new_siphash,inline_data,new_extent_overwrite,btree_ptr_v2,new_varint,journal_no_flush,alloc_v2,extents_across_btree_nodes bcachefs (loop0): Using encoding defined by superblock: utf8-12.1.0 bcachefs (loop0): recovering from clean shutdown, journal seq 10 bcachefs (loop0): Version upgrade required: Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete Doing incompatible version upgrade from 0.24: unwritten_extents to 1.28: inode_has_case_insensitive running recovery passes: check_allocations,check_alloc_info,check_lrus,check_btree_backpointers,check_backpointers_to_extents,check_extents_to_backpointers,check_alloc_to_lru_refs,bucket_gens_init,check_snapshot_trees,check_snapshots,check_subvols,check_subvol_children,delete_dead_snapshots,check_inodes,check_extents,check_indirect_extents,check_dirents,check_xattrs,check_root,check_unreachable_inodes,check_subvolume_structure,check_directory_structure,check_nlinks,check_rebalance_work,set_fs_needs_rebalance bcachefs (loop0): invalid bkey in btree_node btree=extents level=0: u64s 18 type inline_data 536870914:0:U32_MAX len 8 ver 0: datalen 104: 73797a6b616c6c657273797a6b616c6c657273797a6b616c6c657273797a6b61 size greater than offset (8 > 0), deleting bcachefs (loop0): error reading btree root btree=extents level=0: btree_node_read_error, fixing bcachefs (loop0): check_topology... bcachefs (loop0): btree root extents unreadable, must recover from scan bcachefs (loop0): no nodes found for btree extents, continuing done bcachefs (loop0): accounting_read... done bcachefs (loop0): alloc_read... done bcachefs (loop0): snapshots_read... done bcachefs (loop0): check_allocations... bcachefs (loop0): pointer to nonexistent bucket 4294964982 on device loop0 (valid range 0-128) emergency read only at seq 10 bcachefs (loop0): bch2_gc_mark_key(): error trigger_alloc bcachefs (loop0): bch2_gc_btree(): error trigger_alloc bcachefs (loop0): bch2_gc_btrees(): error trigger_alloc bcachefs (loop0): bch2_check_allocations(): error trigger_alloc bcachefs (loop0): error in recovery: trigger_alloc bcachefs (loop0): bch2_fs_start(): error starting filesystem trigger_alloc bcachefs (loop0): shutting down bcachefs (loop0): shutdown complete bcachefs: bch2_fs_get_tree() error: trigger_alloc loop0: detected capacity change from 0 to 32768 ======================================================= WARNING: The mand mount option has been deprecated and and is ignored by this kernel. Remove the mand option from the mount to silence this warning. ======================================================= ocfs2: Mounting device (7,0) on (node local, slot 0) with writeback data mode. ------------[ cut here ]------------ kernel BUG at fs/ocfs2/uptodate.c:509! Oops: invalid opcode: 0000 [#1] SMP KASAN NOPTI CPU: 0 UID: 0 PID: 5325 Comm: syz.0.0 Not tainted 6.16.0-rc3-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 RIP: 0010:ocfs2_set_new_buffer_uptodate+0x149/0x170 fs/ocfs2/uptodate.c:509 Code: 80 3c 20 00 74 08 4c 89 f7 e8 13 8c 76 fe 4d 8b 1e 48 89 df 5b 41 5c 41 5d 41 5e 41 5f 5d 41 ff e3 cc 66 90 e8 a8 09 13 fe 90 <0f> 0b e8 a0 09 13 fe 90 0f 0b e8 98 09 13 fe 90 0f 0b e8 90 09 13 RSP: 0018:ffffc9000d3f69c8 EFLAGS: 00010287 RAX: ffffffff83ad4378 RBX: ffff8880546a8830 RCX: 0000000000100000 RDX: ffffc9000e2f2000 RSI: 000000000000075b RDI: 000000000000075c RBP: 0000000000000001 R08: ffffffff8fa10af7 R09: 1ffffffff1f4215e R10: dffffc0000000000 R11: fffffbfff1f4215f R12: 1ffff92001a7ed6c R13: dffffc0000000000 R14: ffff888043e6a828 R15: ffff888043e6a828 FS: 00007f43176d06c0(0000) GS:ffff88808d251000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f430b5ff000 CR3: 00000000431af000 CR4: 0000000000352ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: ocfs2_extend_dir+0x1172/0x4870 fs/ocfs2/dir.c:3301 ocfs2_prepare_dx_dir_for_insert fs/ocfs2/dir.c:4224 [inline] ocfs2_prepare_dir_for_insert+0x3d7b/0x5450 fs/ocfs2/dir.c:4280 ocfs2_mknod+0x819/0x2050 fs/ocfs2/namei.c:294 ocfs2_mkdir+0x191/0x440 fs/ocfs2/namei.c:656 vfs_mkdir+0x306/0x510 fs/namei.c:4375 do_mkdirat+0x247/0x590 fs/namei.c:4408 __do_sys_mkdirat fs/namei.c:4425 [inline] __se_sys_mkdirat fs/namei.c:4423 [inline] __x64_sys_mkdirat+0x87/0xa0 fs/namei.c:4423 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xfa/0x3b0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f431678e929 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 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:00007f43176d0038 EFLAGS: 00000246 ORIG_RAX: 0000000000000102 RAX: ffffffffffffffda RBX: 00007f43169b5fa0 RCX: 00007f431678e929 RDX: 0000000000000100 RSI: 00002000000000c0 RDI: ffffffffffffff9c RBP: 00007f4316810b39 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f43169b5fa0 R15: 00007ffcafbf57b8 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:ocfs2_set_new_buffer_uptodate+0x149/0x170 fs/ocfs2/uptodate.c:509 Code: 80 3c 20 00 74 08 4c 89 f7 e8 13 8c 76 fe 4d 8b 1e 48 89 df 5b 41 5c 41 5d 41 5e 41 5f 5d 41 ff e3 cc 66 90 e8 a8 09 13 fe 90 <0f> 0b e8 a0 09 13 fe 90 0f 0b e8 98 09 13 fe 90 0f 0b e8 90 09 13 RSP: 0018:ffffc9000d3f69c8 EFLAGS: 00010287 RAX: ffffffff83ad4378 RBX: ffff8880546a8830 RCX: 0000000000100000 RDX: ffffc9000e2f2000 RSI: 000000000000075b RDI: 000000000000075c RBP: 0000000000000001 R08: ffffffff8fa10af7 R09: 1ffffffff1f4215e R10: dffffc0000000000 R11: fffffbfff1f4215f R12: 1ffff92001a7ed6c R13: dffffc0000000000 R14: ffff888043e6a828 R15: ffff888043e6a828 FS: 00007f43176d06c0(0000) GS:ffff88808d251000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f25b43eb492 CR3: 00000000431af000 CR4: 0000000000352ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400