syzbot


WARNING in btrfs_put_block_group

Status: upstream: reported C repro on 2023/04/24 06:46
Subsystems: btrfs
[Documentation on labels]
Reported-by: syzbot+e38c6fff39c0d7d6f121@syzkaller.appspotmail.com
First crash: 533d, last: 6d20h
Cause bisection: introduced by (bisect log) [merge commit]:
commit f8566aa4f1766bb0267b7a0ed89c1d2c4a82ee1a
Author: Linus Torvalds <torvalds@linux-foundation.org>
Date: Sat Jul 1 18:40:01 2023 +0000

  Merge tag 'x86-urgent-2023-07-01' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip

Crash: WARNING in btrfs_put_block_group (log)
Repro: C syz .config
  
Discussions (3)
Title Replies (including bot) Last reply
[syzbot] Monthly btrfs report (Sep 2024) 0 (1) 2024/09/16 12:27
[syzbot] Monthly btrfs report (Jul 2024) 0 (1) 2024/07/15 14:03
[syzbot] [btrfs?] WARNING in btrfs_put_block_group 0 (2) 2023/11/07 15:19
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-5.15 WARNING in btrfs_put_block_group origin:upstream C error 58 1d21h 557d 0/3 upstream: reported C repro on 2023/03/29 11:09
Last patch testing requests (3)
Created Duration User Patch Repo Result
2024/05/31 19:23 4h48m retest repro upstream report log
2024/03/22 10:57 26m retest repro upstream error
2023/12/06 08:10 22m retest repro upstream report log
Fix bisection attempts (2)
Created Duration User Patch Repo Result
2024/08/04 08:49 2h25m bisect fix upstream OK (0) job log log
2024/01/05 18:36 5h18m bisect fix upstream OK (0) job log log

Sample crash report:
BTRFS info (device loop2): at unmount dio bytes count 45056
------------[ cut here ]------------
WARNING: CPU: 0 PID: 5067 at fs/btrfs/block-group.c:159 btrfs_put_block_group fs/btrfs/block-group.c:159 [inline]
WARNING: CPU: 0 PID: 5067 at fs/btrfs/block-group.c:159 btrfs_put_block_group+0x2c9/0x330 fs/btrfs/block-group.c:146
Modules linked in:
CPU: 0 PID: 5067 Comm: syz-executor383 Not tainted 6.6.0-syzkaller-15029-gbe3ca57cfb77 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/09/2023
RIP: 0010:btrfs_put_block_group fs/btrfs/block-group.c:159 [inline]
RIP: 0010:btrfs_put_block_group+0x2c9/0x330 fs/btrfs/block-group.c:146
Code: 48 8d b8 e0 15 00 00 e8 f5 70 01 00 e9 b8 fe ff ff e8 db ca 43 fe e9 1f fe ff ff e8 d1 ca 43 fe e9 d7 fd ff ff e8 07 da ec fd <0f> 0b e9 61 fe ff ff e8 bb ca 43 fe e9 b5 fe ff ff e8 b1 ca 43 fe
RSP: 0018:ffffc90003a1fb48 EFLAGS: 00010293
RAX: 0000000000000000 RBX: ffff888026356000 RCX: ffffffff839bc0d8
RDX: ffff888061868000 RSI: ffffffff839bc279 RDI: 0000000000000007
RBP: 000000000000b000 R08: 0000000000000007 R09: 0000000000000000
R10: 000000000000b000 R11: 1ffff11004f89c32 R12: ffff888060c28000
R13: 0000000000000001 R14: ffff888026356160 R15: ffff888026356000
FS:  0000555556d0c380(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f7172fd2100 CR3: 000000007ef04000 CR4: 0000000000350ef0
Call Trace:
 <TASK>
 btrfs_free_block_groups+0x9f5/0x13d0 fs/btrfs/block-group.c:4360
 close_ctree+0x8c4/0xdd0 fs/btrfs/disk-io.c:4389
 generic_shutdown_super+0x161/0x3c0 fs/super.c:696
 kill_anon_super+0x3a/0x60 fs/super.c:1295
 btrfs_kill_super+0x3b/0x50 fs/btrfs/super.c:2097
 deactivate_locked_super+0xbc/0x1a0 fs/super.c:484
 deactivate_super+0xde/0x100 fs/super.c:517
 cleanup_mnt+0x222/0x450 fs/namespace.c:1256
 task_work_run+0x14d/0x240 kernel/task_work.c:180
 ptrace_notify+0x10c/0x130 kernel/signal.c:2399
 ptrace_report_syscall include/linux/ptrace.h:411 [inline]
 ptrace_report_syscall_exit include/linux/ptrace.h:473 [inline]
 syscall_exit_work kernel/entry/common.c:251 [inline]
 syscall_exit_to_user_mode_prepare+0x120/0x220 kernel/entry/common.c:278
 __syscall_exit_to_user_mode_work kernel/entry/common.c:283 [inline]
 syscall_exit_to_user_mode+0xd/0x60 kernel/entry/common.c:296
 do_syscall_64+0x4b/0x110 arch/x86/entry/common.c:88
 entry_SYSCALL_64_after_hwframe+0x63/0x6b
RIP: 0033:0x7f7172f56677
Code: 07 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 b8 ff ff ff f7 d8 64 89 02 b8
RSP: 002b:00007ffe85c2eed8 EFLAGS: 00000206 ORIG_RAX: 00000000000000a6
RAX: 0000000000000000 RBX: 0000000000020373 RCX: 00007f7172f56677
RDX: 0000000000000000 RSI: 000000000000000a RDI: 00007ffe85c2ef90
RBP: 00007ffe85c2ef90 R08: 0000000000000000 R09: 0000000000000000
R10: 00000000ffffffff R11: 0000000000000206 R12: 00007ffe85c30000
R13: 0000555556d0d6c0 R14: 431bde82d7b634db R15: 00007ffe85c30020
 </TASK>

Crashes (86):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/11/07 15:19 upstream be3ca57cfb77 83211397 .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-kasan-gce-root WARNING in btrfs_put_block_group
2024/09/30 10:04 upstream 9852d85ec9d4 ba29ff75 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in btrfs_put_block_group
2024/09/12 12:28 upstream 77f587896757 60e1a995 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in btrfs_put_block_group
2024/08/22 09:25 upstream 872cf28b8df9 ca02180f .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in btrfs_put_block_group
2024/07/02 09:03 upstream 73e931504f8e b294e901 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in btrfs_put_block_group
2024/06/28 09:19 upstream 6d6444ba8205 6ef39602 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in btrfs_put_block_group
2024/06/28 07:14 upstream 6d6444ba8205 6ef39602 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in btrfs_put_block_group
2024/06/28 05:17 upstream 6d6444ba8205 6ef39602 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in btrfs_put_block_group
2024/06/28 02:40 upstream 6d6444ba8205 6ef39602 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in btrfs_put_block_group
2024/06/27 22:14 upstream afcd48134c58 6ef39602 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in btrfs_put_block_group
2024/06/27 20:38 upstream afcd48134c58 6ef39602 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in btrfs_put_block_group
2024/06/27 18:33 upstream afcd48134c58 6ef39602 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in btrfs_put_block_group
2024/06/27 16:42 upstream afcd48134c58 6ef39602 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in btrfs_put_block_group
2024/06/27 15:40 upstream afcd48134c58 6ef39602 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in btrfs_put_block_group
2024/06/27 14:25 upstream afcd48134c58 6ef39602 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in btrfs_put_block_group
2024/06/27 11:25 upstream afcd48134c58 6ef39602 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in btrfs_put_block_group
2024/06/27 05:12 upstream 24ca36a562d6 c6d33a01 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in btrfs_put_block_group
2024/06/26 21:15 upstream 55027e689933 c6d33a01 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in btrfs_put_block_group
2024/06/26 17:31 upstream 55027e689933 c6d33a01 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in btrfs_put_block_group
2024/06/26 15:44 upstream 55027e689933 c6d33a01 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in btrfs_put_block_group
2024/06/26 09:31 upstream 55027e689933 dec8bc94 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in btrfs_put_block_group
2024/06/26 08:28 upstream 55027e689933 dec8bc94 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in btrfs_put_block_group
2024/06/26 05:55 upstream 55027e689933 dec8bc94 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in btrfs_put_block_group
2024/06/26 04:44 upstream 55027e689933 dec8bc94 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in btrfs_put_block_group
2024/06/26 03:21 upstream 55027e689933 dec8bc94 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in btrfs_put_block_group
2024/06/26 01:40 upstream 55027e689933 dec8bc94 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in btrfs_put_block_group
2024/06/25 20:54 upstream 55027e689933 04bd2a30 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in btrfs_put_block_group
2024/06/25 16:37 upstream 55027e689933 04bd2a30 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in btrfs_put_block_group
2024/06/25 15:06 upstream 55027e689933 04bd2a30 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in btrfs_put_block_group
2024/06/25 13:16 upstream 55027e689933 04bd2a30 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in btrfs_put_block_group
2024/06/25 09:51 upstream 55027e689933 04bd2a30 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in btrfs_put_block_group
2024/06/25 07:19 upstream 626737a5791b 215eef4a .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in btrfs_put_block_group
2024/06/25 05:58 upstream 626737a5791b 215eef4a .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in btrfs_put_block_group
2024/06/25 02:56 upstream 626737a5791b 215eef4a .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in btrfs_put_block_group
2024/06/25 02:42 upstream 626737a5791b 215eef4a .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in btrfs_put_block_group
2024/06/25 01:57 upstream 626737a5791b 215eef4a .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in btrfs_put_block_group
2024/06/25 01:29 upstream 626737a5791b 215eef4a .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in btrfs_put_block_group
2024/06/09 18:53 upstream 771ed66105de 82c05ab8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in btrfs_put_block_group
2024/06/07 06:30 upstream d30d0e49da71 121701b6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in btrfs_put_block_group
2024/06/03 15:43 upstream c3f38fa61af7 0aba2352 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in btrfs_put_block_group
2024/05/10 15:47 upstream 448b3fe5a0ea f7c35481 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in btrfs_put_block_group
2024/05/02 15:22 upstream 0106679839f7 3ba885bc .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root WARNING in btrfs_put_block_group
2024/05/02 11:52 upstream 0106679839f7 3ba885bc .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in btrfs_put_block_group
2024/05/02 11:49 upstream 0106679839f7 3ba885bc .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in btrfs_put_block_group
2024/05/02 11:47 upstream 0106679839f7 3ba885bc .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in btrfs_put_block_group
2024/05/02 11:46 upstream 0106679839f7 3ba885bc .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in btrfs_put_block_group
2024/01/20 12:51 upstream 9d64bf433c53 9bd8dcda .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root WARNING in btrfs_put_block_group
2024/06/07 13:18 upstream 8a92980606e3 c2e07261 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING in btrfs_put_block_group
2024/06/13 11:11 upstream 2ccbdf43d5e7 c2e07261 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 WARNING in btrfs_put_block_group
2023/04/22 11:33 upstream 8e41e0a57566 2b32bd34 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in btrfs_put_block_group
2024/04/30 22:57 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 6a71d2909427 9e0e6af1 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in btrfs_put_block_group
2024/04/30 22:57 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 6a71d2909427 9e0e6af1 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in btrfs_put_block_group
2024/04/30 22:57 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 6a71d2909427 9e0e6af1 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in btrfs_put_block_group
* Struck through repros no longer work on HEAD.