R10: 0000000000001400 R11: 0000000000000246 R12: 00007ffd81cf79b8 R13: 000000000000000d R14: 0000000000000003 R15: 0000000000000004 ------------[ cut here ]------------ WARNING: CPU: 2 PID: 5164 at fs/btrfs/space-info.h:199 btrfs_space_info_update_bytes_may_use fs/btrfs/space-info.h:199 [inline] WARNING: CPU: 2 PID: 5164 at fs/btrfs/space-info.h:199 btrfs_space_info_free_bytes_may_use fs/btrfs/space-info.h:231 [inline] WARNING: CPU: 2 PID: 5164 at fs/btrfs/space-info.h:199 btrfs_free_reserved_data_space_noquota+0x3c6/0x500 fs/btrfs/delalloc-space.c:181 Modules linked in: CPU: 2 PID: 5164 Comm: syz-executor270 Not tainted 6.7.0-rc2-syzkaller-00195-g0f5cc96c367f #0 Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.2-debian-1.16.2-1 04/01/2014 RIP: 0010:btrfs_space_info_update_bytes_may_use fs/btrfs/space-info.h:199 [inline] RIP: 0010:btrfs_space_info_free_bytes_may_use fs/btrfs/space-info.h:231 [inline] RIP: 0010:btrfs_free_reserved_data_space_noquota+0x3c6/0x500 fs/btrfs/delalloc-space.c:181 Code: ea 03 80 3c 02 00 0f 85 2f 01 00 00 4c 8b 73 60 48 89 ef 4c 89 f6 e8 e9 3f ee fd 49 39 ee 0f 83 6e fe ff ff e8 cb 44 ee fd 90 <0f> 0b 90 e9 6b fe ff ff e8 bd 44 ee fd 48 8d 7b 18 be ff ff ff ff RSP: 0018:ffffc900036ff3e0 EFLAGS: 00010293 RAX: 0000000000000000 RBX: ffff8880216ff000 RCX: ffffffff83983b77 RDX: ffff8880225e05c0 RSI: ffffffff83983b85 RDI: 0000000000000006 RBP: 0000000000800000 R08: 0000000000000006 R09: 0000000000800000 R10: 000000000067d000 R11: 0000000000000002 R12: ffff888021c48000 R13: 0000000000000000 R14: 000000000067d000 R15: ffffffffff800000 FS: 0000555555c0f480(0000) GS:ffff88806b800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00000000200005c0 CR3: 0000000022d55000 CR4: 0000000000350ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: btrfs_free_reserved_data_space+0xc1/0x100 fs/btrfs/delalloc-space.c:201 btrfs_dio_iomap_begin+0xb1a/0x1ea0 fs/btrfs/inode.c:7660 iomap_iter+0x488/0xfe0 fs/iomap/iter.c:91 __iomap_dio_rw+0x6c4/0x1bc0 fs/iomap/direct-io.c:658 btrfs_dio_write+0xb1/0xe0 fs/btrfs/inode.c:7798 btrfs_direct_write fs/btrfs/file.c:1543 [inline] btrfs_do_write_iter+0x946/0x1120 fs/btrfs/file.c:1684 call_write_iter include/linux/fs.h:2020 [inline] do_iter_readv_writev+0x21e/0x3c0 fs/read_write.c:735 do_iter_write+0x17f/0x7f0 fs/read_write.c:860 vfs_writev+0x221/0x700 fs/read_write.c:933 do_pwritev+0x1af/0x260 fs/read_write.c:1030 __do_sys_pwritev2 fs/read_write.c:1089 [inline] __se_sys_pwritev2 fs/read_write.c:1080 [inline] __x64_sys_pwritev2+0xef/0x150 fs/read_write.c:1080 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x40/0x110 arch/x86/entry/common.c:82 entry_SYSCALL_64_after_hwframe+0x63/0x6b RIP: 0033:0x7fdcaadb2919 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 11 19 00 00 90 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 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007ffd81cf7938 EFLAGS: 00000246 ORIG_RAX: 0000000000000148 RAX: ffffffffffffffda RBX: 00007ffd81cf79a0 RCX: 00007fdcaadb2919 RDX: 000000000000000d RSI: 0000000020000240 RDI: 0000000000000004 RBP: 0000000000000001 R08: 0000000000000408 R09: 0000000000000010 R10: 0000000000001400 R11: 0000000000000246 R12: 00007ffd81cf79b8 R13: 000000000000000d R14: 0000000000000003 R15: 0000000000000004