syzbot


WARNING in do_chunk_alloc

Status: fixed on 2023/10/12 12:48
Subsystems: btrfs
[Documentation on labels]
Reported-by: syzbot+88247ec7a18c953867d5@syzkaller.appspotmail.com
Fix commit: cd361199ff23 btrfs: wait on uncached block groups on every allocation loop
First crash: 684d, last: 467d
Cause bisection: failed (error log, bisect log)
  
Fix bisection: fixed by (bisect log) :
commit cd361199ff23776481c37023a55d855d5ad5c0f5
Author: Josef Bacik <josef@toxicpanda.com>
Date: Mon Jul 31 20:28:43 2023 +0000

  btrfs: wait on uncached block groups on every allocation loop

  
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] WARNING in do_chunk_alloc 1 (3) 2023/09/13 14:03
Last patch testing requests (5)
Created Duration User Patch Repo Result
2023/09/05 13:56 15m retest repro upstream OK log
2023/08/30 06:46 45m retest repro git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci report log
2023/08/28 14:27 13m retest repro upstream report log
2023/08/28 14:27 12m retest repro upstream report log
2023/08/28 14:27 19m retest repro upstream OK log
Fix bisection attempts (6)
Created Duration User Patch Repo Result
2023/09/10 23:08 4h09m bisect fix upstream OK (1) job log
2023/06/27 12:41 1h02m bisect fix upstream OK (0) job log log
2023/05/27 11:15 38m bisect fix upstream OK (0) job log log
2023/04/23 02:14 46m bisect fix upstream OK (0) job log log
2023/03/24 00:12 42m bisect fix upstream OK (0) job log log
2023/02/21 22:07 45m bisect fix upstream OK (0) job log log

Sample crash report:
------------[ cut here ]------------
WARNING: CPU: 1 PID: 102 at fs/btrfs/block-group.c:3535 do_chunk_alloc+0x653/0x6c0 fs/btrfs/block-group.c:3535
Modules linked in:
CPU: 1 PID: 102 Comm: kworker/u4:4 Not tainted 6.1.0-rc6-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022
Workqueue: events_unbound btrfs_async_reclaim_metadata_space
RIP: 0010:do_chunk_alloc+0x653/0x6c0 fs/btrfs/block-group.c:3535
Code: 3d 8b 44 89 fe 31 c0 e8 cb a1 a0 fd 0f 0b b3 01 e9 fd fe ff ff e8 bd 03 d9 fd 48 c7 c7 a0 a9 3d 8b 89 de 31 c0 e8 ad a1 a0 fd <0f> 0b 40 b5 01 e9 fa fe ff ff e8 9e 03 d9 fd 48 c7 c7 a0 a9 3d 8b
RSP: 0018:ffffc900015e7870 EFLAGS: 00010246
RAX: f651373e45ebd500 RBX: ffffffffffffffe4 RCX: ffff888019b20000
RDX: 0000000000000000 RSI: 0000000080000000 RDI: 0000000000000000
RBP: ffff888078404001 R08: ffffffff816e568d R09: ffffed1017324f1b
R10: ffffed1017324f1b R11: 1ffff11017324f1a R12: ffff8880708d92a0
R13: ffff888018f88000 R14: 1ffff1100e11b25e R15: 00000000ffffffe4
FS:  0000000000000000(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fd404242251 CR3: 000000000d08e000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 btrfs_chunk_alloc+0x6a4/0x900 fs/btrfs/block-group.c:3777
 flush_space+0x9d8/0xbc0 fs/btrfs/space-info.c:769
 btrfs_async_reclaim_metadata_space+0x8e8/0xa50 fs/btrfs/space-info.c:1083
 process_one_work+0x877/0xdb0 kernel/workqueue.c:2289
 worker_thread+0xb14/0x1330 kernel/workqueue.c:2436
 kthread+0x266/0x300 kernel/kthread.c:376
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:306
 </TASK>

Crashes (35):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/11/22 23:28 upstream eb7081409f94 9da37ae8 .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-upstream-fs WARNING in do_chunk_alloc
2022/11/30 03:15 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci cdb931b58ff5 05dc7993 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-gce-arm64 WARNING in do_chunk_alloc
2022/11/30 19:41 upstream 01f856ae6d0c 4c2a66e8 .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-upstream-fs WARNING in do_chunk_alloc
2022/11/23 02:57 upstream eb7081409f94 9da37ae8 .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-upstream-fs WARNING in do_chunk_alloc
2022/11/26 01:24 upstream 08ad43d554ba f4470a7b .config console log report syz [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-upstream-fs WARNING in do_chunk_alloc
2022/12/13 11:04 upstream 3a28c2c89f4b 67be1ae7 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root WARNING in do_chunk_alloc
2022/12/13 07:10 upstream 830b3c68c1fb 67be1ae7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in do_chunk_alloc
2022/12/13 00:40 upstream 830b3c68c1fb 67be1ae7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in do_chunk_alloc
2022/12/11 23:47 upstream 4cee37b3a4e6 67be1ae7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in do_chunk_alloc
2022/12/11 14:04 upstream 296a7b7eb792 67be1ae7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in do_chunk_alloc
2022/12/11 00:19 upstream 3ecc37918c80 67be1ae7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in do_chunk_alloc
2022/12/10 04:05 upstream 0d1409e4ff08 67be1ae7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in do_chunk_alloc
2022/12/09 12:16 upstream f3e8416619ce 1034e5fa .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in do_chunk_alloc
2022/12/08 23:06 upstream 479174d402bc 1034e5fa .config console log report info ci2-upstream-fs WARNING in do_chunk_alloc
2022/12/08 07:50 upstream 479174d402bc d88f3abb .config console log report info ci2-upstream-fs WARNING in do_chunk_alloc
2022/12/07 15:44 upstream 8ed710da2873 d88f3abb .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in do_chunk_alloc
2022/12/07 14:53 upstream 8ed710da2873 d88f3abb .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in do_chunk_alloc
2022/12/05 02:17 upstream c2bf05db6c78 e080de16 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in do_chunk_alloc
2022/12/04 00:01 upstream 97ee9d1c1696 e080de16 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in do_chunk_alloc
2022/12/03 03:43 upstream a4412fdd49dc e080de16 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in do_chunk_alloc
2022/12/01 20:12 upstream ef4d3ea40565 e080de16 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in do_chunk_alloc
2022/11/30 08:13 upstream 01f856ae6d0c 579a3740 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in do_chunk_alloc
2022/11/29 22:10 upstream ca57f02295f1 579a3740 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in do_chunk_alloc
2022/11/29 19:28 upstream ca57f02295f1 579a3740 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in do_chunk_alloc
2022/11/29 09:40 upstream ca57f02295f1 ca9683b8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in do_chunk_alloc
2022/11/27 09:30 upstream faf68e3523c2 f4470a7b .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in do_chunk_alloc
2022/11/27 07:07 upstream 644e9524388a f4470a7b .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in do_chunk_alloc
2022/11/27 05:54 upstream 644e9524388a f4470a7b .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in do_chunk_alloc
2022/11/26 18:15 upstream 644e9524388a f4470a7b .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in do_chunk_alloc
2022/11/26 13:30 upstream 08ad43d554ba f4470a7b .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in do_chunk_alloc
2022/11/26 02:33 upstream 0b1dcc2cf55a 74a66371 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root WARNING in do_chunk_alloc
2023/01/21 19:42 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci edb2f0dc90f2 559a440a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in do_chunk_alloc
2023/01/06 12:48 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 247f34f7b803 1dac8c7a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in do_chunk_alloc
2023/01/01 06:27 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci a5541c0811a0 ab32d508 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in do_chunk_alloc
2022/12/14 08:06 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci a5541c0811a0 e660de91 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in do_chunk_alloc
* Struck through repros no longer work on HEAD.