RBP: 00007f4b8c282120 R08: 0000000000000408 R09: 0000000000000010 R10: 0000000000001400 R11: 0000000000000246 R12: 0000000000000001 R13: 000000000000000b R14: 00007f4b8b59bf80 R15: 00007ffc55dbc988 ------------[ cut here ]------------ WARNING: CPU: 0 PID: 5489 at fs/btrfs/space-info.h:199 btrfs_space_info_update_bytes_may_use fs/btrfs/space-info.h:199 [inline] WARNING: CPU: 0 PID: 5489 at fs/btrfs/space-info.h:199 btrfs_space_info_free_bytes_may_use fs/btrfs/space-info.h:231 [inline] WARNING: CPU: 0 PID: 5489 at fs/btrfs/space-info.h:199 btrfs_free_reserved_data_space_noquota+0x2c1/0x4d0 fs/btrfs/delalloc-space.c:181 Modules linked in: CPU: 0 PID: 5489 Comm: syz-executor.0 Not tainted 6.7.0-rc6-syzkaller-00248-g5254c0cbc92d #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023 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+0x2c1/0x4d0 fs/btrfs/delalloc-space.c:181 Code: 00 00 74 08 4c 89 ff e8 ed 88 32 fe 4d 8b 27 4c 89 e7 48 8b 5c 24 18 48 89 de e8 da 85 d6 fd 49 39 dc 73 15 e8 c0 83 d6 fd 90 <0f> 0b 90 31 db 41 80 7c 2d 00 00 75 89 eb 8f e8 ab 83 d6 fd 41 80 RSP: 0018:ffffc90005177368 EFLAGS: 00010293 RAX: ffffffff83b7e6a0 RBX: 0000000000800000 RCX: ffff88801c325940 RDX: 0000000000000000 RSI: 0000000000800000 RDI: 000000000067d000 RBP: dffffc0000000000 R08: ffffffff83b7e696 R09: 1ffffffff1e017e5 R10: dffffc0000000000 R11: fffffbfff1e017e6 R12: 000000000067d000 R13: 1ffff11004f2f20c R14: ffff8880274c8000 R15: ffff888027979060 FS: 00007f4b8c2826c0(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fc1adfb1000 CR3: 0000000027313000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: btrfs_free_reserved_data_space+0xa2/0xe0 fs/btrfs/delalloc-space.c:201 btrfs_dio_iomap_begin+0x908/0x10b0 fs/btrfs/inode.c:7660 iomap_iter+0x677/0xee0 fs/iomap/iter.c:91 __iomap_dio_rw+0xdcf/0x2330 fs/iomap/direct-io.c:658 btrfs_dio_write+0xb6/0x100 fs/btrfs/inode.c:7798 btrfs_direct_write fs/btrfs/file.c:1543 [inline] btrfs_do_write_iter+0x7ac/0x1190 fs/btrfs/file.c:1684 do_iter_readv_writev+0x330/0x4a0 do_iter_write+0x1f6/0x8d0 fs/read_write.c:860 vfs_writev fs/read_write.c:933 [inline] do_pwritev+0x21a/0x360 fs/read_write.c:1030 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0x45/0x110 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x63/0x6b RIP: 0033:0x7f4b8b47cae9 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 20 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 b0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f4b8c2820c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000148 RAX: ffffffffffffffda RBX: 00007f4b8b59bf80 RCX: 00007f4b8b47cae9 RDX: 000000000000000d RSI: 0000000020000240 RDI: 0000000000000004 RBP: 00007f4b8c282120 R08: 0000000000000408 R09: 0000000000000010 R10: 0000000000001400 R11: 0000000000000246 R12: 0000000000000001 R13: 000000000000000b R14: 00007f4b8b59bf80 R15: 00007ffc55dbc988