loop0: detected capacity change from 0 to 32768 BTRFS: device fsid e417788f-7a09-42b2-9266-8ddc5d5d35d2 devid 1 transid 8 /dev/loop0 (7:0) scanned by syz.0.0 (5326) BTRFS info (device loop0): first mount of filesystem e417788f-7a09-42b2-9266-8ddc5d5d35d2 BTRFS info (device loop0): using xxhash64 checksum algorithm BTRFS warning (device loop0): space cache v1 is being deprecated and will be removed in a future release, please use -o space_cache=v2 BTRFS info (device loop0): rebuilding free space tree BTRFS info (device loop0): disabling free space tree BTRFS info (device loop0): clearing compat-ro feature flag for FREE_SPACE_TREE (0x1) BTRFS info (device loop0): clearing compat-ro feature flag for FREE_SPACE_TREE_VALID (0x2) BTRFS info (device loop0): setting nodatasum BTRFS info (device loop0): allowing degraded mounts BTRFS info (device loop0): turning on async discard BTRFS info (device loop0): enabling disk space caching BTRFS info (device loop0): force clearing of disk cache BTRFS info (device loop0): force zlib compression, level 3 BTRFS info (device loop0): balance: start -sdrange=7..526336,vrange=6..18446744073709551613,limit=9223372036854775810,limit=2..2147483648 ------------[ cut here ]------------ BTRFS: Transaction aborted (error -28) WARNING: fs/btrfs/block-group.c:2880 at btrfs_create_pending_block_groups+0x14ae/0x1b40 fs/btrfs/block-group.c:2880, CPU#0: syz.0.0/5326 Modules linked in: CPU: 0 UID: 0 PID: 5326 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_create_pending_block_groups+0x14b0/0x1b40 fs/btrfs/block-group.c:2880 Code: 46 7c b1 fd e9 fc 01 00 00 e8 4c 7f 96 fd 84 c0 74 22 e8 33 7c b1 fd e9 e9 01 00 00 e8 29 7c b1 fd 48 8d 3d a2 52 07 0c 89 de <67> 48 0f b9 3a e9 bc fc ff ff e8 a1 e5 9c 07 41 89 c4 31 ff 89 c6 RSP: 0018:ffffc9000e19f700 EFLAGS: 00010287 RAX: ffffffff84144247 RBX: 00000000ffffffe4 RCX: 0000000000100000 RDX: ffffc9000ec92000 RSI: 00000000ffffffe4 RDI: ffffffff901b94f0 RBP: ffffc9000e19f978 R08: ffff8880355624c0 R09: 0000000000000003 R10: 00000000fffffffb R11: 0000000000000002 R12: dffffc0000000000 R13: fffff52001c33efc R14: 0000000000000000 R15: ffff888042e90001 FS: 00007f74a30426c0(0000) GS:ffff88808ca4e000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f74a22dee40 CR3: 000000003345a000 CR4: 0000000000352ef0 Call Trace: __btrfs_end_transaction+0x140/0x640 fs/btrfs/transaction.c:1080 btrfs_inc_block_group_ro+0x647/0x7c0 fs/btrfs/block-group.c:3181 btrfs_relocate_block_group+0x39e/0xbc0 fs/btrfs/relocation.c:5367 btrfs_relocate_chunk+0x115/0x820 fs/btrfs/volumes.c:3590 __btrfs_balance+0x1db0/0x2ae0 fs/btrfs/volumes.c:4501 btrfs_balance+0xafa/0x11f0 fs/btrfs/volumes.c:4888 btrfs_ioctl_balance+0x3d3/0x610 fs/btrfs/ioctl.c:3452 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+0x14d/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f74a219c819 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:00007f74a3041fe8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f74a2415fa0 RCX: 00007f74a219c819 RDX: 0000200000000440 RSI: 00000000c4009420 RDI: 0000000000000003 RBP: 00007f74a2232c91 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f74a2416038 R14: 00007f74a2415fa0 R15: 00007ffc36237cf8 ---------------- Code disassembly (best guess): 0: 46 7c b1 rex.RX jl 0xffffffb4 3: fd std 4: e9 fc 01 00 00 jmp 0x205 9: e8 4c 7f 96 fd call 0xfd967f5a e: 84 c0 test %al,%al 10: 74 22 je 0x34 12: e8 33 7c b1 fd call 0xfdb17c4a 17: e9 e9 01 00 00 jmp 0x205 1c: e8 29 7c b1 fd call 0xfdb17c4a 21: 48 8d 3d a2 52 07 0c lea 0xc0752a2(%rip),%rdi # 0xc0752ca 28: 89 de mov %ebx,%esi * 2a: 67 48 0f b9 3a ud1 (%edx),%rdi <-- trapping instruction 2f: e9 bc fc ff ff jmp 0xfffffcf0 34: e8 a1 e5 9c 07 call 0x79ce5da 39: 41 89 c4 mov %eax,%r12d 3c: 31 ff xor %edi,%edi 3e: 89 c6 mov %eax,%esi