syzbot


WARNING in tree_insert_offset

Status: upstream: reported on 2024/11/02 14:36
Subsystems: btrfs
[Documentation on labels]
Reported-by: syzbot+b7baad46fdef9a0008ce@syzkaller.appspotmail.com
First crash: 22d, last: 2d14h
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [btrfs?] WARNING in tree_insert_offset 0 (1) 2024/11/02 14:36
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.19 WARNING in tree_insert_offset btrfs C error 6 629d 713d 0/1 upstream: reported C repro on 2022/12/08 15:35

Sample crash report:
------------[ cut here ]------------
WARNING: CPU: 0 PID: 2998 at fs/btrfs/free-space-cache.c:1638 tree_insert_offset+0x2c9/0x350 fs/btrfs/free-space-cache.c:1638
Modules linked in:
CPU: 0 UID: 0 PID: 2998 Comm: kworker/u4:10 Not tainted 6.12.0-syzkaller #0
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014
Workqueue: btrfs-cache btrfs_work_helper
RIP: 0010:tree_insert_offset+0x2c9/0x350 fs/btrfs/free-space-cache.c:1638
Code: e8 48 83 c4 18 5b 41 5c 41 5d 41 5e 41 5f 5d c3 cc cc cc cc e8 88 12 cb fd 90 0f 0b 90 bd ef ff ff ff eb db e8 78 12 cb fd 90 <0f> 0b 90 bd ef ff ff ff eb cb e8 68 12 cb fd 90 0f 0b 90 4d 85 ed
RSP: 0018:ffffc9000d99f378 EFLAGS: 00010293
RAX: ffffffff83c9d798 RBX: ffff88804ff60390 RCX: ffff8880401c8000
RDX: 0000000000000000 RSI: 0000000000d00000 RDI: 0000000000d00000
RBP: ffff88804ff60c18 R08: ffffffff83c9d664 R09: fffff52001b33e78
R10: dffffc0000000000 R11: ffffffff83c9d830 R12: ffff88804ff60348
R13: 0000000000d00000 R14: dffffc0000000000 R15: 0000000000000000
FS:  0000000000000000(0000) GS:ffff88801fc00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020048000 CR3: 0000000042ed2000 CR4: 0000000000352ef0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 link_free_space+0xef/0x5d0 fs/btrfs/free-space-cache.c:1844
 __btrfs_add_free_space+0x33c/0xb70 fs/btrfs/free-space-cache.c:2672
 btrfs_add_new_free_space+0x300/0x360 fs/btrfs/block-group.c:554
 load_free_space_extents fs/btrfs/free-space-tree.c:1608 [inline]
 load_free_space_tree+0x704/0x1270 fs/btrfs/free-space-tree.c:1674
 caching_thread+0xe23/0x1fa0 fs/btrfs/block-group.c:885
 btrfs_work_helper+0x390/0xc50 fs/btrfs/async-thread.c:314
 process_one_work kernel/workqueue.c:3229 [inline]
 process_scheduled_works+0xa63/0x1850 kernel/workqueue.c:3310
 worker_thread+0x870/0xd30 kernel/workqueue.c:3391
 kthread+0x2f0/0x390 kernel/kthread.c:389
 ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:147
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244
 </TASK>

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/11/18 15:26 upstream adc218676eef e7bb5d6e .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root WARNING in tree_insert_offset
2024/11/10 05:56 upstream de2f378f2b77 6b856513 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root WARNING in tree_insert_offset
2024/10/29 14:25 upstream e42b1a9a2557 66aeb999 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root WARNING in tree_insert_offset
* Struck through repros no longer work on HEAD.