syzbot


WARNING in add_to_free_space_tree (2)

Status: upstream: reported on 2025/03/21 01:37
Subsystems: btrfs
[Documentation on labels]
Reported-by: syzbot+a6563a38d2eeb6e42942@syzkaller.appspotmail.com
First crash: 8d20h, last: 8d20h
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [btrfs?] WARNING in add_to_free_space_tree (2) 0 (1) 2025/03/21 01:37
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream WARNING in add_to_free_space_tree btrfs 2 783d 828d 0/28 auto-obsoleted due to no activity on 2023/06/01 05:26

Sample crash report:
------------[ cut here ]------------
BTRFS: Transaction aborted (error -28)
WARNING: CPU: 1 PID: 3016 at fs/btrfs/free-space-tree.c:1052 add_to_free_space_tree+0x2e7/0x320 fs/btrfs/free-space-tree.c:1052
Modules linked in:
CPU: 1 UID: 0 PID: 3016 Comm: kworker/u8:7 Not tainted 6.14.0-rc6-syzkaller-00263-gd1275e99d1c4 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025
Workqueue: events_unbound btrfs_async_reclaim_metadata_space
RIP: 0010:add_to_free_space_tree+0x2e7/0x320 fs/btrfs/free-space-tree.c:1052
Code: 4e 6e 8c 48 89 dd 89 ea e8 16 02 1f fd e9 33 ff ff ff e8 dc 2b b9 fd 90 48 c7 c7 00 4e 6e 8c 48 89 dd 89 ee e8 2a e7 78 fd 90 <0f> 0b 90 90 e9 12 ff ff ff e8 bb 2b b9 fd 48 c7 c7 80 4d 6e 8c 48
RSP: 0018:ffffc9000c5b6e50 EFLAGS: 00010246
RAX: 98d2a73c3254fc00 RBX: 00000000ffffffe4 RCX: ffff8880309dbc00
RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000000
RBP: 00000000ffffffe4 R08: ffffffff81819d62 R09: fffffbfff1d3a69c
R10: dffffc0000000000 R11: fffffbfff1d3a69c R12: 0000000000000000
R13: ffff88805a6c3060 R14: 1ffff1100b4d860c R15: ffff88805a6c3000
FS:  0000000000000000(0000) GS:ffff8880b8700000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055bdbb5c3ff0 CR3: 0000000061b4c000 CR4: 00000000003526f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 do_free_extent_accounting fs/btrfs/extent-tree.c:2969 [inline]
 __btrfs_free_extent+0x1ce9/0x3980 fs/btrfs/extent-tree.c:3338
 btrfs_run_delayed_refs_for_head fs/btrfs/extent-tree.c:1976 [inline]
 __btrfs_run_delayed_refs+0xf9f/0x40f0 fs/btrfs/extent-tree.c:2046
 btrfs_run_delayed_refs+0xe3/0x2f0 fs/btrfs/extent-tree.c:2158
 commit_cowonly_roots+0x66b/0x860 fs/btrfs/transaction.c:1373
 btrfs_commit_transaction+0xfe4/0x3760 fs/btrfs/transaction.c:2446
 flush_space+0x529/0xd30 fs/btrfs/space-info.c:842
 btrfs_async_reclaim_metadata_space+0x178/0x3b0 fs/btrfs/space-info.c:1120
 process_one_work kernel/workqueue.c:3238 [inline]
 process_scheduled_works+0xabe/0x18e0 kernel/workqueue.c:3319
 worker_thread+0x870/0xd30 kernel/workqueue.c:3400
 kthread+0x7a9/0x920 kernel/kthread.c:464
 ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:148
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244
 </TASK>

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/03/17 01:34 upstream d1275e99d1c4 e2826670 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in add_to_free_space_tree
* Struck through repros no longer work on HEAD.