syzbot


WARNING in btrfs_finish_ordered_io

Status: upstream: reported syz repro on 2025/04/30 12:49
Bug presence: origin:upstream
[Documentation on labels]
Reported-by: syzbot+75afdb8e125baa22ab9e@syzkaller.appspotmail.com
First crash: 9d14h, last: 9d08h
Bug presence (1)
Date Name Commit Repro Result
2025/05/02 upstream (ToT) 00b827f0cffa C [report] BUG: MAX_LOCKDEP_CHAIN_HLOCKS too low!
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream WARNING in btrfs_finish_ordered_io btrfs C error inconclusive 6 425d 862d 0/28 upstream: reported C repro on 2022/12/29 11:49
linux-6.1 WARNING in btrfs_finish_ordered_io 1 748d 748d 0/3 auto-obsoleted due to no activity on 2023/08/20 13:44

Sample crash report:
------------[ cut here ]------------
WARNING: CPU: 0 PID: 4905 at fs/btrfs/inode.c:3151 btrfs_finish_ordered_io+0x1254/0x1504 fs/btrfs/inode.c:3151
Modules linked in:
CPU: 0 PID: 4905 Comm: kworker/u4:9 Not tainted 5.15.180-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/19/2025
Workqueue: btrfs-endio-write btrfs_work_helper
pstate: 60400005 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
pc : btrfs_finish_ordered_io+0x1254/0x1504 fs/btrfs/inode.c:3151
lr : btrfs_finish_ordered_io+0x1254/0x1504 fs/btrfs/inode.c:3151
sp : ffff800021517880
x29: ffff800021517a20 x28: ffff0000dd59f478 x27: 1fffe0001bab3e8f
x26: 0000000000000000 x25: 00000000ffffffe4 x24: dfff800000000000
x23: ffff0000da283168 x22: ffff0000da2831a0 x21: ffff0000e5ae93a0
x20: 1fffe0001b450634 x19: ffff0000dd59f420 x18: 0000000000000001
x17: 0000000000000000 x16: ffff80001119ef40 x15: 00000000ffffffff
x14: 0000000000ff0100 x13: fffffffffffeadf0 x12: 0000000000ff0100
x11: 0000000000000000 x10: 0000000000000000 x9 : efd94a752b595200
x8 : efd94a752b595200 x7 : fffffffffffeadf0 x6 : fffffffffffeadb0
x5 : ffff800021517178 x4 : ffff80001420da40 x3 : ffff800008503f9c
x2 : 0000000000000001 x1 : 0000000100000000 x0 : 0000000000000026
Call trace:
 btrfs_finish_ordered_io+0x1254/0x1504 fs/btrfs/inode.c:3151
 finish_ordered_fn+0x20/0x30 fs/btrfs/inode.c:3257
 btrfs_work_helper+0x328/0x13a0 fs/btrfs/async-thread.c:325
 process_one_work+0x79c/0x1140 kernel/workqueue.c:2310
 worker_thread+0x8f4/0x101c kernel/workqueue.c:2457
 kthread+0x374/0x454 kernel/kthread.c:334
 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:870
irq event stamp: 6087852
hardirqs last  enabled at (6087851): [<ffff8000082f7dc0>] __up_console_sem+0xb4/0x100 kernel/printk/printk.c:257
hardirqs last disabled at (6087852): [<ffff80001119a800>] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:396
softirqs last  enabled at (6087644): [<ffff80000819d8d8>] softirq_handle_end kernel/softirq.c:401 [inline]
softirqs last  enabled at (6087644): [<ffff80000819d8d8>] handle_softirqs+0xa4c/0xbf0 kernel/softirq.c:586
softirqs last disabled at (6087591): [<ffff80000819dedc>] __do_softirq kernel/softirq.c:592 [inline]
softirqs last disabled at (6087591): [<ffff80000819dedc>] do_softirq_own_stack include/asm-generic/softirq_stack.h:10 [inline]
softirqs last disabled at (6087591): [<ffff80000819dedc>] invoke_softirq kernel/softirq.c:439 [inline]
softirqs last disabled at (6087591): [<ffff80000819dedc>] __irq_exit_rcu+0x240/0x440 kernel/softirq.c:641
---[ end trace df6382f8b492703d ]---
BTRFS: error (device loop0) in btrfs_finish_ordered_io:3151: errno=-28 No space left
BTRFS info (device loop0): forced readonly

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/04/30 18:00 linux-5.15.y f7347f400572 85a5a23f .config console log report syz / log [disk image] [vmlinux] [kernel image] [mounted in repro #1 (clean fs)] [mounted in repro #2 (corrupt fs)] [mounted in repro #3] ci2-linux-5-15-kasan-arm64 WARNING in btrfs_finish_ordered_io
2025/04/30 12:49 linux-5.15.y f7347f400572 85a5a23f .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 WARNING in btrfs_finish_ordered_io
* Struck through repros no longer work on HEAD.