------------[ cut here ]------------
kernel BUG at fs/bcachefs/btree_cache.c:614!
Internal error: Oops - BUG: 00000000f2000800 [#1] PREEMPT SMP
Modules linked in:
CPU: 0 UID: 0 PID: 6424 Comm: syz-executor Not tainted 6.12.0-rc7-syzkaller-g887407160d72 #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_fs_btree_cache_exit+0x1238/0x123c fs/bcachefs/btree_cache.c:613
lr : bch2_fs_btree_cache_exit+0x1238/0x123c fs/bcachefs/btree_cache.c:613
sp : ffff8000a4027a20
x29: ffff8000a4027a60 x28: 1fffe0001a8a5a45 x27: ffff0000fcd01c80
x26: ffff0000fcd01c78 x25: ffff0000d452d000 x24: ffff0000fcd01cf8
x23: 0000000000000002 x22: ffff0000fcd00000 x21: ffff0000fcd01c78
x20: 00000000000fffff x19: dfff800000000000 x18: ffff8000a40275a0
x17: 000000000003539f x16: ffff800080355c58 x15: 0000000000000001
x14: 1fffe0001f9a03b6 x13: 0000000000000000 x12: 0000000000000000
x11: ffff60001f9a03b7 x10: 0000000000ff0100 x9 : 0000000000000000
x8 : ffff0000d94b5ac0 x7 : 0000000000000000 x6 : 000000000000003f
x5 : 0000000000000040 x4 : 0000000000000001 x3 : ffff8000827c0018
x2 : 0000000000000000 x1 : 0000000000000002 x0 : 0000000000000000
Call trace:
 bch2_fs_btree_cache_exit+0x1238/0x123c fs/bcachefs/btree_cache.c:613 (P)
 bch2_fs_btree_cache_exit+0x1238/0x123c fs/bcachefs/btree_cache.c:613 (L)
 __bch2_fs_free fs/bcachefs/super.c:556 [inline]
 bch2_fs_release+0x204/0x728 fs/bcachefs/super.c:610
 kobject_cleanup lib/kobject.c:689 [inline]
 kobject_release lib/kobject.c:720 [inline]
 kref_put include/linux/kref.h:65 [inline]
 kobject_put+0x2a8/0x41c lib/kobject.c:737
 bch2_fs_free+0x2c4/0x334 fs/bcachefs/super.c:672
 bch2_kill_sb+0x48/0x58 fs/bcachefs/fs.c:2279
 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: d4210000 97771578 d4210000 97771576 (d4210000) 
---[ end trace 0000000000000000 ]---