syzbot


WARNING in do_chunk_alloc

Status: upstream: reported C repro on 2022/11/23 06:38
Reported-by: syzbot+88247ec7a18c953867d5@syzkaller.appspotmail.com
First crash: 4d02h, last: 7h46m

Cause bisection: failed (bisect log)

Sample crash report:
------------[ cut here ]------------
WARNING: CPU: 0 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:ffffc900015c7870 EFLAGS: 00010246
RAX: 3ba9b5084e06eb00 RBX: ffffffffffffffe4 RCX: ffff88801981ba80
RDX: 0000000000000000 RSI: 0000000080000000 RDI: 0000000000000000
RBP: ffff88801e4dc001 R08: ffffffff816e568d R09: ffffed1017304f1b
R10: ffffed1017304f1b R11: 1ffff11017304f1a R12: ffff8880733f02a0
R13: ffff888147573000 R14: 1ffff1100e67e05e R15: 00000000ffffffe4
FS:  0000000000000000(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000556f9b0c86a8 CR3: 0000000028162000 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 (6):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-upstream-fs 2022/11/23 02:57 upstream eb7081409f94 9da37ae8 .config log report syz C WARNING in do_chunk_alloc
ci2-upstream-fs 2022/11/22 23:28 upstream eb7081409f94 9da37ae8 .config log report syz C WARNING in do_chunk_alloc
ci2-upstream-fs 2022/11/26 01:24 upstream 08ad43d554ba f4470a7b .config log report syz WARNING in do_chunk_alloc
ci2-upstream-fs 2022/11/26 18:15 upstream 644e9524388a f4470a7b .config log report info WARNING in do_chunk_alloc
ci2-upstream-fs 2022/11/26 13:30 upstream 08ad43d554ba f4470a7b .config log report info WARNING in do_chunk_alloc
ci-upstream-kasan-gce-smack-root 2022/11/26 02:33 upstream 0b1dcc2cf55a 74a66371 .config log report info WARNING in do_chunk_alloc
* Struck through repros no longer work on HEAD.