RBP: 0000000000000002 R08: 00007ffe180d8106 R09: 0000000000003832 R10: 0000000000000002 R11: 0000000000000246 R12: 00007ffaf231b73c R13: 0000000000000000 R14: 431bde82d7b634db R15: 00007ffe180d83f0 ------------[ cut here ]------------ WARNING: CPU: 0 PID: 5315 at fs/btrfs/space-info.h:255 btrfs_space_info_update_bytes_may_use fs/btrfs/space-info.h:255 [inline] WARNING: CPU: 0 PID: 5315 at fs/btrfs/space-info.h:255 btrfs_space_info_free_bytes_may_use fs/btrfs/space-info.h:287 [inline] WARNING: CPU: 0 PID: 5315 at fs/btrfs/space-info.h:255 btrfs_free_reserved_data_space_noquota+0x2f0/0x510 fs/btrfs/delalloc-space.c:179 Modules linked in: CPU: 0 UID: 0 PID: 5315 Comm: syz-executor190 Not tainted 6.14.0-syzkaller-00624-g2f2d52945852 #0 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:255 [inline] RIP: 0010:btrfs_space_info_free_bytes_may_use fs/btrfs/space-info.h:287 [inline] RIP: 0010:btrfs_free_reserved_data_space_noquota+0x2f0/0x510 fs/btrfs/delalloc-space.c:179 Code: 00 00 74 08 48 89 df e8 6e 69 1c fe 48 8b 2b 48 89 ef 48 8b 5c 24 10 48 89 de e8 6b 18 b5 fd 48 39 dd 73 1d e8 01 16 b5 fd 90 <0f> 0b 90 31 ed 48 8b 1c 24 43 80 7c 3d 00 00 0f 85 7a ff ff ff eb RSP: 0018:ffffc9000d167178 EFLAGS: 00010293 RAX: ffffffff840cdb2f RBX: 0000000000800000 RCX: ffff88801adf2440 RDX: 0000000000000000 RSI: 0000000000800000 RDI: 0000000000603000 RBP: 0000000000603000 R08: ffffffff840cdb25 R09: 1ffffffff2079c4e R10: dffffc0000000000 R11: fffffbfff2079c4f R12: ffffffffff800000 R13: 1ffff110086d350d R14: ffff88804369a800 R15: dffffc0000000000 FS: 0000555586609480(0000) GS:ffff88801fc00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000564674e9ba48 CR3: 0000000044308000 CR4: 0000000000352ef0 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:199 btrfs_dio_iomap_begin+0x764/0x1140 fs/btrfs/direct-io.c:597 iomap_iter+0x50c/0xe00 fs/iomap/iter.c:109 __iomap_dio_rw+0xe93/0x2560 fs/iomap/direct-io.c:733 btrfs_dio_write fs/btrfs/direct-io.c:774 [inline] btrfs_direct_write+0x610/0xa30 fs/btrfs/direct-io.c:879 btrfs_do_write_iter+0x2a0/0x7c0 fs/btrfs/file.c:1381 aio_write+0x56b/0x7c0 fs/aio.c:1633 io_submit_one+0x8a7/0x18a0 fs/aio.c:2052 __do_sys_io_submit fs/aio.c:2111 [inline] __se_sys_io_submit+0x171/0x2e0 fs/aio.c:2081 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7ffaf22cd289 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 1c 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:00007ffe180d8368 EFLAGS: 00000246 ORIG_RAX: 00000000000000d1 RAX: ffffffffffffffda RBX: 00007ffe180d8370 RCX: 00007ffaf22cd289 RDX: 0000200000000540 RSI: 000000000000003b RDI: 00007ffaf2276000 RBP: 0000000000000002 R08: 00007ffe180d8106 R09: 0000000000003832 R10: 0000000000000002 R11: 0000000000000246 R12: 00007ffaf231b73c R13: 0000000000000000 R14: 431bde82d7b634db R15: 00007ffe180d83f0