io_time[READ] 1 io_time[WRITE] 512 fragmentation 0 bp_start 7 , fixing done bcachefs (loop0): bucket_gens_init... done bcachefs (loop0): check_snapshot_trees... done bcachefs (loop0): check_snapshots... bcachefs (loop0): snapshot points to missing/incorrect tree: u64s 8 type snapshot 0:4294967295:0 len 0 ver 0: subvol parent 0 children 0 0 subvol 1 tree 0, fixing done bcachefs (loop0): check_subvols... done bcachefs (loop0): check_subvol_children... done bcachefs (loop0): delete_dead_snapshots... done bcachefs (loop0): check_inodes... done bcachefs (loop0): check_extents... done bcachefs (loop0): check_indirect_extents... done bcachefs (loop0): check_dirents... done bcachefs (loop0): check_xattrs... done bcachefs (loop0): check_root... done bcachefs (loop0): check_unreachable_inodes... done bcachefs (loop0): check_subvolume_structure... done bcachefs (loop0): check_directory_structure... done bcachefs (loop0): check_nlinks... done bcachefs (loop0): check_rebalance_work... done bcachefs (loop0): resume_logged_ops... done bcachefs (loop0): delete_dead_inodes... done bcachefs (loop0): set_fs_needs_rebalance... done bcachefs (loop0): done starting filesystem bcachefs (loop0): requested incompat feature 1.16: reflink_p_may_update_opts currently not enabled, allowed up to 1.16: reflink_p_may_update_opts set version_upgrade=incompat to enable bcachefs (loop0): bucket journal seq in future (currently at 27) u64s 13 type alloc_v4 0:34:0 len 0 ver 0: gen 0 oldest_gen 0 data_type user journal_seq_nonempty 4143972357 journal_seq_empty 134217728 need_discard 1 need_inc_gen 1 dirty_sectors 16 stripe_sectors 0 cached_sectors 0 stripe 0 stripe_redundancy 0 io_time[READ] 1 io_time[WRITE] 512 fragmentation 134217728 bp_start 7 , , continuing ------------[ cut here ]------------ kernel BUG at fs/bcachefs/journal.h:245! Oops: invalid opcode: 0000 [#1] SMP KASAN NOPTI CPU: 0 UID: 0 PID: 5340 Comm: syz.0.0 Not tainted 6.16.0-rc3-syzkaller-00057-g92ca6c498a5e #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_journal_add_entry fs/bcachefs/journal.h:245 [inline] RIP: 0010:bch2_trans_commit_write_locked fs/bcachefs/btree_trans_commit.c:763 [inline] RIP: 0010:do_bch2_trans_commit fs/bcachefs/btree_trans_commit.c:851 [inline] RIP: 0010:__bch2_trans_commit+0x8700/0x8880 fs/bcachefs/btree_trans_commit.c:1079 Code: 49 bd 00 00 00 00 00 fc ff df 4c 8b 64 24 40 e9 7a b0 ff ff e8 71 a9 97 fd 90 0f 0b e8 69 a9 97 fd 90 0f 0b e8 61 a9 97 fd 90 <0f> 0b f3 0f 1e fa 65 8b 1d 67 4c 74 0e bf 07 00 00 00 89 de e8 87 RSP: 0018:ffffc9000f3eefa0 EFLAGS: 00010283 RAX: ffffffff8428a3bf RBX: 000000000000002e RCX: 0000000000100000 RDX: ffffc9000dbe2000 RSI: 0000000000029d6a RDI: 0000000000029d6b RBP: ffffc9000f3ef288 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000022 R12: 1ffff1100a58981d R13: 0000000000000032 R14: ffff8880553d06d8 R15: 000000000000002e FS: 00007fc01b1fa6c0(0000) GS:ffff88808d251000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fc01b1d8fc8 CR3: 00000000421a8000 CR4: 0000000000352ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: bch2_trans_commit fs/bcachefs/btree_update.h:242 [inline] bch2_extent_update+0x33e/0x900 fs/bcachefs/io_write.c:359 bch2_remap_range+0x16fc/0x1f50 fs/bcachefs/reflink.c:727 bch2_remap_file_range+0xa3a/0xd10 fs/bcachefs/fs-io.c:942 vfs_clone_file_range+0x42c/0x7a0 fs/remap_range.c:403 ioctl_file_clone fs/ioctl.c:240 [inline] ioctl_file_clone_range fs/ioctl.c:258 [inline] do_vfs_ioctl+0x1113/0x1990 fs/ioctl.c:854 __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:0x7fc01a38e929 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:00007fc01b1fa038 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007fc01a5b5fa0 RCX: 00007fc01a38e929 RDX: 00002000000000c0 RSI: 000000004020940d RDI: 0000000000000004 RBP: 00007fc01a410b39 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007fc01a5b5fa0 R15: 00007ffff57046f8 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:763 [inline] RIP: 0010:do_bch2_trans_commit fs/bcachefs/btree_trans_commit.c:851 [inline] RIP: 0010:__bch2_trans_commit+0x8700/0x8880 fs/bcachefs/btree_trans_commit.c:1079 Code: 49 bd 00 00 00 00 00 fc ff df 4c 8b 64 24 40 e9 7a b0 ff ff e8 71 a9 97 fd 90 0f 0b e8 69 a9 97 fd 90 0f 0b e8 61 a9 97 fd 90 <0f> 0b f3 0f 1e fa 65 8b 1d 67 4c 74 0e bf 07 00 00 00 89 de e8 87 RSP: 0018:ffffc9000f3eefa0 EFLAGS: 00010283 RAX: ffffffff8428a3bf RBX: 000000000000002e RCX: 0000000000100000 RDX: ffffc9000dbe2000 RSI: 0000000000029d6a RDI: 0000000000029d6b RBP: ffffc9000f3ef288 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000022 R12: 1ffff1100a58981d R13: 0000000000000032 R14: ffff8880553d06d8 R15: 000000000000002e FS: 00007fc01b1fa6c0(0000) GS:ffff88808d251000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fc01b1d8fc8 CR3: 00000000421a8000 CR4: 0000000000352ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400