syzbot


WARNING in btrfs_run_delayed_refs

Status: upstream: reported C repro on 2022/10/17 02:15
Reported-by: syzbot+ebdb2403435c4136db2b@syzkaller.appspotmail.com
First crash: 44d, last: 19d

Cause bisection: failed (bisect log)
similar bugs (1):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.19 WARNING in btrfs_run_delayed_refs C error 1 287d 287d 0/1 upstream: reported C repro on 2022/02/14 22:12

Sample crash report:
loop0: detected capacity change from 0 to 32768
BTRFS info (device loop0): using xxhash64 (xxhash64-generic) checksum algorithm
BTRFS info (device loop0): using free space tree
BTRFS info (device loop0): enabling ssd optimizations
------------[ cut here ]------------
BTRFS: Transaction aborted (error -12)
WARNING: CPU: 0 PID: 3675 at fs/btrfs/extent-tree.c:2141 btrfs_run_delayed_refs+0x46c/0x530 fs/btrfs/extent-tree.c:2141
Modules linked in:
CPU: 0 PID: 3675 Comm: syz-executor427 Not tainted 6.1.0-rc2-syzkaller-00078-g98555239e4c3 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/11/2022
RIP: 0010:btrfs_run_delayed_refs+0x46c/0x530 fs/btrfs/extent-tree.c:2141
Code: f2 21 fe 44 89 e6 bf e2 ff ff ff e8 ce ee 21 fe 41 83 fc e2 74 45 e8 f3 f1 21 fe 44 89 e6 48 c7 c7 40 04 37 8a e8 50 13 ef 05 <0f> 0b c6 44 24 24 01 e8 d8 f1 21 fe 44 8b 44 24 24 44 89 e1 4c 89
RSP: 0018:ffffc900046cf898 EFLAGS: 00010286
RAX: 0000000000000000 RBX: ffff888077dbc000 RCX: 0000000000000000
RDX: ffff88807f18ba80 RSI: ffffffff81621b98 RDI: fffff520008d9f05
RBP: ffff888077dbc000 R08: 0000000000000005 R09: 0000000000000000
R10: 0000000080000000 R11: 0000000046525442 R12: 00000000fffffff4
R13: ffff88806f82d738 R14: 0000000000000000 R15: ffff888077dbc000
FS:  00005555558db300(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007eff05bfd130 CR3: 000000001fae1000 CR4: 0000000000350ef0
Call Trace:
 <TASK>
 btrfs_commit_transaction+0x1e93/0x36d0 fs/btrfs/transaction.c:2123
 btrfs_ioctl_set_fslabel+0x326/0x3a0 fs/btrfs/ioctl.c:5025
 btrfs_ioctl+0x25e/0x5b70 fs/btrfs/ioctl.c:5435
 vfs_ioctl fs/ioctl.c:51 [inline]
 __do_sys_ioctl fs/ioctl.c:870 [inline]
 __se_sys_ioctl fs/ioctl.c:856 [inline]
 __x64_sys_ioctl+0x193/0x200 fs/ioctl.c:856
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7eff05b84f49
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 c0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffceb008028 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 0000000000000001 RCX: 00007eff05b84f49
RDX: 0000000020000980 RSI: 0000000041009432 RDI: 0000000000000004
RBP: 00007ffceb008050 R08: 0000000000000001 R09: 00007ffceb008060
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000006
R13: 00007eff05bcd6b8 R14: 00007eff05bcd950 R15: 0000000000000006
 </TASK>

Crashes (10):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-kasan-gce-root 2022/10/27 09:58 upstream 98555239e4c3 86777b7f .config log report syz C WARNING in btrfs_run_delayed_refs
ci2-upstream-fs 2022/10/16 11:27 upstream 493ffd6605b2 67cb024c .config log report syz C WARNING in btrfs_run_delayed_refs
ci-upstream-gce-arm64 2022/10/16 14:05 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 67cb024c .config log report syz C WARNING in btrfs_run_delayed_refs
ci2-upstream-fs 2022/11/10 01:29 upstream f67dd6ce0723 bebca8b7 .config log report info WARNING in btrfs_run_delayed_refs
ci2-upstream-fs 2022/11/06 22:36 upstream 089d1c31224e 6d752409 .config log report info WARNING in btrfs_run_delayed_refs
ci-upstream-kasan-gce-root 2022/11/01 09:16 upstream b229b6ca5abb a1d8560a .config log report info WARNING in btrfs_run_delayed_refs
ci-upstream-kasan-gce-root 2022/10/31 06:20 upstream b229b6ca5abb 2a71366b .config log report info WARNING in btrfs_run_delayed_refs
ci2-upstream-fs 2022/10/16 11:06 upstream 493ffd6605b2 67cb024c .config log report info WARNING in btrfs_run_delayed_refs
ci-upstream-gce-arm64 2022/10/30 13:58 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 2a71366b .config log report info WARNING in btrfs_run_delayed_refs
ci-upstream-gce-arm64 2022/10/29 10:25 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 899d812a .config log report info WARNING in btrfs_run_delayed_refs
* Struck through repros no longer work on HEAD.