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: 569d, last: 8d09h
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 (11)
Title Replies (including bot) Last reply
[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 (4)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-5.15 WARNING in btrfs_chunk_alloc 6 365d 448d 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 9 82d 211d 0/3 upstream: reported C repro on 2023/11/15 16:30
linux-6.1 WARNING in btrfs_chunk_alloc 1 443d 443d 0/3 auto-obsoleted due to no activity on 2023/07/26 13:54
linux-5.15 WARNING in btrfs_chunk_alloc (2) origin:upstream C error 3 24d 262d 0/3 upstream: reported C repro on 2023/09/25 19:35
Last patch testing requests (10)
Created Duration User Patch Repo Result
2024/05/26 14:54 16m retest repro upstream report log
2024/04/17 09:08 21m retest repro upstream error OK
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 OK
2024/03/17 13:43 18m retest repro upstream error OK
2024/01/26 17:45 39m retest repro upstream OK log
2024/01/26 17:45 31m retest repro upstream report log
2024/01/07 13:03 18m retest repro upstream report log
2024/01/07 13:03 15m retest repro upstream report log
2024/01/07 12:54 19m retest repro git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci report log

Sample crash report:
BTRFS error (device loop4): allocation failed flags 2, wanted 4096 tree-log 0, relocation: 0
------------[ cut here ]------------
BTRFS: Transaction aborted (error -28)
WARNING: CPU: 0 PID: 5240 at fs/btrfs/block-group.c:3839 do_chunk_alloc fs/btrfs/block-group.c:3839 [inline]
WARNING: CPU: 0 PID: 5240 at fs/btrfs/block-group.c:3839 btrfs_chunk_alloc+0xedb/0xfa0 fs/btrfs/block-group.c:4081
Modules linked in:
CPU: 0 PID: 5240 Comm: kworker/u4:3 Not tainted 6.6.0-syzkaller-16039-gac347a0655db #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/09/2023
Workqueue: events_unbound btrfs_async_reclaim_metadata_space
RIP: 0010:do_chunk_alloc fs/btrfs/block-group.c:3839 [inline]
RIP: 0010:btrfs_chunk_alloc+0xedb/0xfa0 fs/btrfs/block-group.c:4081
Code: fd 48 c7 c7 60 41 ad 8b 44 89 e6 e8 bf 37 9a fd 0f 0b e9 1d fe ff ff e8 13 80 d4 fd 48 c7 c7 60 41 ad 8b 89 ee e8 a5 37 9a fd <0f> 0b e9 28 fe ff ff e8 f9 7f d4 fd 48 c7 c7 60 41 ad 8b 44 89 e6
RSP: 0018:ffffc90004d57968 EFLAGS: 00010246
RAX: ebf91ccdb1335500 RBX: ffff8880722e8001 RCX: ffff888071d95940
RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000000
RBP: ffffffffffffffe4 R08: ffffffff81547c82 R09: 1ffff920009aae80
R10: dffffc0000000000 R11: fffff520009aae81 R12: ffff888077da5800
R13: dffffc0000000000 R14: ffff88801e856000 R15: 0000000000000000
FS:  0000000000000000(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f3011ac2723 CR3: 0000000016f21000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 flush_space+0x4d6/0xce0 fs/btrfs/space-info.c:784
 btrfs_async_reclaim_metadata_space+0x29f/0x350 fs/btrfs/space-info.c:1089
 process_one_work kernel/workqueue.c:2630 [inline]
 process_scheduled_works+0x90f/0x1400 kernel/workqueue.c:2703
 worker_thread+0xa5f/0xff0 kernel/workqueue.c:2784
 kthread+0x2d3/0x370 kernel/kthread.c:388
 ret_from_fork+0x48/0x80 arch/x86/kernel/process.c:147
 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:242
 </TASK>

Crashes (252):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
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/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
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/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/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
2024/06/05 12:21 upstream 32f88d65f01b e1e2c66e .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in btrfs_chunk_alloc
2024/06/04 20:25 upstream 2ab795141095 11f2afa5 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in btrfs_chunk_alloc
2024/06/04 17:11 upstream 2ab795141095 11f2afa5 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in btrfs_chunk_alloc
2024/06/04 12:25 upstream 2ab795141095 a1feae05 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root WARNING in btrfs_chunk_alloc
2024/06/04 06:50 upstream f06ce441457d a1feae05 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in btrfs_chunk_alloc
2024/02/26 17:26 upstream d206a76d7d27 da36a36b .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in btrfs_chunk_alloc
2024/02/03 07:29 upstream 56897d51886f 60bf9982 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in btrfs_chunk_alloc
2024/01/31 19:08 upstream 1bbb19b6eb1b 373b66cd .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in btrfs_chunk_alloc
2024/01/11 17:33 upstream de927f6c0b07 00f3cc59 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in btrfs_chunk_alloc
2024/01/11 12:02 upstream de927f6c0b07 00f3cc59 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in btrfs_chunk_alloc
2023/12/24 12:43 upstream 861deac3b092 fb427a07 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in btrfs_chunk_alloc
2023/12/23 20:50 upstream 5254c0cbc92d fb427a07 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in btrfs_chunk_alloc
2023/12/22 22:53 upstream 24e0d2e527a3 fb427a07 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in btrfs_chunk_alloc
2023/12/19 02:28 upstream 2cf4f94d8e86 924661f4 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in btrfs_chunk_alloc
2023/12/14 10:17 upstream 5bd7ef53ffe5 3222d10c .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in btrfs_chunk_alloc
2023/12/12 18:16 upstream 26aff849438c ebcad15c .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in btrfs_chunk_alloc
2023/12/10 09:26 upstream b10a3ccaf6e3 28b24332 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in btrfs_chunk_alloc
2023/12/09 17:43 upstream f2e8a57ee903 28b24332 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in btrfs_chunk_alloc
2023/12/09 00:20 upstream 5e3f5b81de80 28b24332 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in btrfs_chunk_alloc
2023/12/07 15:47 upstream bee0e7762ad2 0a02ce36 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in btrfs_chunk_alloc
2023/12/06 22:00 upstream bee0e7762ad2 e3299f55 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in btrfs_chunk_alloc
2023/12/06 19:55 upstream bee0e7762ad2 e3299f55 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in btrfs_chunk_alloc
2023/12/04 13:27 upstream 33cc938e65a9 f819d6f7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in btrfs_chunk_alloc
2023/12/04 07:49 upstream 33cc938e65a9 f819d6f7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in btrfs_chunk_alloc
2023/10/07 06:37 upstream 82714078aee4 5e837c76 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in btrfs_chunk_alloc
2023/08/13 06:12 upstream ae545c3283dc 39990d51 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in btrfs_chunk_alloc
2023/07/22 23:32 upstream 295e1388de2d 27cbe77f .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in btrfs_chunk_alloc
2023/07/20 06:09 upstream bfa3037d8280 4547cdf9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in btrfs_chunk_alloc
2023/07/04 16:49 upstream 24be4d0b46bb f99c2404 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs 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
2022/12/08 08:21 upstream 479174d402bc d88f3abb .config console log report info ci-qemu-upstream-386 WARNING in btrfs_chunk_alloc
2023/12/19 03:29 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 0bcda4cd6851 3ad490ea .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in btrfs_chunk_alloc
2023/12/18 06:16 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 0bcda4cd6851 3222d10c .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in btrfs_chunk_alloc
2023/12/09 10:06 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci d46efae31672 28b24332 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in btrfs_chunk_alloc
2023/12/03 12:34 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 2cc14f52aeb7 f819d6f7 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in btrfs_chunk_alloc
2023/12/01 10:34 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 2cc14f52aeb7 f819d6f7 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in btrfs_chunk_alloc
2023/11/27 20:03 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 2cc14f52aeb7 9fe51b7c .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in btrfs_chunk_alloc
2023/11/27 16:10 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 8de1e7afcc1c 5b429f39 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in btrfs_chunk_alloc
2023/11/27 03:05 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 8de1e7afcc1c 5b429f39 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in btrfs_chunk_alloc
2023/11/26 12:33 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 8de1e7afcc1c 5b429f39 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in btrfs_chunk_alloc
2023/11/26 07:54 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 8de1e7afcc1c 5b429f39 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in btrfs_chunk_alloc
2023/11/23 16:34 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 8de1e7afcc1c fc59b78e .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in btrfs_chunk_alloc
2023/11/22 17:12 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 8de1e7afcc1c 03e12510 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in btrfs_chunk_alloc
2023/11/20 21:08 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 8de1e7afcc1c cb976f63 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in btrfs_chunk_alloc
2023/11/19 17:09 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 8de1e7afcc1c cb976f63 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in btrfs_chunk_alloc
2023/11/15 16:22 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 8de1e7afcc1c cb976f63 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in btrfs_chunk_alloc
2023/11/05 08:36 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 8de1e7afcc1c 500bfdc4 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in btrfs_chunk_alloc
2023/08/24 15:56 linux-next 2b3bd393093b 4d7ae7ab .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in btrfs_chunk_alloc
* Struck through repros no longer work on HEAD.