------------[ cut here ]------------ BTRFS: Transaction aborted (error -28) WARNING: fs/btrfs/block-group.c:4012 at do_chunk_alloc fs/btrfs/block-group.c:4012 [inline], CPU#0: syz.0.0/5329 WARNING: fs/btrfs/block-group.c:4012 at btrfs_chunk_alloc+0x101d/0x15d0 fs/btrfs/block-group.c:4253, CPU#0: syz.0.0/5329 Modules linked in: CPU: 0 UID: 0 PID: 5329 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:do_chunk_alloc fs/btrfs/block-group.c:4012 [inline] RIP: 0010:btrfs_chunk_alloc+0x101f/0x15d0 fs/btrfs/block-group.c:4253 Code: 67 19 bd fd e9 6d 01 00 00 e8 0d 3d a2 fd 84 c0 74 22 e8 54 19 bd fd e9 5a 01 00 00 e8 4a 19 bd fd 48 8d 3d f3 53 f1 0b 89 de <67> 48 0f b9 3a e9 b3 fc ff ff e8 d2 a6 91 07 41 89 c6 31 ff 89 c6 RSP: 0018:ffffc9000ebcf3d8 EFLAGS: 00010287 RAX: ffffffff84076da6 RBX: ffffffffffffffe4 RCX: 0000000000100000 RDX: ffffc900202a1000 RSI: 00000000ffffffe4 RDI: ffffffff8ff8c1a0 RBP: 0000000000000000 R08: ffff888000cd0000 R09: 0000000000000003 R10: 00000000fffffffb R11: 0000000000000002 R12: 1ffff110083e6216 R13: ffff88801c8cf500 R14: ffff8880434d4001 R15: ffff888012952800 FS: 00007f05e25746c0(0000) GS:ffff88808ccea000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fd3cb8eb000 CR3: 00000000413a5000 CR4: 0000000000352ef0 Call Trace: find_free_extent_update_loop fs/btrfs/extent-tree.c:4199 [inline] find_free_extent+0x45c3/0x5d00 fs/btrfs/extent-tree.c:4611 btrfs_reserve_extent+0x30e/0x7f0 fs/btrfs/extent-tree.c:4705 __btrfs_prealloc_file_range+0x2c1/0xd90 fs/btrfs/inode.c:9141 btrfs_prealloc_file_range+0x40/0x60 fs/btrfs/inode.c:9234 btrfs_fallocate+0x14ba/0x1c40 fs/btrfs/file.c:3250 vfs_fallocate+0x669/0x7e0 fs/open.c:339 ksys_fallocate fs/open.c:363 [inline] __do_sys_fallocate fs/open.c:368 [inline] __se_sys_fallocate fs/open.c:366 [inline] __x64_sys_fallocate+0xc0/0x110 fs/open.c:366 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xe2/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f05e179aeb9 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:00007f05e2574028 EFLAGS: 00000246 ORIG_RAX: 000000000000011d RAX: ffffffffffffffda RBX: 00007f05e1a16090 RCX: 00007f05e179aeb9 RDX: 0000000000000007 RSI: 0000000000000000 RDI: 0000000000000006 RBP: 00007f05e1808c1f R08: 0000000000000000 R09: 0000000000000000 R10: 00000000000000f4 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f05e1a16128 R14: 00007f05e1a16090 R15: 00007ffd3df99ed8 ---------------- Code disassembly (best guess): 0: 67 19 bd fd e9 6d 01 sbb %edi,0x16de9fd(%ebp) 7: 00 00 add %al,(%rax) 9: e8 0d 3d a2 fd call 0xfda23d1b e: 84 c0 test %al,%al 10: 74 22 je 0x34 12: e8 54 19 bd fd call 0xfdbd196b 17: e9 5a 01 00 00 jmp 0x176 1c: e8 4a 19 bd fd call 0xfdbd196b 21: 48 8d 3d f3 53 f1 0b lea 0xbf153f3(%rip),%rdi # 0xbf1541b 28: 89 de mov %ebx,%esi * 2a: 67 48 0f b9 3a ud1 (%edx),%rdi <-- trapping instruction 2f: e9 b3 fc ff ff jmp 0xfffffce7 34: e8 d2 a6 91 07 call 0x791a70b 39: 41 89 c6 mov %eax,%r14d 3c: 31 ff xor %edi,%edi 3e: 89 c6 mov %eax,%esi