syzbot


WARNING in btrfs_chunk_alloc

Status: upstream: reported C repro on 2022/11/22 11:56
Subsystems: btrfs
[Documentation on labels]
Reported-by: syzbot+e8e56d5d31d38b5b47e7@syzkaller.appspotmail.com
First crash: 991d, last: 3d00h
Cause bisection: the issue happens on the oldest tested release (bisect log)
Crash: WARNING in btrfs_create_pending_block_groups (log)
Repro: C syz .config
  
Fix bisection: fixed by (bisect log) :
commit a1912f712188291f9d7d434fba155461f1ebef66
Author: Josef Bacik <josef@toxicpanda.com>
Date: Wed Nov 22 17:17:55 2023 +0000

  btrfs: remove code for inode_cache and recovery mount options

  
Discussions (25)
Title Replies (including bot) Last reply
[syzbot] Monthly btrfs report (Jul 2025) 0 (1) 2025/07/25 12:39
[syzbot] Monthly btrfs report (Jun 2025) 0 (1) 2025/06/24 07:33
[syzbot] Monthly btrfs report (May 2025) 0 (1) 2025/05/24 10:05
[syzbot] Monthly btrfs report (Apr 2025) 0 (1) 2025/04/23 07:50
[syzbot] Monthly btrfs report (Mar 2025) 0 (1) 2025/03/22 18:47
[syzbot] Monthly btrfs report (Feb 2025) 0 (1) 2025/02/19 12:35
[syzbot] Monthly btrfs report (Jan 2025) 0 (1) 2025/01/20 08:14
[syzbot] Monthly btrfs report (Dec 2024) 0 (1) 2024/12/19 18:39
[syzbot] Monthly btrfs report (Nov 2024) 0 (1) 2024/11/18 10:39
[syzbot] Monthly btrfs report (Oct 2024) 0 (1) 2024/10/17 07:41
[syzbot] Monthly btrfs report (Sep 2024) 0 (1) 2024/09/16 12:27
[syzbot] Monthly btrfs report (Aug 2024) 0 (1) 2024/08/16 09:47
[syzbot] Monthly btrfs report (Jul 2024) 0 (1) 2024/07/15 14:03
[syzbot] Monthly btrfs report (Jun 2024) 0 (1) 2024/06/14 08:14
[syzbot] WARNING in btrfs_chunk_alloc 2 (4) 2024/04/20 11:05
[syzbot] Monthly btrfs report (Feb 2024) 2 (3) 2024/02/12 12:15
[syzbot] Monthly btrfs report (Jan 2024) 0 (1) 2024/01/10 09:16
[syzbot] Monthly btrfs report (Dec 2023) 0 (1) 2023/12/06 10:05
[syzbot] Monthly btrfs report (Nov 2023) 0 (1) 2023/11/05 13:07
[syzbot] Monthly btrfs report (Aug 2023) 0 (1) 2023/08/30 09:53
[syzbot] Monthly btrfs report (Jul 2023) 0 (1) 2023/07/30 13:15
[syzbot] Monthly btrfs report (Jun 2023) 0 (1) 2023/06/29 10:14
[syzbot] Monthly btrfs report (May 2023) 0 (1) 2023/05/30 08:21
[syzbot] Monthly btrfs report (Apr 2023) 0 (1) 2023/04/27 10:13
[syzbot] [btrfs] Monthly Report 1 (2) 2023/03/27 13:42
Similar bugs (5)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-5.15 WARNING in btrfs_chunk_alloc -1 6 786d 870d 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 -1 C done 51 6d10h 632d 0/3 upstream: reported C repro on 2023/11/15 16:30
linux-6.1 WARNING in btrfs_chunk_alloc -1 1 864d 864d 0/3 auto-obsoleted due to no activity on 2023/07/26 13:54
linux-6.6 WARNING in btrfs_chunk_alloc -1 1 39d 39d 0/2 upstream: reported on 2025/07/01 03:44
linux-5.15 WARNING in btrfs_chunk_alloc (2) origin:lts-only -1 C 46 7d07h 683d 0/3 upstream: reported C repro on 2023/09/25 19:35
Last patch testing requests (10)
Created Duration User Patch Repo Result
2024/09/12 07:41 21m retest repro git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci report log
2024/08/10 18:45 1h04m retest repro upstream report log
2024/07/04 06:58 21m retest repro git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci report log
2024/07/04 04:47 23m retest repro upstream OK log
2024/05/26 14:54 16m retest repro upstream report log
2024/04/17 09:08 21m retest repro upstream error
2024/03/17 17:47 19m retest repro git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci report log
2024/03/17 13:43 20m retest repro upstream error
2024/03/17 13:43 18m retest repro upstream error
2024/01/26 17:45 39m retest repro upstream OK log

Sample crash report:
BTRFS: Transaction aborted (error -28)
WARNING: CPU: 1 PID: 82 at fs/btrfs/block-group.c:3972 do_chunk_alloc fs/btrfs/block-group.c:3972 [inline]
WARNING: CPU: 1 PID: 82 at fs/btrfs/block-group.c:3972 btrfs_chunk_alloc+0xf70/0x10d0 fs/btrfs/block-group.c:4214
Modules linked in:
CPU: 1 UID: 0 PID: 82 Comm: kworker/u8:5 Not tainted 6.14.0-syzkaller-13546-g16cd1c265776 #0 PREEMPT(full) 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025
Workqueue: events_unbound btrfs_async_reclaim_metadata_space
RIP: 0010:do_chunk_alloc fs/btrfs/block-group.c:3972 [inline]
RIP: 0010:btrfs_chunk_alloc+0xf70/0x10d0 fs/btrfs/block-group.c:4214
Code: 04 24 48 8b 38 48 c7 c6 a0 39 8f 8c 89 da e8 17 11 0f fd eb 19 e8 50 9c aa fd 90 48 c7 c7 40 39 8f 8c 89 de e8 91 be 69 fd 90 <0f> 0b 90 90 49 bd 00 00 00 00 00 fc ff df 4c 8b 74 24 08 4c 8b 64
RSP: 0018:ffffc900015a7888 EFLAGS: 00010246
RAX: e0625bbf3e3b7000 RBX: ffffffffffffffe4 RCX: ffff88801d721e00
RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000000
RBP: 0000000000000000 R08: ffffffff81827a12 R09: fffffbfff1d7a978
R10: dffffc0000000000 R11: fffffbfff1d7a978 R12: ffff888070477ac3
R13: dffffc0000000000 R14: ffff8880344e0001 R15: ffff88806316d000
FS:  0000000000000000(0000) GS:ffff888125096000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fc83632b000 CR3: 000000007741e000 CR4: 0000000000350ef0
Call Trace:
 <TASK>
 flush_space+0x32e/0xd30 fs/btrfs/space-info.c:815
 btrfs_async_reclaim_metadata_space+0x178/0x3b0 fs/btrfs/space-info.c:1120
 process_one_work kernel/workqueue.c:3238 [inline]
 process_scheduled_works+0xac5/0x18e0 kernel/workqueue.c:3319
 worker_thread+0x870/0xd50 kernel/workqueue.c:3400
 kthread+0x7b9/0x940 kernel/kthread.c:464
 ret_from_fork+0x4d/0x80 arch/x86/kernel/process.c:153
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245
 </TASK>

Crashes (597):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/04/07 02:14 upstream 16cd1c265776 1c65791e .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro (clean fs)] ci-upstream-kasan-gce-root WARNING in btrfs_chunk_alloc
2023/06/24 23:09 upstream a92b7d26c743 79782afc .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-upstream-fs WARNING in btrfs_chunk_alloc
2025/07/16 14:35 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci ec4801305969 c118d736 .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro (clean fs)] ci-upstream-gce-arm64 WARNING in btrfs_chunk_alloc
2023/11/03 18:03 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 8de1e7afcc1c c4ac074c .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-gce-arm64 WARNING in btrfs_chunk_alloc
2024/12/27 05:56 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 573067a5a685 d3ccff63 .config console log report syz / log [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-gce-arm64 WARNING in btrfs_chunk_alloc
2024/01/10 01:13 upstream 6c1dd1fe5d8a b438bd66 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-kasan-gce-root WARNING in btrfs_chunk_alloc
2023/11/11 08:44 upstream ac347a0655db 6d6dbf8a .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-kasan-gce-smack-root WARNING in btrfs_chunk_alloc
2023/10/07 08:10 upstream 82714078aee4 5e837c76 .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-upstream-fs WARNING in btrfs_chunk_alloc
2023/06/21 08:00 upstream 99ec1ed7c2ed 09ffe269 .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-kasan-gce-selinux-root WARNING in btrfs_chunk_alloc
2023/03/30 12:15 upstream ffe78bbd5121 f325deb0 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-kasan-gce-root WARNING in btrfs_chunk_alloc
2023/01/17 21:03 upstream 6e50979a9c87 42660d9e .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-upstream-fs WARNING in btrfs_chunk_alloc
2022/12/20 03:20 upstream 2f26e424552e c52b2efb .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-kasan-gce-root WARNING in btrfs_chunk_alloc
2022/11/22 11:45 upstream eb7081409f94 1c576c23 .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-kasan-gce-selinux-root WARNING in btrfs_chunk_alloc
2023/01/08 11:43 linux-next cc3c08b41a9c 1dac8c7a .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-linux-next-kasan-gce-root WARNING in btrfs_chunk_alloc
2022/12/14 22:13 upstream e2ca6ba6ba01 b18f0a64 .config console log report syz [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-upstream-fs WARNING in btrfs_chunk_alloc
2025/08/05 15:43 upstream 7e161a991ea7 37880f40 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in btrfs_chunk_alloc
2025/08/05 00:58 upstream d632ab86aff2 f5bcc8dc .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in btrfs_chunk_alloc
2025/07/30 11:03 upstream 4b290aae788e f8f2b4da .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root WARNING in btrfs_chunk_alloc
2025/07/30 06:16 upstream 0919a5b3b11c f8f2b4da .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in btrfs_chunk_alloc
2025/07/30 06:07 upstream 0919a5b3b11c f8f2b4da .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in btrfs_chunk_alloc
2025/07/27 22:07 upstream b711733e89a3 fb8f743d .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in btrfs_chunk_alloc
2025/07/27 20:34 upstream ec2df4364666 fb8f743d .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in btrfs_chunk_alloc
2025/07/27 19:28 upstream ec2df4364666 fb8f743d .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in btrfs_chunk_alloc
2025/07/27 18:28 upstream ec2df4364666 fb8f743d .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in btrfs_chunk_alloc
2025/07/27 17:13 upstream ec2df4364666 fb8f743d .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in btrfs_chunk_alloc
2025/07/27 08:58 upstream ec2df4364666 fb8f743d .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in btrfs_chunk_alloc
2025/07/27 08:57 upstream ec2df4364666 fb8f743d .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in btrfs_chunk_alloc
2025/07/27 05:54 upstream 302f88ff3584 fb8f743d .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in btrfs_chunk_alloc
2025/07/27 03:30 upstream 302f88ff3584 fb8f743d .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in btrfs_chunk_alloc
2025/07/27 00:04 upstream 302f88ff3584 fb8f743d .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in btrfs_chunk_alloc
2025/07/26 22:54 upstream 302f88ff3584 fb8f743d .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in btrfs_chunk_alloc
2025/07/26 19:38 upstream 302f88ff3584 fb8f743d .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in btrfs_chunk_alloc
2025/07/26 16:23 upstream 5f33ebd2018c fb8f743d .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in btrfs_chunk_alloc
2025/07/26 13:58 upstream 5f33ebd2018c fb8f743d .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in btrfs_chunk_alloc
2025/07/26 10:24 upstream 5f33ebd2018c fb8f743d .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in btrfs_chunk_alloc
2025/07/26 08:33 upstream 5f33ebd2018c fb8f743d .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in btrfs_chunk_alloc
2025/07/26 06:52 upstream 327579671a9b fb8f743d .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root WARNING in btrfs_chunk_alloc
2025/07/26 04:58 upstream 5f33ebd2018c fb8f743d .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in btrfs_chunk_alloc
2025/07/26 03:14 upstream 2942242dde89 fb8f743d .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in btrfs_chunk_alloc
2025/07/26 01:29 upstream 2942242dde89 fb8f743d .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in btrfs_chunk_alloc
2025/07/26 01:23 upstream 2942242dde89 fb8f743d .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in btrfs_chunk_alloc
2025/07/25 11:58 upstream 94ce1ac2c9b4 fb8f743d .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in btrfs_chunk_alloc
2025/07/25 09:13 upstream 94ce1ac2c9b4 fb8f743d .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in btrfs_chunk_alloc
2025/07/22 18:17 upstream 89be9a83ccf1 8e9d1dc1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in btrfs_chunk_alloc
2025/07/21 20:40 upstream 89be9a83ccf1 56d87229 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in btrfs_chunk_alloc
2025/07/21 18:51 upstream 89be9a83ccf1 56d87229 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in btrfs_chunk_alloc
2025/07/20 01:52 upstream bf61759db409 7117feec .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in btrfs_chunk_alloc
2025/07/05 22:52 upstream 05df91921da6 4f67c4ae .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root WARNING in btrfs_chunk_alloc
2024/06/17 14:49 upstream 2ccbdf43d5e7 f429ab00 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root WARNING in btrfs_chunk_alloc
2025/08/06 00:53 upstream 6bcdbd62bd56 ffe1dd46 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root WARNING in btrfs_chunk_alloc
2025/08/04 23:44 upstream 35a813e010b9 f5bcc8dc .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root WARNING in btrfs_chunk_alloc
2025/08/04 00:51 upstream 352af6a011d5 7368264b .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root WARNING in btrfs_chunk_alloc
2025/08/01 16:15 upstream 89748acdf226 40127d41 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root WARNING in btrfs_chunk_alloc
2025/08/01 11:46 upstream d6084bb815c4 0c075d67 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root WARNING in btrfs_chunk_alloc
2025/07/30 18:51 upstream 4b290aae788e f8f2b4da .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root WARNING in btrfs_chunk_alloc
2025/07/30 14:40 upstream 14bed9bc81ba f8f2b4da .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root WARNING in btrfs_chunk_alloc
2025/07/30 13:25 upstream 14bed9bc81ba f8f2b4da .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root WARNING in btrfs_chunk_alloc
2025/07/29 17:58 upstream 86aa72182095 ba28e0a8 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root WARNING in btrfs_chunk_alloc
2025/07/27 15:06 upstream ec2df4364666 fb8f743d .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root WARNING in btrfs_chunk_alloc
2025/07/23 19:46 upstream 01a412d06bc5 e0b9ac93 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root WARNING in btrfs_chunk_alloc
2024/06/19 21:51 upstream 2ccbdf43d5e7 c2e07261 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 WARNING in btrfs_chunk_alloc
2023/04/15 12:48 upstream 7a934f4bd7d6 ec410564 .config console log report info ci-qemu-upstream WARNING in btrfs_chunk_alloc
2022/11/22 11:30 upstream eb7081409f94 1c576c23 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root WARNING in btrfs_chunk_alloc
2025/07/31 08:15 linux-next 84b92a499e7e f8f2b4da .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in btrfs_chunk_alloc
2025/08/06 13:24 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 82af5ea7c611 4bd24a3e .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in btrfs_chunk_alloc
2025/08/05 03:47 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 82af5ea7c611 abdcb213 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in btrfs_chunk_alloc
2025/07/29 16:42 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 82af5ea7c611 f8f2b4da .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in btrfs_chunk_alloc
2025/07/27 14:04 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 82af5ea7c611 fb8f743d .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in btrfs_chunk_alloc
2025/07/27 12:55 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 82af5ea7c611 fb8f743d .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in btrfs_chunk_alloc
2025/07/26 17:47 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 82af5ea7c611 fb8f743d .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in btrfs_chunk_alloc
2025/07/26 06:04 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 82af5ea7c611 fb8f743d .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in btrfs_chunk_alloc
2025/07/23 03:37 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 29e0a1d9558f 85deaf45 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in btrfs_chunk_alloc
* Struck through repros no longer work on HEAD.