BTRFS info (device loop0): balance: start -d -m BTRFS info (device loop0): relocating block group 6881280 flags data|metadata BTRFS error (device loop0): bdev /dev/loop0 errs: wr 2, rd 2, flush 0, corrupt 0, gen 0 BTRFS error (device loop0 state A): Transaction 17 aborted (error -5) BTRFS: error (device loop0 state A) in __btrfs_update_delayed_inode:1027: errno=-5 IO failure BTRFS info (device loop0 state EA): forced readonly BTRFS: error (device loop0 state EA) in __btrfs_run_delayed_items:1161: errno=-5 IO failure BTRFS warning (device loop0 state EA): Skipping commit of aborted transaction. BTRFS: error (device loop0 state EA) in cleanup_transaction:2068: errno=-5 IO failure ------------[ cut here ]------------ inode->block_rsv.reserved WARNING: fs/btrfs/inode.c:7942 at btrfs_destroy_inode+0x7ca/0x910 fs/btrfs/inode.c:7942, CPU#0: syz.0.0/5337 Modules linked in: CPU: 0 UID: 0 PID: 5337 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_destroy_inode+0x7ca/0x910 fs/btrfs/inode.c:7942 Code: 41 5f 5d e9 38 69 fb ff e8 23 32 cd fd 90 0f 0b 90 e9 c3 f8 ff ff e8 15 32 cd fd 90 0f 0b 90 e9 ed f8 ff ff e8 07 32 cd fd 90 <0f> 0b 90 e9 22 f9 ff ff e8 f9 31 cd fd 90 0f 0b 90 e9 46 f9 ff ff RSP: 0018:ffffc9000724f8c0 EFLAGS: 00010283 RAX: ffffffff83f90f39 RBX: 0000000000018000 RCX: 0000000000100000 RDX: ffffc90021003000 RSI: 000000000005685c RDI: 000000000005685d RBP: ffff888011eaba30 R08: ffff88803414279f R09: 1ffff110068284f3 R10: dffffc0000000000 R11: ffffffff83f90770 R12: ffff888011eabc98 R13: 1ffff92000e49f30 R14: ffff888011eabdc0 R15: dffffc0000000000 FS: 00007fd21f9d46c0(0000) GS:ffff88808c846000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fd2237ee6b8 CR3: 000000003f869000 CR4: 0000000000352ef0 Call Trace: destroy_inode fs/inode.c:390 [inline] evict+0x8fe/0xb50 fs/inode.c:852 btrfs_relocate_block_group+0x7b7/0xaf0 fs/btrfs/relocation.c:5497 btrfs_relocate_chunk+0x114/0x810 fs/btrfs/volumes.c:3647 __btrfs_balance+0x1b5f/0x29d0 fs/btrfs/volumes.c:4586 btrfs_balance+0xaa6/0x1180 fs/btrfs/volumes.c:4973 btrfs_ioctl_balance+0x3da/0x640 fs/btrfs/ioctl.c:3474 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:597 [inline] __se_sys_ioctl+0xfc/0x170 fs/ioctl.c:583 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x174/0x580 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fd22359ce59 Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 e8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fd21f9d3fe8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007fd223816180 RCX: 00007fd22359ce59 RDX: 0000200000000180 RSI: 00000000c4009420 RDI: 0000000000000009 RBP: 00007fd223632e6f R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fd223816218 R14: 00007fd223816180 R15: 00007ffd0c94f3a8