syzbot


WARNING in btrfs_chunk_alloc (2)

Status: upstream: reported C repro on 2023/11/15 16:30
Bug presence: origin:lts-only
[Documentation on labels]
Reported-by: syzbot+57de2b05959bc1e659af@syzkaller.appspotmail.com
First crash: 359d, last: 4d00h
Fix commit to backport (bisect log) :
tree: upstream
commit f8f210dc84709804c9f952297f2bfafa6ea6b4bd
Author: Filipe Manana <fdmanana@suse.com>
Date: Tue Mar 21 11:13:59 2023 +0000

  btrfs: calculate the right space for delayed refs when updating global reserve

[report pending]
  
Bug presence (2)
Date Name Commit Repro Result
2023/11/16 linux-6.1.y (ToT) fb2635ac69ab C [report] WARNING in btrfs_chunk_alloc
2023/11/15 upstream (ToT) c42d9eeef8e5 C Didn't crash
Similar bugs (4)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-5.15 WARNING in btrfs_chunk_alloc 6 513d 596d 0/3 auto-obsoleted due to no activity on 2023/09/22 15:34
linux-6.1 WARNING in btrfs_chunk_alloc 1 591d 591d 0/3 auto-obsoleted due to no activity on 2023/07/26 13:54
upstream WARNING in btrfs_chunk_alloc btrfs C inconclusive done 286 22h45m 717d 0/28 upstream: reported C repro on 2022/11/22 11:56
linux-5.15 WARNING in btrfs_chunk_alloc (2) origin:upstream C error 23 25m 410d 0/3 upstream: reported C repro on 2023/09/25 19:35
Fix bisection attempts (1)
Created Duration User Patch Repo Result
2023/12/07 14:41 7h11m fix candidate upstream OK (1) job log

Sample crash report:
------------[ cut here ]------------
WARNING: CPU: 1 PID: 3604 at fs/btrfs/block-group.c:3621 do_chunk_alloc fs/btrfs/block-group.c:3621 [inline]
WARNING: CPU: 1 PID: 3604 at fs/btrfs/block-group.c:3621 btrfs_chunk_alloc+0xe47/0xff0 fs/btrfs/block-group.c:3863
Modules linked in:
CPU: 1 PID: 3604 Comm: kworker/u4:4 Not tainted 6.1.62-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/10/2023
Workqueue: events_unbound btrfs_async_reclaim_metadata_space
RIP: 0010:do_chunk_alloc fs/btrfs/block-group.c:3621 [inline]
RIP: 0010:btrfs_chunk_alloc+0xe47/0xff0 fs/btrfs/block-group.c:3863
Code: fd 48 c7 c7 40 b4 2f 8b 44 89 e6 e8 83 b4 a5 fd 0f 0b e9 02 fe ff ff e8 c7 c7 dd fd 48 c7 c7 40 b4 2f 8b 89 ee e8 69 b4 a5 fd <0f> 0b e9 0d fe ff ff e8 ad c7 dd fd 48 c7 c7 40 b4 2f 8b 44 89 e6
RSP: 0018:ffffc90003eaf9c8 EFLAGS: 00010246
RAX: 50fd748f32610700 RBX: ffff8880231c4001 RCX: ffff888020045940
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffffffffffffffe4 R08: ffffffff81527dae R09: ffffed1017324f1c
R10: 0000000000000000 R11: dffffc0000000001 R12: ffff8880769f5800
R13: dffffc0000000000 R14: ffff88807d193000 R15: 0000000000000000
FS:  0000000000000000(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020261000 CR3: 000000001bc5b000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 flush_space+0xa03/0xe60 fs/btrfs/space-info.c:766
 btrfs_async_reclaim_metadata_space+0x29b/0x340 fs/btrfs/space-info.c:1080
 process_one_work+0x8a9/0x11d0 kernel/workqueue.c:2292
 worker_thread+0xa47/0x1200 kernel/workqueue.c:2439
 kthread+0x28d/0x320 kernel/kthread.c:376
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:306
 </TASK>

Crashes (15):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/11/15 22:38 linux-6.1.y fb2635ac69ab cb976f63 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-6-1-kasan WARNING in btrfs_chunk_alloc
2024/03/23 20:10 linux-6.1.y d7543167affd 0ea90952 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-6-1-kasan-arm64 WARNING in btrfs_chunk_alloc
2024/02/25 19:03 linux-6.1.y 81e1dc2f7001 8d446f15 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-6-1-kasan-arm64 WARNING in btrfs_chunk_alloc
2024/10/31 21:14 linux-6.1.y 7ec6f9fa3d97 96eb609f .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan WARNING in btrfs_chunk_alloc
2024/07/06 14:36 linux-6.1.y 7753af06eebf 2a40360c .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan WARNING in btrfs_chunk_alloc
2023/11/15 16:29 linux-6.1.y fb2635ac69ab cb976f63 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan WARNING in btrfs_chunk_alloc
2024/11/04 22:03 linux-6.1.y 7c15117f9468 509da429 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in btrfs_chunk_alloc
2024/07/16 23:20 linux-6.1.y cac15753b8ce b66b37bd .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in btrfs_chunk_alloc
2024/07/11 01:29 linux-6.1.y 7753af06eebf 6f7fa383 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in btrfs_chunk_alloc
2024/07/06 10:41 linux-6.1.y 7753af06eebf 2a40360c .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in btrfs_chunk_alloc
2023/12/11 15:16 linux-6.1.y e7cddbb41b63 28b24332 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in btrfs_chunk_alloc
2023/12/07 12:47 linux-6.1.y c6114c845984 0a02ce36 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in btrfs_chunk_alloc
2023/12/01 14:45 linux-6.1.y 6ac30d748bb0 f819d6f7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in btrfs_chunk_alloc
2023/11/28 07:04 linux-6.1.y 69e434a1cb21 9fe51b7c .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in btrfs_chunk_alloc
2023/11/23 19:09 linux-6.1.y 69e434a1cb21 5b429f39 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in btrfs_chunk_alloc
* Struck through repros no longer work on HEAD.