BTRFS info (device loop0): balance: start -d -m BTRFS info (device loop0): relocating block group 6881280 flags data|metadata BTRFS info (device loop0): relocating block group 5242880 flags data|metadata 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): error while writing out transaction: -EIO BTRFS warning (device loop0): Skipping commit of aborted transaction. BTRFS error (device loop0 state A): Transaction 15 aborted (-EIO) BTRFS: error (device loop0 state A) in cleanup_transaction:2062: errno=-5 IO failure BTRFS info (device loop0 state EA): forced readonly ------------[ cut here ]------------ inode->block_rsv.reserved WARNING: fs/btrfs/inode.c:8135 at btrfs_destroy_inode+0x7ca/0x910 fs/btrfs/inode.c:8135, CPU#0: syz.0.0/5322 Modules linked in: CPU: 0 UID: 0 PID: 5322 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:8135 Code: 41 5f 5d e9 88 4a fb ff e8 93 0c ac fd 90 0f 0b 90 e9 c3 f8 ff ff e8 85 0c ac fd 90 0f 0b 90 e9 ed f8 ff ff e8 77 0c ac fd 90 <0f> 0b 90 e9 22 f9 ff ff e8 69 0c ac fd 90 0f 0b 90 e9 46 f9 ff ff RSP: 0018:ffffc9000e2bf8c0 EFLAGS: 00010287 RAX: ffffffff841bbfb9 RBX: 0000000000018000 RCX: 0000000000100000 RDX: ffffc90020001000 RSI: 0000000000039210 RDI: 0000000000039211 RBP: ffff888044123a30 R08: ffff88805b2467af R09: 1ffff1100b648cf5 R10: dffffc0000000000 R11: ffffffff841bb7f0 R12: ffff888044123c98 R13: 1ffff92001c57f30 R14: ffff888044123dc0 R15: dffffc0000000000 FS: 00007fe9fda896c0(0000) GS:ffff88808c2cf000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000055f6e038d0f0 CR3: 0000000012bf0000 CR4: 0000000000352ef0 Call Trace: destroy_inode fs/inode.c:387 [inline] evict+0x8fe/0xb50 fs/inode.c:846 btrfs_relocate_block_group+0x7b7/0xaf0 fs/btrfs/relocation.c:5565 btrfs_relocate_chunk+0x114/0x810 fs/btrfs/volumes.c:3694 __btrfs_balance+0x1b5f/0x29d0 fs/btrfs/volumes.c:4633 btrfs_balance+0xaa6/0x1180 fs/btrfs/volumes.c:5020 btrfs_ioctl_balance+0x3da/0x640 fs/btrfs/ioctl.c:3479 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:61 [inline] do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fe9fcb9e159 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:00007fe9fda88fe8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007fe9fce26090 RCX: 00007fe9fcb9e159 RDX: 0000200000000180 RSI: 00000000c4009420 RDI: 0000000000000007 RBP: 00007fe9fcc35024 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fe9fce26128 R14: 00007fe9fce26090 R15: 00007ffde51e3868