------------[ cut here ]------------ kernel BUG at fs/bcachefs/btree_write_buffer.c:801! Oops: invalid opcode: 0000 [#1] PREEMPT SMP NOPTI CPU: 1 UID: 0 PID: 2961 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_write_buffer_exit+0xea/0xf0 fs/bcachefs/btree_write_buffer.c:800 Code: bb e8 45 00 00 e8 26 1e a6 ff 49 c7 46 10 00 00 00 00 49 c7 46 08 00 00 00 00 49 c7 06 00 00 00 00 5b 41 5e e9 62 c9 59 01 90 <0f> 0b 0f 1f 40 00 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 RSP: 0018:ffffc900028c3e08 EFLAGS: 00010216 RAX: 0000100000000000 RBX: ffff88810d780000 RCX: 0000000000009b00 RDX: 0000000000009b61 RSI: ffffffff83ab6be1 RDI: ffff88810d780000 RBP: 0000000000000000 R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: ffff88810d784a40 R13: 0000000000000000 R14: ffff88810d780000 R15: ffff88810d7cb308 FS: 0000555591f72500(0000) GS:ffff888237d00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fcee9960f40 CR3: 0000000107a9e000 CR4: 0000000000350ef0 Call Trace: __bch2_fs_free fs/bcachefs/super.c:565 [inline] bch2_fs_release+0x251/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+0xae/0x1b0 lib/kobject.c:737 deactivate_locked_super+0x2f/0x90 fs/super.c:473 cleanup_mnt+0xf8/0x150 fs/namespace.c:1373 task_work_run+0x84/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:0x7f339997fa47 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:00007ffd20009598 EFLAGS: 00000246 ORIG_RAX: 00000000000000a6 RAX: 0000000000000000 RBX: 0000000000000000 RCX: 00007f339997fa47 RDX: 0000000000000000 RSI: 0000000000000009 RDI: 00007ffd20009650 RBP: 00007ffd20009650 R08: 0000000000000000 R09: 0000000000000000 R10: 00000000ffffffff R11: 0000000000000246 R12: 00007ffd2000a6d0 R13: 00007f33999f115c R14: 000000000000dcd9 R15: 00007ffd2000a710 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:bch2_fs_btree_write_buffer_exit+0xea/0xf0 fs/bcachefs/btree_write_buffer.c:800 Code: bb e8 45 00 00 e8 26 1e a6 ff 49 c7 46 10 00 00 00 00 49 c7 46 08 00 00 00 00 49 c7 06 00 00 00 00 5b 41 5e e9 62 c9 59 01 90 <0f> 0b 0f 1f 40 00 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 RSP: 0018:ffffc900028c3e08 EFLAGS: 00010216 RAX: 0000100000000000 RBX: ffff88810d780000 RCX: 0000000000009b00 RDX: 0000000000009b61 RSI: ffffffff83ab6be1 RDI: ffff88810d780000 RBP: 0000000000000000 R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: ffff88810d784a40 R13: 0000000000000000 R14: ffff88810d780000 R15: ffff88810d7cb308 FS: 0000555591f72500(0000) GS:ffff888237d00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fcee9960f40 CR3: 0000000107a9e000 CR4: 0000000000350ef0