loop0: detected capacity change from 0 to 32768 BTRFS: device fsid 395ef67a-297e-477c-816d-cd80a5b93e5d devid 1 transid 8 /dev/loop0 (7:0) scanned by syz.0.0 (5340) BTRFS info (device loop0): first mount of filesystem 395ef67a-297e-477c-816d-cd80a5b93e5d BTRFS info (device loop0): using sha256 (sha256-avx2) checksum algorithm BTRFS info (device loop0): using free-space-tree BTRFS info (device loop0): last unmount of filesystem 395ef67a-297e-477c-816d-cd80a5b93e5d assertion failed: list_empty(&fs_info->delayed_iputs), in fs/btrfs/disk-io.c:4330 ------------[ cut here ]------------ kernel BUG at fs/btrfs/disk-io.c:4330! Oops: invalid opcode: 0000 [#1] PREEMPT SMP KASAN NOPTI CPU: 0 UID: 0 PID: 5340 Comm: syz.0.0 Not tainted 6.12.0-syzkaller-10296-gaaf20f870da0 #0 Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 RIP: 0010:close_ctree+0x92c/0xd60 fs/btrfs/disk-io.c:4330 Code: e9 0b f9 ff ff e8 34 a7 c5 f5 48 c7 c7 00 8b 4c 8c 48 c7 c6 a0 ba 4c 8c 48 c7 c2 80 8b 4c 8c b9 ea 10 00 00 e8 15 9d ff ff 90 <0f> 0b e8 0d a7 c5 f5 48 c7 c7 00 8b 4c 8c 48 c7 c6 40 bb 4c 8c 48 RSP: 0018:ffffc9000d2d7740 EFLAGS: 00010246 RAX: 0000000000000051 RBX: ffff888052c1cd38 RCX: 24197df54c4a7800 RDX: 0000000000000000 RSI: 0000000080000000 RDI: 0000000000000000 RBP: ffffc9000d2d78e0 R08: ffffffff8175729c R09: 1ffff92001a5ae84 R10: dffffc0000000000 R11: fffff52001a5ae85 R12: ffff888052c1c000 R13: ffff888052c1cfa0 R14: 1ffff1100a583a74 R15: 0000000000000000 FS: 0000000000000000(0000) GS:ffff88801fc00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f04a82119a0 CR3: 0000000043e3a000 CR4: 0000000000352ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: generic_shutdown_super+0x139/0x2d0 fs/super.c:642 kill_anon_super+0x3b/0x70 fs/super.c:1237 btrfs_kill_super+0x41/0x50 fs/btrfs/super.c:2112 deactivate_locked_super+0xc4/0x130 fs/super.c:473 cleanup_mnt+0x41f/0x4b0 fs/namespace.c:1373 task_work_run+0x24f/0x310 kernel/task_work.c:239 exit_task_work include/linux/task_work.h:43 [inline] do_exit+0xa2f/0x28e0 kernel/exit.c:938 do_group_exit+0x207/0x2c0 kernel/exit.c:1087 get_signal+0x16b2/0x1750 kernel/signal.c:3016 arch_do_signal_or_restart+0x96/0x860 arch/x86/kernel/signal.c:337 exit_to_user_mode_loop kernel/entry/common.c:111 [inline] exit_to_user_mode_prepare include/linux/entry-common.h:329 [inline] __syscall_exit_to_user_mode_work kernel/entry/common.c:207 [inline] syscall_exit_to_user_mode+0xce/0x340 kernel/entry/common.c:218 do_syscall_64+0x100/0x230 arch/x86/entry/common.c:89 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f04a7380809 Code: Unable to access opcode bytes at 0x7f04a73807df. RSP: 002b:00007f04a82320e8 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca RAX: fffffffffffffe00 RBX: 00007f04a7545fa8 RCX: 00007f04a7380809 RDX: 0000000000000000 RSI: 0000000000000080 RDI: 00007f04a7545fa8 RBP: 00007f04a7545fa0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00007f04a7545fac R13: 0000000000000000 R14: 00007fff6d6a1d50 R15: 00007fff6d6a1e38 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:close_ctree+0x92c/0xd60 fs/btrfs/disk-io.c:4330 Code: e9 0b f9 ff ff e8 34 a7 c5 f5 48 c7 c7 00 8b 4c 8c 48 c7 c6 a0 ba 4c 8c 48 c7 c2 80 8b 4c 8c b9 ea 10 00 00 e8 15 9d ff ff 90 <0f> 0b e8 0d a7 c5 f5 48 c7 c7 00 8b 4c 8c 48 c7 c6 40 bb 4c 8c 48 RSP: 0018:ffffc9000d2d7740 EFLAGS: 00010246 RAX: 0000000000000051 RBX: ffff888052c1cd38 RCX: 24197df54c4a7800 RDX: 0000000000000000 RSI: 0000000080000000 RDI: 0000000000000000 RBP: ffffc9000d2d78e0 R08: ffffffff8175729c R09: 1ffff92001a5ae84 R10: dffffc0000000000 R11: fffff52001a5ae85 R12: ffff888052c1c000 R13: ffff888052c1cfa0 R14: 1ffff1100a583a74 R15: 0000000000000000 FS: 0000000000000000(0000) GS:ffff88801fc00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f04a82119a0 CR3: 0000000043e3a000 CR4: 0000000000352ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400