syzbot


WARNING in btrfs_release_global_block_rsv (2)

Status: upstream: reported C repro on 2024/11/20 02:12
Subsystems: btrfs
[Documentation on labels]
Reported-by: syzbot+48ed002119c0f19daf63@syzkaller.appspotmail.com
First crash: 5d04h, last: 3d11h
Cause bisection: failed (error log, bisect log)
  
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [btrfs?] WARNING in btrfs_release_global_block_rsv (2) 0 (1) 2024/11/20 02:12
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-5.15 WARNING in btrfs_release_global_block_rsv 1 591d 591d 0/3 auto-obsoleted due to no activity on 2023/08/07 13:28
upstream WARNING in btrfs_release_global_block_rsv btrfs C done done 7 309d 418d 0/28 auto-obsoleted due to no activity on 2024/04/25 16:32

Sample crash report:
BTRFS info (device loop1): last unmount of filesystem b65e5074-7275-4634-a025-a4403a9281c2
------------[ cut here ]------------
WARNING: CPU: 1 PID: 5830 at fs/btrfs/block-rsv.c:459 btrfs_release_global_block_rsv+0x261/0x270 fs/btrfs/block-rsv.c:459
Modules linked in:
CPU: 1 UID: 0 PID: 5830 Comm: syz-executor323 Not tainted 6.12.0-rc7-syzkaller-00187-gf868cd251776 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/30/2024
RIP: 0010:btrfs_release_global_block_rsv+0x261/0x270 fs/btrfs/block-rsv.c:459
Code: 0f 0b 90 e9 0c ff ff ff e8 2c 0d bd fd 90 0f 0b 90 e9 36 ff ff ff e8 1e 0d bd fd 90 0f 0b 90 e9 67 ff ff ff e8 10 0d bd fd 90 <0f> 0b 90 eb 89 66 2e 0f 1f 84 00 00 00 00 00 90 90 90 90 90 90 90
RSP: 0018:ffffc90003baf9b8 EFLAGS: 00010293
RAX: ffffffff83d7dca0 RBX: ffffffffffff0000 RCX: ffff888035a31e00
RDX: 0000000000000000 RSI: ffffffffffff0000 RDI: 0000000000000000
RBP: 0000000000000001 R08: ffffffff83d7dc25 R09: 1ffff1100540de01
R10: dffffc0000000000 R11: ffffed100540de02 R12: ffff88802a06a000
R13: 1ffff1100540d42e R14: ffff8880336f4400 R15: dffffc0000000000
FS:  000055558bffa3c0(0000) GS:ffff8880b8700000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fb775400000 CR3: 000000007e426000 CR4: 00000000003526f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 btrfs_free_block_groups+0xc3c/0x1080 fs/btrfs/block-group.c:4472
 close_ctree+0x772/0xd60 fs/btrfs/disk-io.c:4378
 generic_shutdown_super+0x139/0x2d0 fs/super.c:642
 kill_anon_super+0x3b/0x70 fs/super.c:1237
 btrfs_kill_super+0x41/0x50 fs/btrfs/super.c:2114
 deactivate_locked_super+0xc4/0x130 fs/super.c:473
 cleanup_mnt+0x41f/0x4b0 fs/namespace.c:1373
 task_work_run+0x24f/0x310 kernel/task_work.c:239
 ptrace_notify+0x2d2/0x380 kernel/signal.c:2404
 ptrace_report_syscall include/linux/ptrace.h:415 [inline]
 ptrace_report_syscall_exit include/linux/ptrace.h:477 [inline]
 syscall_exit_work+0xc6/0x190 kernel/entry/common.c:173
 syscall_exit_to_user_mode_prepare kernel/entry/common.c:200 [inline]
 __syscall_exit_to_user_mode_work kernel/entry/common.c:205 [inline]
 syscall_exit_to_user_mode+0x279/0x370 kernel/entry/common.c:218
 do_syscall_64+0x100/0x230 arch/x86/entry/common.c:89
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fb77d64c1e7
Code: 08 00 48 83 c4 08 5b 5d c3 66 2e 0f 1f 84 00 00 00 00 00 c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 b8 a6 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 01 c3 48 c7 c2 b0 ff ff ff f7 d8 64 89 02 b8
RSP: 002b:00007ffe158a5b88 EFLAGS: 00000206 ORIG_RAX: 00000000000000a6
RAX: 0000000000000000 RBX: 0000000000000000 RCX: 00007fb77d64c1e7
RDX: 0000000000000000 RSI: 0000000000000009 RDI: 00007ffe158a5c40
RBP: 00007ffe158a5c40 R08: 0000000000000000 R09: 0000000000000000
R10: 00000000ffffffff R11: 0000000000000206 R12: 00007ffe158a6cf0
R13: 000055558bffb700 R14: 431bde82d7b634db R15: 00007ffe158a6c94
 </TASK>

Crashes (4):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/11/16 07:44 upstream f868cd251776 cfe3a04a .config strace log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro #1] [mounted in repro #2] ci2-upstream-fs WARNING in btrfs_release_global_block_rsv
2024/11/16 05:50 upstream f868cd251776 cfe3a04a .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro #1] [mounted in repro #2] ci2-upstream-fs WARNING in btrfs_release_global_block_rsv
2024/11/17 18:48 upstream 4a5df3796467 cfe3a04a .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in btrfs_release_global_block_rsv
2024/11/16 02:07 upstream f868cd251776 cfe3a04a .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in btrfs_release_global_block_rsv
* Struck through repros no longer work on HEAD.