R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000002 R13: 0000000000000000 R14: 00007ff102135f80 R15: 00007ffd044ea178 ------------[ cut here ]------------ WARNING: CPU: 0 PID: 5779 at fs/btrfs/space-info.h:265 btrfs_space_info_update_bytes_may_use fs/btrfs/space-info.h:265 [inline] WARNING: CPU: 0 PID: 5779 at fs/btrfs/space-info.h:265 btrfs_space_info_free_bytes_may_use fs/btrfs/space-info.h:297 [inline] WARNING: CPU: 0 PID: 5779 at fs/btrfs/space-info.h:265 btrfs_free_reserved_data_space_noquota+0x41f/0x6c0 fs/btrfs/delalloc-space.c:189 Modules linked in: CPU: 0 UID: 0 PID: 5779 Comm: syz.0.15 Not tainted syzkaller #0 PREEMPT(full) Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 RIP: 0010:btrfs_space_info_update_bytes_may_use fs/btrfs/space-info.h:265 [inline] RIP: 0010:btrfs_space_info_free_bytes_may_use fs/btrfs/space-info.h:297 [inline] RIP: 0010:btrfs_free_reserved_data_space_noquota+0x41f/0x6c0 fs/btrfs/delalloc-space.c:189 Code: 00 00 74 08 48 89 df e8 4f 4d 38 fe 4c 8b 3b 4c 89 ff 4c 8b 64 24 08 4c 89 e6 e8 6c 5e d3 fd 4d 39 e7 73 1a e8 02 5c d3 fd 90 <0f> 0b 90 45 31 ff 41 80 7c 2d 00 00 0f 85 7b ff ff ff eb 81 e8 e8 RSP: 0018:ffffc9000cbaf258 EFLAGS: 00010293 RAX: ffffffff83ec72ae RBX: ffff88804e57b880 RCX: ffff888000d42440 RDX: 0000000000000000 RSI: 0000000000800000 RDI: 000000000064d000 RBP: dffffc0000000000 R08: ffffffff8fa3c437 R09: 1ffffffff1f47886 R10: dffffc0000000000 R11: fffffbfff1f47887 R12: 0000000000800000 R13: 1ffff11009caf710 R14: ffff88804e57b800 R15: 000000000064d000 FS: 00007ff102d6f6c0(0000) GS:ffff88808d20a000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007ff102d46000 CR3: 000000005956c000 CR4: 0000000000352ef0 Call Trace: btrfs_free_reserved_data_space+0x9f/0xe0 fs/btrfs/delalloc-space.c:209 btrfs_dio_iomap_begin+0x7c3/0x1030 fs/btrfs/direct-io.c:597 iomap_iter+0x531/0xde0 fs/iomap/iter.c:108 __iomap_dio_rw+0xc57/0x1e30 fs/iomap/direct-io.c:728 btrfs_dio_write fs/btrfs/direct-io.c:774 [inline] btrfs_direct_write+0x749/0xb10 fs/btrfs/direct-io.c:895 btrfs_do_write_iter+0x25f/0x710 fs/btrfs/file.c:1460 aio_write+0x532/0x7a0 fs/aio.c:1634 __io_submit_one fs/aio.c:-1 [inline] io_submit_one+0x78b/0x1310 fs/aio.c:2053 __do_sys_io_submit fs/aio.c:2112 [inline] __se_sys_io_submit+0x185/0x2f0 fs/aio.c:2082 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xfa/0x3b0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7ff101f7e719 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 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 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007ff102d6f038 EFLAGS: 00000246 ORIG_RAX: 00000000000000d1 RAX: ffffffffffffffda RBX: 00007ff102135f80 RCX: 00007ff101f7e719 RDX: 0000000020000540 RSI: 000000000000003b RDI: 00007ff102d46000 RBP: 00007ff102d6f090 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000002 R13: 0000000000000000 R14: 00007ff102135f80 R15: 00007ffd044ea178