bcachefs (loop0): going read-write bcachefs (loop0): journal_replay... done bcachefs (loop0): check_lrus... bcachefs (loop0): incorrect lru entry: lru fragmentation time 134217728 u64s 5 type set 18446462598867058688:34:0 len 0 ver 0 for u64s 13 type alloc_v4 0:34:0 len 0 ver 0: gen 0 oldest_gen 0 data_type need_discard journal_seq_nonempty 5 journal_seq_empty 134217728 need_discard 1 need_inc_gen 1 dirty_sectors 0 stripe_sectors 0 cached_sectors 0 stripe 0 stripe_redundancy 0 io_time[READ] 1 io_time[WRITE] 512 fragmentation 0 bp_start 8 , fixing done bcachefs (loop0): check_backpointers_to_extents... done bcachefs (loop0): check_extents_to_backpointers... bcachefs (loop0): scanning for missing backpointers in 3/128 buckets done bcachefs (loop0): reconstruct_snapshots... bcachefs (loop0): snapshot node 4294967295 from tree 4294967295 missing, recreating done bcachefs (loop0): check_inodes... 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_lrus... done bcachefs (loop0): check_backpointers_to_extents... done bcachefs (loop0): check_extents_to_backpointers... bcachefs (loop0): scanning for missing backpointers in 1/128 buckets done bcachefs (loop0): reconstruct_snapshots... done bcachefs (loop0): check_inodes... done bcachefs (loop0): resume_logged_ops... done bcachefs (loop0): delete_dead_inodes... done bcachefs (loop0): done starting filesystem bcachefs (loop0): inode 536870912 truncated to 0 but i_blocks 8 (ondisk 8) bcachefs (loop0): dirent to missing inode: u64s 7 type dirent 4096:189491840996961599:U32_MAX len 0 ver 0: file0 -> 4098 type dir netlink: 52 bytes leftover after parsing attributes in process `syz.0.0'. ------------[ cut here ]------------ kernel BUG at fs/bcachefs/fs.c:992! Oops: invalid opcode: 0000 [#1] SMP KASAN NOPTI CPU: 0 UID: 0 PID: 5324 Comm: syz.0.0 Not tainted 6.15.0-rc3-syzkaller-00001-g9d7a0577c9db #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:bch2_rename2+0x20ce/0x20d0 fs/bcachefs/fs.c:991 Code: c1 03 38 c1 0f 8c 44 f2 ff ff 4c 89 ff e8 6a 8b bb fd e9 37 f2 ff ff e8 d0 34 be 07 e8 ab 51 51 fd 90 0f 0b e8 a3 51 51 fd 90 <0f> 0b 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 f3 0f 1e fa RSP: 0018:ffffc9000d55f500 EFLAGS: 00010283 RAX: ffffffff84716b7d RBX: 0000000000001002 RCX: 0000000000100000 RDX: ffffc9000e38a000 RSI: 00000000000033ac RDI: 00000000000033ad RBP: ffffc9000d55fa90 R08: ffffffff84715eee R09: 1ffff1100adb303a R10: dffffc0000000000 R11: ffffed100adb303b R12: dffffc0000000000 R13: ffff888055548f30 R14: 0000000000001001 R15: ffff888055548000 FS: 00007fa30f22b6c0(0000) GS:ffff88808c59a000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000000000 CR3: 000000003fa5a000 CR4: 0000000000352ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: vfs_rename+0xbce/0xf10 fs/namei.c:5121 do_renameat2+0xdbc/0x1410 fs/namei.c:5270 __do_sys_renameat2 fs/namei.c:5304 [inline] __se_sys_renameat2 fs/namei.c:5301 [inline] __x64_sys_renameat2+0xce/0xe0 fs/namei.c:5301 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xf3/0x210 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fa30e38e169 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:00007fa30f22b038 EFLAGS: 00000246 ORIG_RAX: 000000000000013c RAX: ffffffffffffffda RBX: 00007fa30e5b5fa0 RCX: 00007fa30e38e169 RDX: 0000000000000009 RSI: 0000200000000180 RDI: 0000000000000009 RBP: 00007fa30e410a68 R08: 0000000000000000 R09: 0000000000000000 R10: 00002000000001c0 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007fa30e5b5fa0 R15: 00007ffdb56d67d8 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:bch2_rename2+0x20ce/0x20d0 fs/bcachefs/fs.c:991 Code: c1 03 38 c1 0f 8c 44 f2 ff ff 4c 89 ff e8 6a 8b bb fd e9 37 f2 ff ff e8 d0 34 be 07 e8 ab 51 51 fd 90 0f 0b e8 a3 51 51 fd 90 <0f> 0b 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 f3 0f 1e fa RSP: 0018:ffffc9000d55f500 EFLAGS: 00010283 RAX: ffffffff84716b7d RBX: 0000000000001002 RCX: 0000000000100000 RDX: ffffc9000e38a000 RSI: 00000000000033ac RDI: 00000000000033ad RBP: ffffc9000d55fa90 R08: ffffffff84715eee R09: 1ffff1100adb303a R10: dffffc0000000000 R11: ffffed100adb303b R12: dffffc0000000000 R13: ffff888055548f30 R14: 0000000000001001 R15: ffff888055548000 FS: 00007fa30f22b6c0(0000) GS:ffff88808c59a000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fa302201fd2 CR3: 000000003fa5a000 CR4: 0000000000352ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400