------------[ cut here ]------------ kernel BUG at fs/bcachefs/journal_reclaim.c:445! Internal error: Oops - BUG: 00000000f2000800 [#1] PREEMPT SMP Modules linked in: CPU: 1 UID: 0 PID: 6414 Comm: syz-executor Not tainted 6.13.0-rc2-syzkaller-g146ff2c261f3 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 pstate: 80400005 (Nzcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : bch2_journal_pin_set+0x92c/0x9a0 fs/bcachefs/journal_reclaim.c:445 lr : bch2_journal_pin_set+0x92c/0x9a0 fs/bcachefs/journal_reclaim.c:445 sp : ffff8000a3757360 x29: ffff8000a37573e0 x28: ffff0000f33cab70 x27: 1ffff000146eaecf x26: 000000000000000c x25: 000000000000000d x24: ffff0000f33ca500 x23: ffff0000f33846b8 x22: dfff800000000000 x21: ffffffffffffffff x20: 1fffe0001e67956e x19: ffff0000f33ca9e8 x18: 1fffe000366c5a7e x17: ffff80008f97d000 x16: ffff80008047a194 x15: ffff7000146eae54 x14: 1ffff000146eae54 x13: 0000000000000004 x12: ffffffffffffffff x11: ffff7000146eae54 x10: 0000000000ff0100 x9 : 0000000000000000 x8 : ffff0000da683c80 x7 : ffff800082b99b88 x6 : 0000000000000000 x5 : 0000000000000000 x4 : 0000000000000001 x3 : ffff80008047a2bc x2 : 0000000000000001 x1 : 000000000000000c x0 : 000000000000000d Call trace: bch2_journal_pin_set+0x92c/0x9a0 fs/bcachefs/journal_reclaim.c:445 (P) bch2_journal_pin_set+0x92c/0x9a0 fs/bcachefs/journal_reclaim.c:445 (L) bch2_journal_pin_add fs/bcachefs/journal_reclaim.h:48 [inline] bch2_journal_keys_to_write_buffer_start+0x340/0x344 fs/bcachefs/btree_write_buffer.c:727 bch2_journal_keys_to_write_buffer fs/bcachefs/btree_write_buffer.c:779 [inline] fetch_wb_keys_from_journal fs/bcachefs/btree_write_buffer.c:491 [inline] btree_write_buffer_flush_seq+0x200/0x1254 fs/bcachefs/btree_write_buffer.c:508 bch2_btree_write_buffer_flush_going_ro+0x134/0x1ec fs/bcachefs/btree_write_buffer.c:556 __bch2_fs_read_only+0x114/0x3e4 fs/bcachefs/super.c:275 bch2_fs_read_only+0x930/0xf00 fs/bcachefs/super.c:356 __bch2_fs_stop+0x104/0x570 fs/bcachefs/super.c:621 bch2_put_super+0x40/0x50 fs/bcachefs/fs.c:2050 generic_shutdown_super+0x12c/0x2bc fs/super.c:642 bch2_kill_sb+0x40/0x58 fs/bcachefs/fs.c:2278 deactivate_locked_super+0xc4/0x12c fs/super.c:473 deactivate_super+0xe0/0x100 fs/super.c:506 cleanup_mnt+0x34c/0x3dc fs/namespace.c:1373 __cleanup_mnt+0x20/0x30 fs/namespace.c:1380 task_work_run+0x230/0x2e0 kernel/task_work.c:239 resume_user_mode_work include/linux/resume_user_mode.h:50 [inline] do_notify_resume+0x178/0x1f4 arch/arm64/kernel/entry-common.c:151 exit_to_user_mode_prepare arch/arm64/kernel/entry-common.c:169 [inline] exit_to_user_mode arch/arm64/kernel/entry-common.c:178 [inline] el0_svc+0xac/0x168 arch/arm64/kernel/entry-common.c:745 el0t_64_sync_handler+0x84/0x108 arch/arm64/kernel/entry-common.c:762 el0t_64_sync+0x198/0x19c arch/arm64/kernel/entry.S:600 Code: aa1303e0 97814d6b 17ffff71 976bfbcb (d4210000) ---[ end trace 0000000000000000 ]---