syzbot


WARNING in __btrfs_free_extent (3)

Status: upstream: reported on 2024/08/31 17:59
Subsystems: btrfs
[Documentation on labels]
Reported-by: syzbot+480676efc0c3a76b5214@syzkaller.appspotmail.com
First crash: 85d, last: 17d
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [btrfs?] WARNING in __btrfs_free_extent (3) 2 (3) 2024/09/02 10:23
Similar bugs (5)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream WARNING in __btrfs_free_extent (2) btrfs C done 118 99d 150d 27/28 fixed on 2024/08/16 16:03
upstream WARNING in __btrfs_free_extent btrfs C error 300 191d 749d 25/28 fixed on 2024/05/22 09:57
linux-6.1 WARNING in __btrfs_free_extent (2) 2 26d 26d 0/3 upstream: reported on 2024/10/26 04:57
linux-4.19 WARNING in __btrfs_free_extent btrfs C error 4 690d 708d 0/1 upstream: reported C repro on 2022/12/14 03:41
linux-6.1 WARNING in __btrfs_free_extent 1 177d 177d 0/3 auto-obsoleted due to no activity on 2024/09/04 10:24

Sample crash report:
------------[ cut here ]------------
BTRFS: Transaction aborted (error -2)
WARNING: CPU: 1 PID: 63 at fs/btrfs/extent-tree.c:2972 do_free_extent_accounting fs/btrfs/extent-tree.c:2972 [inline]
WARNING: CPU: 1 PID: 63 at fs/btrfs/extent-tree.c:2972 __btrfs_free_extent+0x32d1/0x3a10 fs/btrfs/extent-tree.c:3346
Modules linked in:
CPU: 1 UID: 0 PID: 63 Comm: kworker/u8:4 Not tainted 6.11.0-rc5-syzkaller-00057-g86987d84b968 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/06/2024
Workqueue: events_unbound btrfs_async_reclaim_metadata_space
RIP: 0010:do_free_extent_accounting fs/btrfs/extent-tree.c:2972 [inline]
RIP: 0010:__btrfs_free_extent+0x32d1/0x3a10 fs/btrfs/extent-tree.c:3346
Code: e8 24 a4 ae fd 90 0f 0b 90 90 e9 3c f3 ff ff e8 35 80 ec fd 90 48 c7 c7 00 79 2b 8c 44 8b 6c 24 18 44 89 ee e8 00 a4 ae fd 90 <0f> 0b 90 90 4c 8b 24 24 e9 4f f3 ff ff e8 0d 80 ec fd 90 48 c7 c7
RSP: 0018:ffffc900015e6f80 EFLAGS: 00010246
RAX: ec2b4374561a8400 RBX: ffff88805d790001 RCX: ffff888015581e00
RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000000
RBP: ffffc900015e7150 R08: ffffffff8155b212 R09: fffffbfff1cba0e0
R10: dffffc0000000000 R11: fffffbfff1cba0e0 R12: dffffc0000000000
R13: 00000000fffffffe R14: 0000000000000000 R15: ffff88805d3be5c8
FS:  0000000000000000(0000) GS:ffff8880b9300000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f3dca9f0270 CR3: 000000002dd02000 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:1724 [inline]
 run_one_delayed_ref fs/btrfs/extent-tree.c:1750 [inline]
 btrfs_run_delayed_refs_for_head fs/btrfs/extent-tree.c:2015 [inline]
 __btrfs_run_delayed_refs+0x112e/0x4680 fs/btrfs/extent-tree.c:2085
 btrfs_run_delayed_refs+0xe3/0x2c0 fs/btrfs/extent-tree.c:2197
 btrfs_commit_transaction+0x4be/0x3740 fs/btrfs/transaction.c:2198
 flush_space+0x19c/0xd00 fs/btrfs/space-info.c:835
 btrfs_async_reclaim_metadata_space+0x6dc/0x840 fs/btrfs/space-info.c:1106
 process_one_work kernel/workqueue.c:3231 [inline]
 process_scheduled_works+0xa2c/0x1830 kernel/workqueue.c:3312
 worker_thread+0x86d/0xd10 kernel/workqueue.c:3389
 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 (5):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/08/28 23:16 upstream 86987d84b968 ef3de9e8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in __btrfs_free_extent
2024/08/27 18:25 upstream 3e9bff3bbe13 6c853ff9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in __btrfs_free_extent
2024/08/27 17:53 upstream 3e9bff3bbe13 6c853ff9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in __btrfs_free_extent
2024/11/03 16:51 upstream 3e5e6c9900c3 f00eed24 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root WARNING in __btrfs_free_extent
2024/10/27 10:00 upstream 850925a8133c 65e8686b .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root WARNING in __btrfs_free_extent
* Struck through repros no longer work on HEAD.