syzbot


WARNING in btrfs_run_delayed_refs

Status: upstream: reported on 2025/01/03 14:46
Reported-by: syzbot+f5d81471b60d6930ec20@syzkaller.appspotmail.com
First crash: 26d, last: 26d
Similar bugs (5)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.19 WARNING in btrfs_run_delayed_refs btrfs C error 9 700d 1080d 0/1 upstream: reported C repro on 2022/02/14 22:12
upstream WARNING in btrfs_run_delayed_refs (2) btrfs C done 29 1d00h 587d 0/28 upstream: reported C repro on 2023/06/22 14:13
upstream WARNING in btrfs_run_delayed_refs btrfs C error done 15 722d 836d 22/28 fixed on 2023/03/15 11:57
linux-4.14 WARNING in btrfs_run_delayed_refs btrfs C 1 721d 721d 0/1 upstream: reported C repro on 2023/02/08 10:50
linux-5.15 WARNING in btrfs_run_delayed_refs origin:lts-only C error 17 6d22h 668d 0/3 upstream: reported C repro on 2023/04/02 18:59

Sample crash report:
BTRFS error (device loop4): failed to run delayed ref for logical 5324800 num_bytes 4096 type 176 action 1 ref_mod 1: -28
------------[ cut here ]------------
WARNING: CPU: 1 PID: 177 at fs/btrfs/extent-tree.c:2150 btrfs_run_delayed_refs+0x45c/0x4c0 fs/btrfs/extent-tree.c:2150
Modules linked in:
CPU: 1 PID: 177 Comm: kworker/u4:3 Not tainted 6.1.123-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024
Workqueue: events_unbound btrfs_async_reclaim_metadata_space
pstate: 60400005 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
pc : btrfs_run_delayed_refs+0x45c/0x4c0 fs/btrfs/extent-tree.c:2150
lr : btrfs_run_delayed_refs+0x45c/0x4c0 fs/btrfs/extent-tree.c:2150
sp : ffff8000211e78f0
x29: ffff8000211e7900 x28: 0000000000000003 x27: 00000000001f0000
x26: 00000000ffffffe4 x25: ffff0000ca32f000 x24: 1fffe0001e98c4b2
x23: ffff0000f4c62590 x22: 000000000000001f x21: 0000000000000000
x20: 0000000000000000 x19: ffff0000f4c62540 x18: ffff8000211e6ce0
x17: 0000000000000000 x16: ffff80001232d384 x15: 0000000000000000
x14: 00000000ffffffff x13: 0000000000000001 x12: 0000000000000001
x11: 0000000000ff0100 x10: 0000000000000000 x9 : bf910c1a4b00a500
x8 : bf910c1a4b00a500 x7 : 0000000000000001 x6 : 0000000000000001
x5 : ffff8000211e71d8 x4 : ffff800015b731c0 x3 : ffff8000085869b0
x2 : 0000000000000001 x1 : 0000000100000000 x0 : 0000000000000000
Call trace:
 btrfs_run_delayed_refs+0x45c/0x4c0 fs/btrfs/extent-tree.c:2150
 flush_space+0x854/0xdb8 fs/btrfs/space-info.c:744
 btrfs_async_reclaim_metadata_space+0x260/0x30c fs/btrfs/space-info.c:1080
 process_one_work+0x7ac/0x1404 kernel/workqueue.c:2292
 process_scheduled_works kernel/workqueue.c:2355 [inline]
 worker_thread+0xb6c/0xfec kernel/workqueue.c:2441
 kthread+0x250/0x2d8 kernel/kthread.c:376
 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:864
irq event stamp: 1371818
hardirqs last  enabled at (1371817): [<ffff80000833f25c>] __up_console_sem+0xb4/0x100 kernel/printk/printk.c:261
hardirqs last disabled at (1371818): [<ffff800012329064>] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:405
softirqs last  enabled at (1370988): [<ffff8000081c3414>] softirq_handle_end kernel/softirq.c:414 [inline]
softirqs last  enabled at (1370988): [<ffff8000081c3414>] handle_softirqs+0xb84/0xd58 kernel/softirq.c:599
softirqs last disabled at (1370979): [<ffff800008020174>] __do_softirq+0x14/0x20 kernel/softirq.c:605
---[ end trace 0000000000000000 ]---
BTRFS info (device loop4: state A): dumping space info:
BTRFS info (device loop4: state A): space_info DATA+METADATA has 2232320 free, is full
BTRFS info (device loop4: state A): space_info total=3276800, used=45056, pinned=16384, reserved=0, may_use=983040, readonly=0 zone_unusable=0
BTRFS info (device loop4: state A): space_info SYSTEM has 12447744 free, is not full
BTRFS info (device loop4: state A): space_info total=12451840, used=4096, pinned=0, reserved=0, may_use=0, readonly=0 zone_unusable=0
BTRFS info (device loop4: state A): global_block_rsv: size 983040 reserved 983040
BTRFS info (device loop4: state A): trans_block_rsv: size 0 reserved 0
BTRFS info (device loop4: state A): chunk_block_rsv: size 0 reserved 0
BTRFS info (device loop4: state A): delayed_block_rsv: size 0 reserved 0
BTRFS info (device loop4: state A): delayed_refs_rsv: size 0 reserved 0
BTRFS: error (device loop4: state A) in btrfs_run_delayed_refs:2150: errno=-28 No space left
BTRFS info (device loop4: state EA): forced readonly

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/01/03 14:46 linux-6.1.y 7dc732d24ff7 d3ccff63 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in btrfs_run_delayed_refs
* Struck through repros no longer work on HEAD.