syzbot


WARNING in btrfs_chunk_alloc (2)

Status: upstream: reported C repro on 2023/09/25 19:35
Bug presence: origin:upstream
[Documentation on labels]
Reported-by: syzbot+35296bd1d0474bc662a2@syzkaller.appspotmail.com
First crash: 291d, last: 1d06h
Fix bisection: failed (error log, bisect log)
  
Bug presence (1)
Date Name Commit Repro Result
2024/05/20 upstream (ToT) eb6a9339efeb C [report] BUG: MAX_LOCKDEP_CHAIN_HLOCKS too low!
Similar bugs (4)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-5.15 WARNING in btrfs_chunk_alloc 6 394d 478d 0/3 auto-obsoleted due to no activity on 2023/09/22 15:34
linux-6.1 WARNING in btrfs_chunk_alloc (2) origin:lts-only C done 12 2d13h 240d 0/3 upstream: reported C repro on 2023/11/15 16:30
linux-6.1 WARNING in btrfs_chunk_alloc 1 473d 473d 0/3 auto-obsoleted due to no activity on 2023/07/26 13:54
upstream WARNING in btrfs_chunk_alloc btrfs C inconclusive done 256 7d13h 599d 0/27 upstream: reported C repro on 2022/11/22 11:56

Sample crash report:
------------[ cut here ]------------
WARNING: CPU: 0 PID: 303 at fs/btrfs/block-group.c:3494 do_chunk_alloc fs/btrfs/block-group.c:3494 [inline]
WARNING: CPU: 0 PID: 303 at fs/btrfs/block-group.c:3494 btrfs_chunk_alloc+0x8f8/0xcdc fs/btrfs/block-group.c:3717
Modules linked in:
CPU: 0 PID: 303 Comm: kworker/u4:3 Not tainted 5.15.162-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/07/2024
Workqueue: events_unbound btrfs_async_reclaim_metadata_space
pstate: 60400005 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
pc : do_chunk_alloc fs/btrfs/block-group.c:3494 [inline]
pc : btrfs_chunk_alloc+0x8f8/0xcdc fs/btrfs/block-group.c:3717
lr : do_chunk_alloc fs/btrfs/block-group.c:3494 [inline]
lr : btrfs_chunk_alloc+0x8f8/0xcdc fs/btrfs/block-group.c:3717
sp : ffff80001c926660
x29: ffff80001c9266c0 x28: ffff0000dc2aa790 x27: 0000000000000005
x26: ffffffffffffffe4 x25: ffff0000dc2aa7db x24: ffff0000dba24868
x23: 00000000ffffffe4 x22: 1fffe0001b8554fd x21: ffff0000c24e1800
x20: dfff800000000000 x19: ffff0000c1e3d000 x18: 0000000000000001
x17: 0000000000000000 x16: ffff8000119a6548 x15: 00000000ffffffff
x14: ffff0000c79951c0 x13: 0000000000000001 x12: 0000000000000001
x11: 0000000000000000 x10: 0000000000000000 x9 : 1a68774f4e9bb300
x8 : 1a68774f4e9bb300 x7 : 0000000000000001 x6 : 0000000000000001
x5 : ffff80001c925dd8 x4 : ffff800014a2f7e0 x3 : ffff8000085504d8
x2 : 0000000000000001 x1 : 0000000100000000 x0 : 0000000000000026
Call trace:
 do_chunk_alloc fs/btrfs/block-group.c:3494 [inline]
 btrfs_chunk_alloc+0x8f8/0xcdc fs/btrfs/block-group.c:3717
 find_free_extent_update_loop fs/btrfs/extent-tree.c:4039 [inline]
 find_free_extent+0x324c/0x44e8 fs/btrfs/extent-tree.c:4402
 btrfs_reserve_extent+0x1b4/0x43c fs/btrfs/extent-tree.c:4483
 cow_file_range+0x4f0/0xb74 fs/btrfs/inode.c:1181
 btrfs_run_delalloc_range+0x314/0x12cc fs/btrfs/inode.c:2018
 writepage_delalloc+0x1d4/0x434 fs/btrfs/extent_io.c:3802
 __extent_writepage+0x624/0xcbc fs/btrfs/extent_io.c:4108
 extent_write_cache_pages fs/btrfs/extent_io.c:5030 [inline]
 extent_writepages+0x9b0/0x1268 fs/btrfs/extent_io.c:5157
 btrfs_writepages+0x28/0x38 fs/btrfs/inode.c:8623
 do_writepages+0x39c/0x5ec mm/page-writeback.c:2364
 filemap_fdatawrite_wbc+0x1c8/0x228 mm/filemap.c:400
 start_delalloc_inodes+0x630/0xa30 fs/btrfs/inode.c:10119
 btrfs_start_delalloc_roots+0x5e4/0x898 fs/btrfs/inode.c:10198
 shrink_delalloc fs/btrfs/space-info.c:538 [inline]
 flush_space+0x5b0/0xc94 fs/btrfs/space-info.c:646
 btrfs_async_reclaim_metadata_space+0x6c8/0x80c fs/btrfs/space-info.c:953
 process_one_work+0x790/0x11b8 kernel/workqueue.c:2310
 worker_thread+0x910/0x1034 kernel/workqueue.c:2457
 kthread+0x37c/0x45c kernel/kthread.c:334
 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:870
irq event stamp: 403212
hardirqs last  enabled at (403211): [<ffff80000832b6a8>] __up_console_sem+0xb4/0x100 kernel/printk/printk.c:257
hardirqs last disabled at (403212): [<ffff8000119a1bd4>] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:396
softirqs last  enabled at (402662): [<ffff8000081b6520>] softirq_handle_end kernel/softirq.c:401 [inline]
softirqs last  enabled at (402662): [<ffff8000081b6520>] handle_softirqs+0xb88/0xdbc kernel/softirq.c:586
softirqs last disabled at (402649): [<ffff8000081b6bb8>] __do_softirq kernel/softirq.c:592 [inline]
softirqs last disabled at (402649): [<ffff8000081b6bb8>] do_softirq_own_stack include/asm-generic/softirq_stack.h:10 [inline]
softirqs last disabled at (402649): [<ffff8000081b6bb8>] invoke_softirq kernel/softirq.c:439 [inline]
softirqs last disabled at (402649): [<ffff8000081b6bb8>] __irq_exit_rcu+0x268/0x4d8 kernel/softirq.c:641
---[ end trace fa1a52c1934b18f5 ]---
BTRFS: error (device loop3) in do_chunk_alloc:3494: errno=-28 No space left
BTRFS info (device loop3): forced readonly

Crashes (19):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/07/12 08:30 linux-5.15.y f45bea23c39c eaeb5c15 .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan-arm64 WARNING in btrfs_chunk_alloc
2024/07/12 05:16 linux-5.15.y f45bea23c39c eaeb5c15 .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan-arm64 WARNING in btrfs_chunk_alloc
2024/05/20 04:52 linux-5.15.y 83655231580b c0f1611a .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan-arm64 WARNING in btrfs_chunk_alloc
2023/09/25 21:25 linux-5.15.y b911329317b4 0b6a67ac .config console log report syz [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan-arm64 WARNING in btrfs_chunk_alloc
2024/07/08 17:58 linux-5.15.y f45bea23c39c cde64f7d .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in btrfs_chunk_alloc
2024/07/10 04:27 linux-5.15.y f45bea23c39c bc144f9a .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 WARNING in btrfs_chunk_alloc
2024/07/10 04:26 linux-5.15.y f45bea23c39c bc144f9a .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 WARNING in btrfs_chunk_alloc
2024/07/10 04:26 linux-5.15.y f45bea23c39c bc144f9a .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 WARNING in btrfs_chunk_alloc
2024/07/09 17:15 linux-5.15.y f45bea23c39c 79d68ada .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 WARNING in btrfs_chunk_alloc
2024/07/09 03:06 linux-5.15.y f45bea23c39c bc23a442 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 WARNING in btrfs_chunk_alloc
2024/07/09 03:04 linux-5.15.y f45bea23c39c bc23a442 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 WARNING in btrfs_chunk_alloc
2024/07/09 03:04 linux-5.15.y f45bea23c39c bc23a442 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 WARNING in btrfs_chunk_alloc
2024/07/08 15:15 linux-5.15.y f45bea23c39c cde64f7d .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 WARNING in btrfs_chunk_alloc
2024/07/06 01:19 linux-5.15.y f45bea23c39c 2a40360c .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 WARNING in btrfs_chunk_alloc
2024/07/06 01:19 linux-5.15.y f45bea23c39c 2a40360c .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 WARNING in btrfs_chunk_alloc
2024/07/01 18:33 linux-5.15.y 4878aadf2d15 b294e901 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 WARNING in btrfs_chunk_alloc
2024/06/19 06:28 linux-5.15.y 4878aadf2d15 41b7e219 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 WARNING in btrfs_chunk_alloc
2024/06/19 06:28 linux-5.15.y 4878aadf2d15 41b7e219 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 WARNING in btrfs_chunk_alloc
2023/09/25 19:34 linux-5.15.y b911329317b4 0b6a67ac .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 WARNING in btrfs_chunk_alloc
* Struck through repros no longer work on HEAD.