R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000002 R13: 0000000000000000 R14: 00007fb404735f80 R15: 00007fff23065708 ------------[ cut here ]------------ WARNING: CPU: 0 PID: 6044 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: 6044 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: 6044 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: 6044 Comm: syz.0.24 Not tainted 6.16.0-rc4-syzkaller-gc435a4f487e8 #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 df 1b 3d fe 4c 8b 3b 4c 89 ff 4c 8b 64 24 08 4c 89 e6 e8 5c 9b d9 fd 4d 39 e7 73 1a e8 f2 98 d9 fd 90 <0f> 0b 90 45 31 ff 41 80 7c 2d 00 00 0f 85 7b ff ff ff eb 81 e8 d8 RSP: 0018:ffffc9000d4af238 EFLAGS: 00010293 RAX: ffffffff83e6c5ae RBX: ffff8880443e7880 RCX: ffff888033050000 RDX: 0000000000000000 RSI: 0000000000800000 RDI: 000000000064d000 RBP: dffffc0000000000 R08: ffffffff8fa1e7f7 R09: 1ffffffff1f43cfe R10: dffffc0000000000 R11: fffffbfff1f43cff R12: 0000000000800000 R13: 1ffff1100887cf10 R14: ffff8880443e7800 R15: 000000000064d000 FS: 00007fb4054286c0(0000) GS:ffff88808d21c000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00005555d2ef04a0 CR3: 000000004df35000 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+0x537/0xdf0 fs/iomap/iter.c:109 __iomap_dio_rw+0xc67/0x1e40 fs/iomap/direct-io.c:733 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:1438 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:0x7fb40457e719 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:00007fb405428038 EFLAGS: 00000246 ORIG_RAX: 00000000000000d1 RAX: ffffffffffffffda RBX: 00007fb404735f80 RCX: 00007fb40457e719 RDX: 0000000020000540 RSI: 000000000000003b RDI: 00007fb4053ff000 RBP: 00007fb405428090 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000002 R13: 0000000000000000 R14: 00007fb404735f80 R15: 00007fff23065708