bi_casefold=0, fixing bcachefs (loop0): inode points to missing dirent inum: 536870913:4294967295 mode=100755 flags=(15300000) journal_seq=5 hash_seed=b68791a594a6d5ae hash_type=siphash bi_size=9000 bi_sectors=24 bi_version=0 bi_atime=2780562352 bi_ctime=2780562352 bi_mtime=2780562352 bi_otime=2780562352 bi_uid=0 bi_gid=0 bi_nlink=1 bi_generation=0 bi_dev=0 bi_data_checksum=0 bi_compression=0 bi_project=0 bi_background_compression=0 bi_data_replicas=0 bi_promote_target=0 bi_foreground_target=0 bi_background_target=0 bi_erasure_code=0 bi_fields_set=0 bi_dir=4096 bi_dir_offset=1896155912177158345 bi_subvol=0 bi_parent_subvol=0 bi_nocow=0 bi_depth=0 bi_inodes_32bit=0 bi_casefold=0, fixing done bcachefs (loop0): resume_logged_ops... done bcachefs (loop0): delete_dead_inodes... done bcachefs (loop0): Fixed errors, running fsck a second time to verify fs is clean bcachefs (loop0): check_extents_to_backpointers... bcachefs (loop0): scanning for missing backpointers in 1/128 buckets done bcachefs (loop0): check_inodes... done bcachefs (loop0): resume_logged_ops... done bcachefs (loop0): delete_dead_inodes... done bcachefs (loop0): done starting filesystem ------------[ cut here ]------------ kernel BUG at fs/bcachefs/btree_trans_commit.c:348! Oops: invalid opcode: 0000 [#1] SMP KASAN NOPTI CPU: 0 UID: 0 PID: 5344 Comm: syz.0.0 Not tainted 6.16.0-rc6-syzkaller-00002-g155a3c003e55 #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:btree_insert_entry_checks fs/bcachefs/btree_trans_commit.c:343 [inline] RIP: 0010:bch2_trans_commit_write_locked fs/bcachefs/btree_trans_commit.c:725 [inline] RIP: 0010:do_bch2_trans_commit fs/bcachefs/btree_trans_commit.c:854 [inline] RIP: 0010:__bch2_trans_commit+0x86e5/0x8870 fs/bcachefs/btree_trans_commit.c:1085 Code: 97 fd eb 0c e8 3c 6e 97 fd eb 05 e8 35 6e 97 fd 49 bd 00 00 00 00 00 fc ff df 4c 8b 64 24 48 e9 e1 af ff ff e8 1c 6e 97 fd 90 <0f> 0b e8 14 6e 97 fd 90 0f 0b e8 0c 6e 97 fd 90 0f 0b e8 04 6e 97 RSP: 0018:ffffc9000d3f72c0 EFLAGS: 00010287 RAX: ffffffff8428c554 RBX: ffffffff84288725 RCX: 0000000000100000 RDX: ffffc9000df0a000 RSI: 0000000000000dc8 RDI: 0000000000000dc9 RBP: ffffc9000d3f75b0 R08: 0000000000000000 R09: ffffffff84288725 R10: dffffc0000000000 R11: ffffed100a719309 R12: ffff8880568f0020 R13: dffffc0000000000 R14: ffff8880568f24d8 R15: 0000000000000001 FS: 00007fa3b34966c0(0000) GS:ffff88808d21b000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fe827f72000 CR3: 0000000040f29000 CR4: 0000000000352ef0 Call Trace: bch2_trans_commit fs/bcachefs/btree_update.h:241 [inline] bch2_write_inode+0x64a/0xad0 fs/bcachefs/fs.c:136 bch2_fileattr_set+0x55d/0x6f0 fs/bcachefs/fs.c:1730 vfs_fileattr_set+0x84d/0xb00 fs/ioctl.c:696 do_vfs_ioctl+0x1602/0x1990 fs/ioctl.c:-1 __do_sys_ioctl fs/ioctl.c:905 [inline] __se_sys_ioctl+0x82/0x170 fs/ioctl.c:893 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:0x7fa3b258e929 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:00007fa3b3496038 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007fa3b27b5fa0 RCX: 00007fa3b258e929 RDX: 0000200000000040 RSI: 00000000401c5820 RDI: 0000000000000004 RBP: 00007fa3b2610b39 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007fa3b27b5fa0 R15: 00007fffca15eaf8 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:btree_insert_entry_checks fs/bcachefs/btree_trans_commit.c:343 [inline] RIP: 0010:bch2_trans_commit_write_locked fs/bcachefs/btree_trans_commit.c:725 [inline] RIP: 0010:do_bch2_trans_commit fs/bcachefs/btree_trans_commit.c:854 [inline] RIP: 0010:__bch2_trans_commit+0x86e5/0x8870 fs/bcachefs/btree_trans_commit.c:1085 Code: 97 fd eb 0c e8 3c 6e 97 fd eb 05 e8 35 6e 97 fd 49 bd 00 00 00 00 00 fc ff df 4c 8b 64 24 48 e9 e1 af ff ff e8 1c 6e 97 fd 90 <0f> 0b e8 14 6e 97 fd 90 0f 0b e8 0c 6e 97 fd 90 0f 0b e8 04 6e 97 RSP: 0018:ffffc9000d3f72c0 EFLAGS: 00010287 RAX: ffffffff8428c554 RBX: ffffffff84288725 RCX: 0000000000100000 RDX: ffffc9000df0a000 RSI: 0000000000000dc8 RDI: 0000000000000dc9 RBP: ffffc9000d3f75b0 R08: 0000000000000000 R09: ffffffff84288725 R10: dffffc0000000000 R11: ffffed100a719309 R12: ffff8880568f0020 R13: dffffc0000000000 R14: ffff8880568f24d8 R15: 0000000000000001 FS: 00007fa3b34966c0(0000) GS:ffff88808d21b000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fe827f81000 CR3: 0000000040f29000 CR4: 0000000000352ef0