bcachefs (loop2): unshutdown complete, journal seq 15 bcachefs (loop2): done going read-only, filesystem not clean bcachefs (loop2): shutdown complete ------------[ cut here ]------------ kernel BUG at fs/bcachefs/btree_cache.c:594! Oops: invalid opcode: 0000 [#1] PREEMPT SMP PTI CPU: 1 UID: 0 PID: 2960 Comm: syz-executor Not tainted 6.12.0-rc1-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 RIP: 0010:bch2_fs_btree_cache_exit+0x4e1/0x4f0 fs/bcachefs/btree_cache.c:593 Code: 01 e8 eb a4 48 83 c4 20 5b 41 5c 41 5d 41 5e 41 5f 5d c3 cc cc cc cc 90 0f 0b 90 0f 0b 90 0f 0b 90 0f 0b 90 0f 0b 90 0f 0b 90 <0f> 0b 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 00 90 90 90 90 90 90 90 RSP: 0018:ffffc90002f33dc8 EFLAGS: 00010202 RAX: 0000100000000000 RBX: ffff888110381c78 RCX: ffff888174057628 RDX: ffff888174057628 RSI: ffff888110381c78 RDI: ffff8881027be628 RBP: ffff888110381c78 R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: ffff888110380000 R13: ffff8881027bf228 R14: ffff888110381a80 R15: ffff888110380000 FS: 000055556d397500(0000) GS:ffff888237d00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00005577c3eec568 CR3: 000000010235a000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: __bch2_fs_free fs/bcachefs/super.c:555 [inline] bch2_fs_release+0x1dd/0x400 fs/bcachefs/super.c:609 kobject_cleanup lib/kobject.c:689 [inline] kobject_release lib/kobject.c:720 [inline] kref_put include/linux/kref.h:65 [inline] kobject_put+0xac/0x1b0 lib/kobject.c:737 deactivate_locked_super+0x2d/0x90 fs/super.c:473 cleanup_mnt+0xf8/0x150 fs/namespace.c:1373 task_work_run+0x82/0xb0 kernel/task_work.c:228 resume_user_mode_work include/linux/resume_user_mode.h:50 [inline] exit_to_user_mode_loop kernel/entry/common.c:114 [inline] exit_to_user_mode_prepare include/linux/entry-common.h:328 [inline] __syscall_exit_to_user_mode_work kernel/entry/common.c:207 [inline] syscall_exit_to_user_mode+0xb6/0x200 kernel/entry/common.c:218 do_syscall_64+0xed/0x220 arch/x86/entry/common.c:89 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f8e29d7fa47 Code: a8 ff ff ff f7 d8 64 89 01 48 83 c8 ff c3 0f 1f 44 00 00 31 f6 e9 09 00 00 00 66 0f 1f 84 00 00 00 00 00 b8 a6 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 01 c3 48 c7 c2 a8 ff ff ff f7 d8 64 89 02 b8 RSP: 002b:00007fff5a86e438 EFLAGS: 00000246 ORIG_RAX: 00000000000000a6 RAX: 0000000000000000 RBX: 0000000000000000 RCX: 00007f8e29d7fa47 RDX: 0000000000000000 RSI: 0000000000000009 RDI: 00007fff5a86e4f0 RBP: 00007fff5a86e4f0 R08: 0000000000000000 R09: 0000000000000000 R10: 00000000ffffffff R11: 0000000000000246 R12: 00007fff5a86f570 R13: 00007f8e29df123c R14: 0000000000010035 R15: 00007fff5a86f5b0 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:bch2_fs_btree_cache_exit+0x4e1/0x4f0 fs/bcachefs/btree_cache.c:593 Code: 01 e8 eb a4 48 83 c4 20 5b 41 5c 41 5d 41 5e 41 5f 5d c3 cc cc cc cc 90 0f 0b 90 0f 0b 90 0f 0b 90 0f 0b 90 0f 0b 90 0f 0b 90 <0f> 0b 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 00 90 90 90 90 90 90 90 RSP: 0018:ffffc90002f33dc8 EFLAGS: 00010202 RAX: 0000100000000000 RBX: ffff888110381c78 RCX: ffff888174057628 RDX: ffff888174057628 RSI: ffff888110381c78 RDI: ffff8881027be628 RBP: ffff888110381c78 R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: ffff888110380000 R13: ffff8881027bf228 R14: ffff888110381a80 R15: ffff888110380000 FS: 000055556d397500(0000) GS:ffff888237d00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00005577c3eec568 CR3: 000000010235a000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400