loop0: detected capacity change from 0 to 32768 BTRFS: device fsid c9fe44da-de57-406a-8241-57ec7d4412cf devid 1 transid 8 /dev/loop0 (7:0) scanned by syz.0.0 (5333) BTRFS info (device loop0): first mount of filesystem c9fe44da-de57-406a-8241-57ec7d4412cf BTRFS info (device loop0): using crc32c checksum algorithm BTRFS info (device loop0): enabling ssd optimizations BTRFS info (device loop0): turning on flush-on-commit BTRFS info (device loop0): enabling free space tree BTRFS info (device loop0): force zlib compression, level 3 BTRFS info (device loop0): max_inline set to 4096 loop0: detected capacity change from 32768 to 0 BTRFS error (device loop0): bdev /dev/loop0 errs: wr 1, rd 0, flush 0, corrupt 0, gen 0 BTRFS error (device loop0): bdev /dev/loop0 errs: wr 2, rd 0, flush 0, corrupt 0, gen 0 BTRFS error (device loop0 state A): Transaction aborted (error -5) BTRFS: error (device loop0 state A) in __btrfs_run_delayed_items:1161: errno=-5 IO failure BTRFS info (device loop0 state EA): forced readonly BTRFS warning (device loop0 state EA): Skipping commit of aborted transaction. BTRFS: error (device loop0 state EA) in cleanup_transaction:2067: errno=-5 IO failure BTRFS info (device loop0 state EA): last unmount of filesystem c9fe44da-de57-406a-8241-57ec7d4412cf BTRFS: error (device loop0 state EA) in process_one_buffer:447: errno=-5 IO failure BTRFS: error (device loop0 state EA) in free_log_tree:3670: errno=-5 IO failure BTRFS: error (device loop0 state EA) in process_one_buffer:447: errno=-5 IO failure BTRFS: error (device loop0 state EA) in free_log_tree:3670: errno=-5 IO failure ------------[ cut here ]------------ fs_info->delayed_refs_rsv.reserved > 0 WARNING: fs/btrfs/block-rsv.c:472 at btrfs_release_global_block_rsv+0x2e4/0x300 fs/btrfs/block-rsv.c:472, CPU#0: syz.0.0/5333 Modules linked in: CPU: 0 UID: 0 PID: 5333 Comm: syz.0.0 Not tainted syzkaller #0 PREEMPT(full) Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 RIP: 0010:btrfs_release_global_block_rsv+0x2e4/0x300 fs/btrfs/block-rsv.c:472 Code: 0f 0b 90 e9 c1 fe ff ff e8 c9 f2 ae fd 90 0f 0b 90 e9 eb fe ff ff e8 bb f2 ae fd 90 0f 0b 90 e9 15 ff ff ff e8 ad f2 ae fd 90 <0f> 0b 90 e9 46 ff ff ff e8 9f f2 ae fd 90 0f 0b 90 e9 69 ff ff ff RSP: 0018:ffffc9000f8bf708 EFLAGS: 00010293 RAX: ffffffff8416d363 RBX: ffff88801f498478 RCX: ffff888037de2540 RDX: 0000000000000000 RSI: 0000000000028000 RDI: 0000000000000000 RBP: ffff88801f498190 R08: ffff888042a85823 R09: 1ffff11008550b04 R10: dffffc0000000000 R11: ffffed1008550b05 R12: ffff88801f498000 R13: 0000000000000000 R14: 0000000000028000 R15: dffffc0000000000 FS: 0000000000000000(0000) GS:ffff88808c891000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000056414b6438f0 CR3: 0000000044649000 CR4: 0000000000352ef0 Call Trace: btrfs_free_block_groups+0xdf0/0x1090 fs/btrfs/block-group.c:4749 close_ctree+0x7f3/0x12d0 fs/btrfs/disk-io.c:4458 generic_shutdown_super+0x13d/0x2d0 fs/super.c:646 kill_anon_super+0x3b/0x70 fs/super.c:1292 btrfs_kill_super+0x41/0x50 fs/btrfs/super.c:2127 deactivate_locked_super+0xbc/0x130 fs/super.c:476 cleanup_mnt+0x437/0x4d0 fs/namespace.c:1312 task_work_run+0x1d9/0x270 kernel/task_work.c:233 exit_task_work include/linux/task_work.h:40 [inline] do_exit+0x70f/0x22c0 kernel/exit.c:976 do_group_exit+0x21b/0x2d0 kernel/exit.c:1119 get_signal+0x1284/0x1330 kernel/signal.c:3037 arch_do_signal_or_restart+0xbc/0x840 arch/x86/kernel/signal.c:337 __exit_to_user_mode_loop kernel/entry/common.c:64 [inline] exit_to_user_mode_loop+0xa9/0x680 kernel/entry/common.c:98 __exit_to_user_mode_prepare include/linux/irq-entry-common.h:207 [inline] syscall_exit_to_user_mode_prepare include/linux/irq-entry-common.h:230 [inline] syscall_exit_to_user_mode include/linux/entry-common.h:318 [inline] do_syscall_64+0x353/0x580 arch/x86/entry/syscall_64.c:100 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f023e59ce59 Code: Unable to access opcode bytes at 0x7f023e59ce2f. RSP: 002b:00007f023f423fe8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: fffffffffffffffb RBX: 00007f023e815fa0 RCX: 00007f023e59ce59 RDX: 0000000000000008 RSI: 0000200000000380 RDI: 0000000000000007 RBP: 00007f023e632d6f R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f023e816038 R14: 00007f023e815fa0 R15: 00007ffc92606208