netlink: 20 bytes leftover after parsing attributes in process `syz.0.0'. 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,degraded,no_splitbrain_check,fsck,norecovery,nojournal_transaction_names,reconstruct_alloc,nocow 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.13: inode_has_child_snapshots 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,set_fs_needs_rebalance bcachefs (loop0): dropping and reconstructing all alloc info invalid bkey u64s 18 type inode_v3 0:4100:U32_MAX len 0 ver 0: (unpack error) invalid variable length fields: delete?, fixing bcachefs (loop0): check_topology... done bcachefs (loop0): accounting_read... done bcachefs (loop0): alloc_read... done bcachefs (loop0): stripes_read... done bcachefs (loop0): snapshots_read... done bcachefs (loop0): check_allocations... done bcachefs (loop0): going read-write bcachefs (loop0): Fixed errors, running fsck a second time to verify fs is clean bcachefs (loop0): done starting filesystem ------------[ cut here ]------------ kernel BUG at fs/bcachefs/bkey_cmp.h:104! Oops: invalid opcode: 0000 [#1] PREEMPT SMP KASAN NOPTI CPU: 0 UID: 0 PID: 5104 Comm: syz.0.0 Not tainted 6.12.0-rc4-syzkaller-00047-gc2ee9f594da8 #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:__bch2_bkey_cmp_packed_format_checked_inlined fs/bcachefs/bkey_cmp.h:103 [inline] RIP: 0010:bch2_bkey_cmp_packed_inlined fs/bcachefs/bkey_cmp.h:116 [inline] RIP: 0010:bch2_bkey_cmp_packed+0xc9c/0xcb0 fs/bcachefs/bkey.c:1037 Code: 8a 0c b5 07 e8 85 7d 83 fd 90 0f 0b e8 7d 7d 83 fd 90 0f 0b e8 75 7d 83 fd 90 0f 0b e8 6d 7d 83 fd 90 0f 0b e8 65 7d 83 fd 90 <0f> 0b e8 5d 7d 83 fd 90 0f 0b 66 2e 0f 1f 84 00 00 00 00 00 90 90 RSP: 0018:ffffc9000b2ceaa0 EFLAGS: 00010293 RAX: ffffffff84115a7b RBX: 1ffff92001659d5c RCX: ffff8880008ba440 RDX: 0000000000000000 RSI: 00000000ffffffff RDI: 0000000000000001 RBP: ffffc9000b2cec30 R08: ffffffff8411531e R09: 0000000000000000 R10: ffffc9000b2ceb40 R11: fffff52001659d6a R12: 0000000000000001 R13: ffffffffffffffff R14: 0000000000000000 R15: ffffc9000b2ceb40 FS: 00007f4aa17d76c0(0000) GS:ffff88801fc00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000002000f000 CR3: 0000000040736000 CR4: 0000000000352ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: bkey_packed_successor fs/bcachefs/bkey.c:428 [inline] bch2_bkey_pack_pos_lossy+0xc94/0x1990 fs/bcachefs/bkey.c:537 bch2_btree_node_iter_init+0x894/0x4280 fs/bcachefs/bset.c:1313 __btree_path_level_init fs/bcachefs/btree_iter.c:615 [inline] bch2_btree_path_level_init+0x4d2/0x9f0 fs/bcachefs/btree_iter.c:635 btree_path_lock_root fs/bcachefs/btree_iter.c:769 [inline] bch2_btree_path_traverse_one+0x10de/0x2940 fs/bcachefs/btree_iter.c:1170 bch2_btree_path_traverse fs/bcachefs/btree_iter.h:247 [inline] bch2_btree_iter_peek_slot+0x84f/0x2550 fs/bcachefs/btree_iter.c:2616 bch2_btree_iter_peek_upto_type fs/bcachefs/btree_iter.h:690 [inline] bch2_btree_iter_peek_in_subvolume_upto_type fs/bcachefs/subvolume.h:46 [inline] bch2_folio_set+0x9ad/0x1630 fs/bcachefs/fs-io-pagecache.c:201 __bch2_buffered_write fs/bcachefs/fs-io-buffered.c:836 [inline] bch2_buffered_write fs/bcachefs/fs-io-buffered.c:992 [inline] bch2_write_iter+0xb92/0x23f0 fs/bcachefs/fs-io-buffered.c:1048 new_sync_write fs/read_write.c:590 [inline] vfs_write+0xa6d/0xc90 fs/read_write.c:683 ksys_write+0x183/0x2b0 fs/read_write.c:736 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:0x7f4aa097dff9 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:00007f4aa17d7038 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f4aa0b35f80 RCX: 00007f4aa097dff9 RDX: 000000000000fea7 RSI: 0000000020000000 RDI: 0000000000000007 RBP: 00007f4aa09f0296 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f4aa0b35f80 R15: 00007ffd44c46268 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:__bch2_bkey_cmp_packed_format_checked_inlined fs/bcachefs/bkey_cmp.h:103 [inline] RIP: 0010:bch2_bkey_cmp_packed_inlined fs/bcachefs/bkey_cmp.h:116 [inline] RIP: 0010:bch2_bkey_cmp_packed+0xc9c/0xcb0 fs/bcachefs/bkey.c:1037 Code: 8a 0c b5 07 e8 85 7d 83 fd 90 0f 0b e8 7d 7d 83 fd 90 0f 0b e8 75 7d 83 fd 90 0f 0b e8 6d 7d 83 fd 90 0f 0b e8 65 7d 83 fd 90 <0f> 0b e8 5d 7d 83 fd 90 0f 0b 66 2e 0f 1f 84 00 00 00 00 00 90 90 RSP: 0018:ffffc9000b2ceaa0 EFLAGS: 00010293 RAX: ffffffff84115a7b RBX: 1ffff92001659d5c RCX: ffff8880008ba440 RDX: 0000000000000000 RSI: 00000000ffffffff RDI: 0000000000000001 RBP: ffffc9000b2cec30 R08: ffffffff8411531e R09: 0000000000000000 R10: ffffc9000b2ceb40 R11: fffff52001659d6a R12: 0000000000000001 R13: ffffffffffffffff R14: 0000000000000000 R15: ffffc9000b2ceb40 FS: 00007f4aa17d76c0(0000) GS:ffff88801fc00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000559b61d0c048 CR3: 0000000040736000 CR4: 0000000000352ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400