bcachefs (loop0): shutting down ------------[ cut here ]------------ WARNING: CPU: 1 PID: 5835 at fs/bcachefs/super.c:1229 bch2_dev_free+0x228/0x290 fs/bcachefs/super.c:1229 Modules linked in: CPU: 1 UID: 0 PID: 5835 Comm: syz-executor869 Not tainted 6.15.0-rc1-syzkaller #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025 RIP: 0010:bch2_dev_free+0x228/0x290 fs/bcachefs/super.c:1229 Code: ff e8 6c f8 6e 00 4c 89 ef e8 64 f8 6e 00 48 89 df 48 83 c4 10 5b 41 5c 41 5d 41 5e 41 5f 5d e9 7e fd 90 07 e8 29 0b 36 fd 90 <0f> 0b 90 e9 09 fe ff ff e8 1b 0b 36 fd 90 0f 0b 90 e9 15 fe ff ff RSP: 0018:ffffc9000402fb88 EFLAGS: 00010293 RAX: ffffffff848d3937 RBX: ffff88807f216000 RCX: ffff88807df65a00 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: ffff88807f2160c0 R08: ffffffff84fc4177 R09: 0000000000000000 R10: ffff88807f216208 R11: ffffed100fe42c4a R12: ffff888078f803f0 R13: ffff88807f2160b0 R14: ffff888078f80000 R15: ffff888078f807b2 FS: 000055558da4b380(0000) GS:ffff8881250c9000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000000045bdd0 CR3: 0000000053d40000 CR4: 00000000003526f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: bch2_fs_free+0x2b0/0x400 fs/bcachefs/super.c:688 deactivate_locked_super+0xc4/0x130 fs/super.c:473 cleanup_mnt+0x422/0x4c0 fs/namespace.c:1435 task_work_run+0x251/0x310 kernel/task_work.c:227 ptrace_notify+0x2dc/0x390 kernel/signal.c:2520 ptrace_report_syscall include/linux/ptrace.h:415 [inline] ptrace_report_syscall_exit include/linux/ptrace.h:477 [inline] syscall_exit_work+0xc7/0x1d0 kernel/entry/common.c:173 syscall_exit_to_user_mode_prepare kernel/entry/common.c:200 [inline] __syscall_exit_to_user_mode_work kernel/entry/common.c:205 [inline] syscall_exit_to_user_mode+0x24a/0x340 kernel/entry/common.c:218 do_syscall_64+0x100/0x230 arch/x86/entry/syscall_64.c:100 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f1b4f246447 Code: 07 00 48 83 c4 08 5b 5d c3 66 2e 0f 1f 84 00 00 00 00 00 c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 b8 a6 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 01 c3 48 c7 c2 b8 ff ff ff f7 d8 64 89 02 b8 RSP: 002b:00007ffddd7dc968 EFLAGS: 00000202 ORIG_RAX: 00000000000000a6 RAX: 0000000000000000 RBX: 0000000000000000 RCX: 00007f1b4f246447 RDX: 0000000000000000 RSI: 0000000000000009 RDI: 00007ffddd7dca20 RBP: 00007ffddd7dca20 R08: 0000000000000000 R09: 0000000000000000 R10: 00000000ffffffff R11: 0000000000000202 R12: 00007ffddd7dda90 R13: 000055558da4c6c0 R14: 0000000000000001 R15: 431bde82d7b634db