bcachefs (loop0): bucket 0:26 gen 0 data type btree sector count overflow: 0 + -256 > U32_MAX while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq ac62141f8dc7e261 written 24 min_key POS_MIN durability: 1 ptr: 0:26:0 gen 0 bcachefs (loop0): bucket journal seq in future (currently at 2) u64s 13 type alloc_v4 0:27:0 len 0 ver 0: gen 1 oldest_gen 1 data_type need_discard journal_seq_nonempty 4 journal_seq_empty 0 need_discard 1 need_inc_gen 0 dirty_sectors 0 stripe_sectors 0 cached_sectors 0 stripe 0 stripe_redundancy 0 io_time[READ] 1 io_time[WRITE] 256 fragmentation 0 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: 1034 Comm: kworker/u4:4 Not tainted 6.16.0-rc3-syzkaller-00042-g78f4e737a53e #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 Workqueue: btree_update btree_interior_update_work 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:ffffc90002537500 EFLAGS: 00010293 RAX: ffffffff8428a3bf RBX: 0000000000000034 RCX: ffff888032eb2440 RDX: 0000000000000000 RSI: 0000000000000034 RDI: 0000000000000038 RBP: ffffc900025377f0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 000000000000001b R12: 1ffff1100a9e401d R13: 0000000000000038 R14: ffff888054e30720 R15: 0000000000000034 FS: 0000000000000000(0000) GS:ffff88808d251000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fffe6d18000 CR3: 0000000043767000 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] btree_update_nodes_written fs/bcachefs/btree_update_interior.c:729 [inline] btree_interior_update_work+0x1082/0x27d0 fs/bcachefs/btree_update_interior.c:867 process_one_work kernel/workqueue.c:3238 [inline] process_scheduled_works+0xae1/0x17b0 kernel/workqueue.c:3321 worker_thread+0x8a0/0xda0 kernel/workqueue.c:3402 kthread+0x70e/0x8a0 kernel/kthread.c:464 ret_from_fork+0x3fc/0x770 arch/x86/kernel/process.c:148 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 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:ffffc90002537500 EFLAGS: 00010293 RAX: ffffffff8428a3bf RBX: 0000000000000034 RCX: ffff888032eb2440 RDX: 0000000000000000 RSI: 0000000000000034 RDI: 0000000000000038 RBP: ffffc900025377f0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 000000000000001b R12: 1ffff1100a9e401d R13: 0000000000000038 R14: ffff888054e30720 R15: 0000000000000034 FS: 0000000000000000(0000) GS:ffff88808d251000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000055888c006168 CR3: 000000001174b000 CR4: 0000000000352ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400