syzbot


WARNING in btrfs_use_block_rsv

Status: upstream: reported C repro on 2023/08/30 22:29
Subsystems: btrfs
[Documentation on labels]
Reported-by: syzbot+10d5b62a8d7046b86d22@syzkaller.appspotmail.com
First crash: 187d, last: 60d
Cause bisection: introduced by (bisect log) :
commit a5b8a5f9f8355d27a4f8d0afa93427f16d2f3c1e
Author: Anand Jain <anand.jain@oracle.com>
Date: Thu Sep 28 01:09:47 2023 +0000

  btrfs: support cloned-device mount capability

Crash: WARNING in btrfs_use_block_rsv (log)
Repro: syz .config
  
Fix bisection: failed (error log, bisect log)
  
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [btrfs?] WARNING in btrfs_use_block_rsv 3 (5) 2023/11/28 18:09
Last patch testing requests (4)
Created Duration User Patch Repo Result
2024/02/26 04:48 31m retest repro upstream OK log
2024/01/01 04:46 19m retest repro upstream report log
2023/12/18 03:30 22m retest repro upstream report log
2023/09/10 05:13 24m retest repro upstream OK log

Sample crash report:
------------[ cut here ]------------
WARNING: CPU: 1 PID: 58 at fs/btrfs/block-rsv.c:523 btrfs_use_block_rsv+0x60d/0x860 fs/btrfs/block-rsv.c:523
Modules linked in:
CPU: 1 PID: 58 Comm: kworker/u4:4 Not tainted 6.7.0-rc2-syzkaller-00095-gd3fa86b1a7b4 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/10/2023
Workqueue: btrfs-endio-write btrfs_work_helper
RIP: 0010:btrfs_use_block_rsv+0x60d/0x860 fs/btrfs/block-rsv.c:523
Code: ea 83 e2 07 38 d0 7f 0c 84 c0 74 08 48 89 ef e8 69 49 44 fe 0f b6 73 5a ba e4 ff ff ff 48 c7 c7 a0 3f 19 8b e8 74 c9 b3 fd 90 <0f> 0b 90 90 e9 f5 fd ff ff e8 25 a3 ed fd 49 8d 9d 88 04 00 00 e9
RSP: 0018:ffffc90001597130 EFLAGS: 00010282
RAX: 0000000000000000 RBX: ffff88806c06d690 RCX: ffffffff814db209
RDX: ffff888016ead940 RSI: ffffffff814db216 RDI: 0000000000000001
RBP: ffff88806c06d6ea R08: 0000000000000001 R09: 0000000000000000
R10: 0000000000000001 R11: 0000000000000001 R12: 0000000000001000
R13: ffff88807e388000 R14: 0000000000000001 R15: 0000000000000001
FS:  0000000000000000(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055b22ca19c28 CR3: 000000001c4d3000 CR4: 0000000000350ef0
Call Trace:
 <TASK>
 btrfs_alloc_tree_block+0x1e0/0x12c0 fs/btrfs/extent-tree.c:5114
 btrfs_force_cow_block+0x3e5/0x19e0 fs/btrfs/ctree.c:563
 btrfs_cow_block+0x2b6/0xb30 fs/btrfs/ctree.c:741
 push_leaf_left+0x315/0x4d0 fs/btrfs/ctree.c:3485
 split_leaf+0x9c3/0x13b0 fs/btrfs/ctree.c:3681
 search_leaf fs/btrfs/ctree.c:1944 [inline]
 btrfs_search_slot+0x24ba/0x2fd0 fs/btrfs/ctree.c:2131
 btrfs_insert_empty_items+0xb6/0x1b0 fs/btrfs/ctree.c:4285
 btrfs_insert_empty_item fs/btrfs/ctree.h:657 [inline]
 insert_reserved_file_extent+0x7aa/0x950 fs/btrfs/inode.c:2907
 insert_ordered_extent_file_extent fs/btrfs/inode.c:3005 [inline]
 btrfs_finish_one_ordered+0x12dc/0x20d0 fs/btrfs/inode.c:3113
 btrfs_work_helper+0x210/0xbf0 fs/btrfs/async-thread.c:315
 process_one_work+0x886/0x15d0 kernel/workqueue.c:2630
 process_scheduled_works kernel/workqueue.c:2703 [inline]
 worker_thread+0x8b9/0x1290 kernel/workqueue.c:2784
 kthread+0x2c6/0x3a0 kernel/kthread.c:388
 ret_from_fork+0x45/0x80 arch/x86/kernel/process.c:147
 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:242
 </TASK>

Crashes (4):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/11/24 14:33 upstream d3fa86b1a7b4 5b429f39 .config strace log report syz [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-kasan-gce-root WARNING in btrfs_use_block_rsv
2023/12/04 02:47 upstream 33cc938e65a9 f819d6f7 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-kasan-badwrites-root WARNING in btrfs_use_block_rsv
2023/08/27 05:07 upstream 3b35375f19fe 7ba13a15 .config console log report syz C [disk image (non-bootable)] [vmlinux] [kernel image] [mounted in repro] ci-qemu-upstream WARNING in btrfs_use_block_rsv
2023/08/26 22:22 upstream 3b35375f19fe 7ba13a15 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING in btrfs_use_block_rsv
* Struck through repros no longer work on HEAD.