BTRFS info (device loop3): last unmount of filesystem 9cbe639e-af0e-4770-b5e5-6aa1f177893f assertion failed: list_empty(&fs_info->delalloc_roots), in fs/btrfs/disk-io.c:4350 ------------[ cut here ]------------ kernel BUG at fs/btrfs/disk-io.c:4350! Internal error: Oops - BUG: 00000000f2000800 [#1] PREEMPT SMP Modules linked in: CPU: 1 PID: 9636 Comm: syz-executor.3 Not tainted 6.9.0-rc3-syzkaller-gb5d2afe8745b #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024 pstate: 60400005 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : close_ctree+0x808/0xb44 fs/btrfs/disk-io.c:4350 lr : close_ctree+0x808/0xb44 fs/btrfs/disk-io.c:4350 sp : ffff8000a96279c0 x29: ffff8000a9627b20 x28: 1fffe0001a858a5c x27: dfff800000000000 x26: ffff7000152c4f44 x25: 1fffe0001a8589f4 x24: ffff8000a9627a20 x23: 0000000000000000 x22: ffff0000d42c4f98 x21: ffff0000d42c4f28 x20: ffff0000d42c4010 x19: ffff0000d42c4000 x18: 0000000000000008 x17: 74622f7366206e69 x16: ffff80008ae71340 x15: 0000000000000001 x14: 1ffff000152c4e8c x13: 0000000000000000 x12: 0000000000000000 x11: 0000000000000001 x10: 0000000000ff0100 x9 : 2ecc15ba3fad1b00 x8 : 2ecc15ba3fad1b00 x7 : 0000000000000001 x6 : 0000000000000001 x5 : ffff8000a9627158 x4 : ffff80008ef65060 x3 : ffff800082f1021c x2 : 0000000000000001 x1 : 0000000100000000 x0 : 0000000000000052 Call trace: close_ctree+0x808/0xb44 fs/btrfs/disk-io.c:4350 btrfs_put_super+0x70/0x80 fs/btrfs/super.c:73 generic_shutdown_super+0x128/0x2b8 fs/super.c:641 kill_anon_super+0x4c/0x7c fs/super.c:1225 btrfs_kill_super+0x40/0x58 fs/btrfs/super.c:2091 deactivate_locked_super+0xc4/0x12c fs/super.c:472 deactivate_super+0xe0/0x100 fs/super.c:505 cleanup_mnt+0x34c/0x3dc fs/namespace.c:1267 __cleanup_mnt+0x20/0x30 fs/namespace.c:1274 task_work_run+0x230/0x2e0 kernel/task_work.c:180 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:713 el0t_64_sync_handler+0x84/0xfc arch/arm64/kernel/entry-common.c:730 el0t_64_sync+0x190/0x194 arch/arm64/kernel/entry.S:598 Code: 90002ca2 911b0042 52821fc3 97ffeae5 (d4210000) ---[ end trace 0000000000000000 ]---