bcachefs (loop0): bucket journal seq in future (currently at 11) u64s 13 type alloc_v4 0:37:0 len 0 ver 0: gen 1 oldest_gen 1 data_type need_discard journal_seq_nonempty 16711686 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] 1024 fragmentation 0 bp_start 7 , , continuing bcachefs (loop0): bch2_trans_commit_write_locked(): fatal error fatal error in transaction commit: transaction_restart_mem_realloced bcachefs (loop0): fatal error - emergency read only ------------[ cut here ]------------ kernel BUG at fs/bcachefs/bkey_types.h:210! Oops: invalid opcode: 0000 [#1] SMP KASAN NOPTI CPU: 0 UID: 0 PID: 12 Comm: kworker/u4:0 Not tainted 6.16.0-rc3-syzkaller-00121-gf02769e7f272 #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:bkey_i_to_accounting fs/bcachefs/bkey_types.h:210 [inline] RIP: 0010:bch2_trans_commit_write_locked fs/bcachefs/btree_trans_commit.c:793 [inline] RIP: 0010:do_bch2_trans_commit fs/bcachefs/btree_trans_commit.c:851 [inline] RIP: 0010:__bch2_trans_commit+0x82e2/0x8880 fs/bcachefs/btree_trans_commit.c:1079 Code: 98 f7 ff ff e8 4f a8 97 fd 90 0f 0b f3 0f 1e fa e8 43 a8 97 fd 48 8b 7c 24 20 e8 c9 90 fe ff e9 20 b7 ff ff e8 2f a8 97 fd 90 <0f> 0b e8 27 a8 97 fd 90 0f 0b e8 1f a8 97 fd 90 0f 0b e8 17 a8 97 RSP: 0018:ffffc900001e7500 EFLAGS: 00010293 RAX: ffffffff8428a641 RBX: ffff888035f52698 RCX: ffff88801c2ec880 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000022 RBP: ffffc900001e77f0 R08: 0000000000000000 R09: ffffffff84292114 R10: 0000000000000003 R11: 0000000000000000 R12: 0000000000000010 R13: dffffc0000000000 R14: ffff888035f52680 R15: 0000000000000000 FS: 0000000000000000(0000) GS:ffff88808d250000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000055e76cbcf400 CR3: 0000000011442000 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:bkey_i_to_accounting fs/bcachefs/bkey_types.h:210 [inline] RIP: 0010:bch2_trans_commit_write_locked fs/bcachefs/btree_trans_commit.c:793 [inline] RIP: 0010:do_bch2_trans_commit fs/bcachefs/btree_trans_commit.c:851 [inline] RIP: 0010:__bch2_trans_commit+0x82e2/0x8880 fs/bcachefs/btree_trans_commit.c:1079 Code: 98 f7 ff ff e8 4f a8 97 fd 90 0f 0b f3 0f 1e fa e8 43 a8 97 fd 48 8b 7c 24 20 e8 c9 90 fe ff e9 20 b7 ff ff e8 2f a8 97 fd 90 <0f> 0b e8 27 a8 97 fd 90 0f 0b e8 1f a8 97 fd 90 0f 0b e8 17 a8 97 RSP: 0018:ffffc900001e7500 EFLAGS: 00010293 RAX: ffffffff8428a641 RBX: ffff888035f52698 RCX: ffff88801c2ec880 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000022 RBP: ffffc900001e77f0 R08: 0000000000000000 R09: ffffffff84292114 R10: 0000000000000003 R11: 0000000000000000 R12: 0000000000000010 R13: dffffc0000000000 R14: ffff888035f52680 R15: 0000000000000000 FS: 0000000000000000(0000) GS:ffff88808d250000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000055e76cbcf400 CR3: 00000000519a1000 CR4: 0000000000352ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400