syzbot


WARNING in btrfs_free_reserved_data_space_noquota (3)

Status: upstream: reported C repro on 2024/10/22 14:15
Subsystems: btrfs
[Documentation on labels]
Reported-by: syzbot+9064acebb06685edb243@syzkaller.appspotmail.com
First crash: 47d, last: 1d12h
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [btrfs?] WARNING in btrfs_free_reserved_data_space_noquota (3) 0 (2) 2024/10/26 05:29
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream WARNING in btrfs_free_reserved_data_space_noquota btrfs C done done 7 324d 737d 25/28 fixed on 2024/05/19 05:34
upstream WARNING in btrfs_free_reserved_data_space_noquota (2) btrfs 1 168d 164d 0/28 auto-obsoleted due to no activity on 2024/09/27 21:32
Last patch testing requests (1)
Created Duration User Patch Repo Result
2024/11/23 16:48 13m retest repro upstream report log

Sample crash report:
R10: 0000000000000000 R11: 0000000000000246 R12: 00007faed37be5ad
R13: 0000000000000048 R14: 0000000000050012 R15: 0000000000000003
 </TASK>
------------[ cut here ]------------
WARNING: CPU: 0 PID: 5313 at fs/btrfs/space-info.h:250 btrfs_space_info_update_bytes_may_use fs/btrfs/space-info.h:250 [inline]
WARNING: CPU: 0 PID: 5313 at fs/btrfs/space-info.h:250 btrfs_space_info_free_bytes_may_use fs/btrfs/space-info.h:283 [inline]
WARNING: CPU: 0 PID: 5313 at fs/btrfs/space-info.h:250 btrfs_free_reserved_data_space_noquota+0x287/0x4f0 fs/btrfs/delalloc-space.c:179
Modules linked in:
CPU: 0 UID: 0 PID: 5313 Comm: syz-executor192 Not tainted 6.12.0-rc4-syzkaller-00256-gc71f8fb4dc91 #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:250 [inline]
RIP: 0010:btrfs_space_info_free_bytes_may_use fs/btrfs/space-info.h:283 [inline]
RIP: 0010:btrfs_free_reserved_data_space_noquota+0x287/0x4f0 fs/btrfs/delalloc-space.c:179
Code: 00 74 08 4c 89 e7 e8 d8 d8 23 fe 4d 8b 2c 24 4c 89 ef 48 8b 5c 24 20 48 89 de e8 54 1d ba fd 49 39 dd 73 19 e8 ea 1a ba fd 90 <0f> 0b 90 31 db 4c 8b 6c 24 10 41 80 3c 2f 00 75 2b eb 31 e8 d1 1a
RSP: 0018:ffffc9000cf87200 EFLAGS: 00010293
RAX: ffffffff83dacf86 RBX: 0000000000800000 RCX: ffff88801f67c880
RDX: 0000000000000000 RSI: 0000000000800000 RDI: 000000000064d000
RBP: dffffc0000000000 R08: ffffffff83dacf7c R09: 1ffffffff203a055
R10: dffffc0000000000 R11: fffffbfff203a056 R12: ffff888039a35868
R13: 000000000064d000 R14: ffff888043280000 R15: 1ffff11007346b0d
FS:  0000555570aa2480(0000) GS:ffff88801fc00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000564b95a54fa0 CR3: 0000000042d7c000 CR4: 0000000000352ef0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 btrfs_free_reserved_data_space+0xa2/0xe0 fs/btrfs/delalloc-space.c:199
 btrfs_dio_iomap_begin+0x7c6/0x1180 fs/btrfs/direct-io.c:598
 iomap_iter+0x691/0xf60 fs/iomap/iter.c:91
 __iomap_dio_rw+0xdea/0x2370 fs/iomap/direct-io.c:677
 btrfs_dio_write fs/btrfs/direct-io.c:775 [inline]
 btrfs_direct_write+0x61b/0xa70 fs/btrfs/direct-io.c:880
 btrfs_do_write_iter+0x2a0/0x760 fs/btrfs/file.c:1505
 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+0x179/0x2f0 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:0x7faed37710f9
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 51 1f 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:00007ffec7fd94e8 EFLAGS: 00000246 ORIG_RAX: 00000000000000d1
RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 00007faed37710f9
RDX: 0000000020000540 RSI: 000000000000003b RDI: 00007faed3712000
RBP: 0000000000000002 R08: 00007ffec7fd9286 R09: 00007faed3003632
R10: 0000000000000000 R11: 0000000000000246 R12: 00007faed37be5ad
R13: 0000000000000048 R14: 0000000000050012 R15: 0000000000000003
 </TASK>

Crashes (7):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/10/26 05:29 upstream c71f8fb4dc91 65e8686b .config console log report syz / log C [disk image (non-bootable)] [vmlinux] [kernel image] [mounted in repro] ci-snapshot-upstream-root WARNING in btrfs_free_reserved_data_space_noquota
2024/12/04 00:19 upstream ceb8bf2ceaa7 b50eb251 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root WARNING in btrfs_free_reserved_data_space_noquota
2024/12/01 01:50 upstream d8b78066f4c9 68914665 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root WARNING in btrfs_free_reserved_data_space_noquota
2024/11/09 16:46 upstream da4373fbcf00 6b856513 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root WARNING in btrfs_free_reserved_data_space_noquota
2024/11/08 15:39 upstream 906bd684e4b1 d40c056e .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root WARNING in btrfs_free_reserved_data_space_noquota
2024/10/26 05:02 upstream c71f8fb4dc91 65e8686b .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root WARNING in btrfs_free_reserved_data_space_noquota
2024/10/18 14:11 upstream 4d939780b705 0270e729 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root WARNING in btrfs_free_reserved_data_space_noquota
* Struck through repros no longer work on HEAD.