syzbot


WARNING in __btrfs_free_extent (2)

Status: upstream: reported C repro on 2024/06/23 15:39
Subsystems: btrfs
[Documentation on labels]
Reported-by: syzbot+fe3566bcb509ae7764ef@syzkaller.appspotmail.com
Fix commit: btrfs: slightly loosen the requirement for qgroup removal
Patched on: [ci-upstream-linux-next-kasan-gce-root], missing on: [ci-qemu-native-arm64-kvm ci-qemu-upstream ci-qemu-upstream-386 ci-qemu2-arm32 ci-qemu2-arm64 ci-qemu2-arm64-compat ci-qemu2-arm64-mte ci-qemu2-riscv64 ci-upstream-bpf-kasan-gce ci-upstream-bpf-next-kasan-gce ci-upstream-gce-arm64 ci-upstream-gce-leak ci-upstream-kasan-badwrites-root ci-upstream-kasan-gce ci-upstream-kasan-gce-386 ci-upstream-kasan-gce-root ci-upstream-kasan-gce-selinux-root ci-upstream-kasan-gce-smack-root ci-upstream-kmsan-gce-386-root ci-upstream-kmsan-gce-root ci-upstream-net-kasan-gce ci-upstream-net-this-kasan-gce ci2-upstream-fs ci2-upstream-kcsan-gce ci2-upstream-net-next-test-gce ci2-upstream-usb]
First crash: 25d, last: 4d12h
Cause bisection: introduced by (bisect log) :
commit cecbb533b5fcec4ff77e786b7f94457f6cacd9e7
Author: Boris Burkov <boris@bur.io>
Date: Wed Jun 28 18:00:15 2023 +0000

  btrfs: record simple quota deltas in delayed refs

Crash: WARNING in __btrfs_free_extent (log)
Repro: C syz .config
  
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [btrfs?] WARNING in __btrfs_free_extent (2) 1 (3) 2024/06/28 21:46
Similar bugs (3)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream WARNING in __btrfs_free_extent btrfs C error 300 61d 620d 26/27 fixed on 2024/05/22 09:57
linux-4.19 WARNING in __btrfs_free_extent btrfs C error 4 560d 578d 0/1 upstream: reported C repro on 2022/12/14 03:41
linux-6.1 WARNING in __btrfs_free_extent 1 48d 48d 0/3 upstream: reported on 2024/05/27 10:24
Last patch testing requests (1)
Created Duration User Patch Repo Result
2024/06/28 01:01 18m lizhi.xu@windriver.com patch git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 2ccbdf43d5e7 report log

Sample crash report:
------------[ cut here ]------------
BTRFS: Transaction aborted (error -2)
WARNING: CPU: 1 PID: 5102 at fs/btrfs/extent-tree.c:2984 do_free_extent_accounting fs/btrfs/extent-tree.c:2984 [inline]
WARNING: CPU: 1 PID: 5102 at fs/btrfs/extent-tree.c:2984 __btrfs_free_extent+0x32d1/0x3a10 fs/btrfs/extent-tree.c:3358
Modules linked in:
CPU: 1 PID: 5102 Comm: btrfs-transacti Not tainted 6.10.0-rc7-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/07/2024
RIP: 0010:do_free_extent_accounting fs/btrfs/extent-tree.c:2984 [inline]
RIP: 0010:__btrfs_free_extent+0x32d1/0x3a10 fs/btrfs/extent-tree.c:3358
Code: e8 14 4f b1 fd 90 0f 0b 90 90 e9 3c f3 ff ff e8 15 21 ef fd 90 48 c7 c7 80 1d 0b 8c 44 8b 6c 24 18 44 89 ee e8 f0 4e b1 fd 90 <0f> 0b 90 90 4c 8b 24 24 e9 4f f3 ff ff e8 ed 20 ef fd 90 48 c7 c7
RSP: 0018:ffffc9000353f480 EFLAGS: 00010246
RAX: f6e7ef2b1599f500 RBX: ffff88807f860001 RCX: ffff888023fa5a00
RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000000
RBP: ffffc9000353f650 R08: ffffffff81585742 R09: fffffbfff1c39994
R10: dffffc0000000000 R11: fffffbfff1c39994 R12: dffffc0000000000
R13: 00000000fffffffe R14: 0000000000000000 R15: ffff88823bc42f18
FS:  0000000000000000(0000) GS:ffff8880b9500000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f8ffb436150 CR3: 0000000021c16000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 run_delayed_tree_ref fs/btrfs/extent-tree.c:1736 [inline]
 run_one_delayed_ref fs/btrfs/extent-tree.c:1762 [inline]
 btrfs_run_delayed_refs_for_head fs/btrfs/extent-tree.c:2027 [inline]
 __btrfs_run_delayed_refs+0x117c/0x4670 fs/btrfs/extent-tree.c:2097
 btrfs_run_delayed_refs+0xe3/0x2c0 fs/btrfs/extent-tree.c:2209
 btrfs_commit_transaction+0xf5d/0x3740 fs/btrfs/transaction.c:2400
 transaction_kthread+0x28a/0x500 fs/btrfs/disk-io.c:1611
 kthread+0x2f0/0x390 kernel/kthread.c:389
 ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:147
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244
 </TASK>

Crashes (52):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/07/08 16:34 upstream 256abd8e550c cde64f7d .config strace log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-upstream-fs WARNING in __btrfs_free_extent
2024/06/19 16:20 upstream 2ccbdf43d5e7 41b7e219 .config strace log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-upstream-fs WARNING in __btrfs_free_extent
2024/07/07 07:58 upstream 22f902dfc51e 2a40360c .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in __btrfs_free_extent
2024/07/07 07:56 upstream 22f902dfc51e 2a40360c .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in __btrfs_free_extent
2024/07/07 07:56 upstream 22f902dfc51e 2a40360c .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in __btrfs_free_extent
2024/07/07 05:59 upstream 22f902dfc51e bc4ebbb5 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root WARNING in __btrfs_free_extent
2024/07/04 11:08 upstream 795c58e4c7fc 409d975c .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root WARNING in __btrfs_free_extent
2024/06/24 19:47 upstream 626737a5791b 215eef4a .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in __btrfs_free_extent
2024/06/24 18:31 upstream 626737a5791b edc5149a .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in __btrfs_free_extent
2024/06/22 01:38 upstream 66cc544fd75c edc5149a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root WARNING in __btrfs_free_extent
2024/06/19 21:42 upstream 2ccbdf43d5e7 41b7e219 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root WARNING in __btrfs_free_extent
2024/06/19 16:29 upstream 2ccbdf43d5e7 41b7e219 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in __btrfs_free_extent
2024/06/19 16:22 upstream 2ccbdf43d5e7 41b7e219 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root WARNING in __btrfs_free_extent
2024/06/19 15:57 upstream 2ccbdf43d5e7 41b7e219 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in __btrfs_free_extent
2024/06/19 15:33 upstream 2ccbdf43d5e7 41b7e219 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in __btrfs_free_extent
2024/06/19 15:32 upstream 2ccbdf43d5e7 41b7e219 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in __btrfs_free_extent
2024/06/25 08:50 upstream 55027e689933 c2e07261 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING in __btrfs_free_extent
2024/06/25 08:16 upstream 55027e689933 c2e07261 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING in __btrfs_free_extent
2024/06/21 00:14 upstream 50736169ecc8 c2e07261 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING in __btrfs_free_extent
2024/06/19 19:33 upstream 2ccbdf43d5e7 c2e07261 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING in __btrfs_free_extent
2024/06/19 16:30 upstream 2ccbdf43d5e7 c2e07261 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING in __btrfs_free_extent
2024/06/19 16:30 upstream 2ccbdf43d5e7 c2e07261 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING in __btrfs_free_extent
2024/06/19 16:29 upstream 2ccbdf43d5e7 c2e07261 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING in __btrfs_free_extent
2024/06/19 16:29 upstream 2ccbdf43d5e7 c2e07261 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING in __btrfs_free_extent
2024/06/19 16:28 upstream 2ccbdf43d5e7 c2e07261 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING in __btrfs_free_extent
2024/06/19 16:27 upstream 2ccbdf43d5e7 c2e07261 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING in __btrfs_free_extent
2024/06/19 16:27 upstream 2ccbdf43d5e7 c2e07261 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING in __btrfs_free_extent
2024/06/19 16:26 upstream 2ccbdf43d5e7 c2e07261 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING in __btrfs_free_extent
2024/06/19 16:26 upstream 2ccbdf43d5e7 c2e07261 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING in __btrfs_free_extent
2024/06/19 16:25 upstream 2ccbdf43d5e7 c2e07261 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING in __btrfs_free_extent
2024/06/19 16:24 upstream 2ccbdf43d5e7 c2e07261 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING in __btrfs_free_extent
2024/06/19 16:23 upstream 2ccbdf43d5e7 c2e07261 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING in __btrfs_free_extent
2024/06/19 16:23 upstream 2ccbdf43d5e7 c2e07261 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING in __btrfs_free_extent
2024/06/19 16:20 upstream 2ccbdf43d5e7 c2e07261 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING in __btrfs_free_extent
2024/06/19 15:47 upstream 2ccbdf43d5e7 c2e07261 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING in __btrfs_free_extent
2024/06/19 15:46 upstream 2ccbdf43d5e7 c2e07261 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING in __btrfs_free_extent
2024/06/24 21:58 upstream 626737a5791b c2e07261 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 WARNING in __btrfs_free_extent
2024/06/23 00:13 upstream 563a50672d8a c2e07261 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 WARNING in __btrfs_free_extent
2024/06/23 00:13 upstream 563a50672d8a c2e07261 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 WARNING in __btrfs_free_extent
2024/06/22 12:48 upstream 35bb670d65fc c2e07261 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 WARNING in __btrfs_free_extent
2024/06/20 09:24 upstream 2ccbdf43d5e7 c2e07261 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 WARNING in __btrfs_free_extent
2024/06/20 06:18 upstream 2ccbdf43d5e7 c2e07261 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 WARNING in __btrfs_free_extent
2024/07/10 10:45 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci ef445d1539dd e7213be3 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in __btrfs_free_extent
2024/07/09 06:38 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 1a6f53de2eb9 bc23a442 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in __btrfs_free_extent
2024/07/09 05:05 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 1a6f53de2eb9 bc23a442 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in __btrfs_free_extent
2024/07/08 06:03 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 8a03d70c27fc bc4ebbb5 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in __btrfs_free_extent
2024/07/07 13:53 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 8a03d70c27fc bc4ebbb5 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in __btrfs_free_extent
2024/07/07 09:59 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 8a03d70c27fc bc4ebbb5 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in __btrfs_free_extent
* Struck through repros no longer work on HEAD.