syzbot


WARNING in btrfs_run_delayed_refs

Status: upstream: reported C repro on 2023/04/02 18:59
Bug presence: origin:lts-only
[Documentation on labels]
Reported-by: syzbot+7e32a3da87c746be16c0@syzkaller.appspotmail.com
First crash: 471d, last: 177d
Fix bisection: failed (error log, bisect log)
  
Bug presence (2)
Date Name Commit Repro Result
2023/05/16 linux-5.15.y (ToT) b0ece631f84a C [report] WARNING in btrfs_run_delayed_refs
2023/05/16 upstream (ToT) f1fcbaa18b28 C Didn't crash
Similar bugs (4)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.19 WARNING in btrfs_run_delayed_refs btrfs C error 9 503d 883d 0/1 upstream: reported C repro on 2022/02/14 22:12
upstream WARNING in btrfs_run_delayed_refs (2) btrfs C done 25 8d14h 390d 0/27 upstream: reported C repro on 2023/06/22 14:13
upstream WARNING in btrfs_run_delayed_refs btrfs C error done 15 526d 639d 22/27 fixed on 2023/03/15 11:57
linux-4.14 WARNING in btrfs_run_delayed_refs btrfs C 1 525d 525d 0/1 upstream: reported C repro on 2023/02/08 10:50
Fix bisection attempts (7)
Created Duration User Patch Repo Result
2024/07/09 05:48 1m fix candidate upstream error job log
2024/03/08 00:14 0m fix candidate upstream error job log
2024/02/02 20:08 0m fix candidate upstream error job log
2023/12/17 13:53 1m fix candidate upstream error job log
2023/11/16 03:03 1m fix candidate upstream error job log
2023/10/11 17:05 0m fix candidate upstream error job log
2023/10/07 10:15 0m bisect fix linux-5.15.y error job log

Sample crash report:
 el0t_64_sync_handler+0x84/0xe4 arch/arm64/kernel/entry-common.c:626
 el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584
BTRFS error (device loop0): failed to run delayed ref for logical 5242880 num_bytes 4096 type 176 action 1 ref_mod 1: -12
------------[ cut here ]------------
WARNING: CPU: 0 PID: 3970 at fs/btrfs/extent-tree.c:2157 btrfs_run_delayed_refs+0x408/0x47c fs/btrfs/extent-tree.c:2157
Modules linked in:
CPU: 0 PID: 3970 Comm: syz-executor278 Not tainted 5.15.147-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023
pstate: 60400005 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
pc : btrfs_run_delayed_refs+0x408/0x47c fs/btrfs/extent-tree.c:2157
lr : btrfs_run_delayed_refs+0x408/0x47c fs/btrfs/extent-tree.c:2157
sp : ffff80001cc577b0
x29: ffff80001cc577c0 x28: dfff800000000000 x27: ffff0000da221024
x26: 00000000fffffff4 x25: ffff0000dc1ab108 x24: 1fffe0001b835621
x23: ffff0000dc1ab108 x22: 0000000000000000 x21: 0000000000000006
x20: ffff0000da221000 x19: ffff0000dc1ab0b0 x18: 0000000000000001
x17: 0000000000000000 x16: ffff800008334208 x15: 00000000ffffffff
x14: ffff0000c8d651c0 x13: 0000000000000001 x12: 0000000000000001
x11: 0000000000000000 x10: 0000000000000000 x9 : 0f33d413c60b7a00
x8 : 0f33d413c60b7a00 x7 : 0000000000000001 x6 : 0000000000000001
x5 : ffff80001cc56f18 x4 : ffff8000149ff8e0 x3 : ffff800008334354
x2 : 0000000000000001 x1 : 0000000100000000 x0 : 0000000000000026
Call trace:
 btrfs_run_delayed_refs+0x408/0x47c fs/btrfs/extent-tree.c:2157
 btrfs_commit_transaction+0x1b8/0x30f0 fs/btrfs/transaction.c:2166
 btrfs_ioctl_set_fslabel+0x2e8/0x39c fs/btrfs/ioctl.c:4694
 btrfs_ioctl+0x50c/0xa5c fs/btrfs/ioctl.c:4921
 vfs_ioctl fs/ioctl.c:51 [inline]
 __do_sys_ioctl fs/ioctl.c:874 [inline]
 __se_sys_ioctl fs/ioctl.c:860 [inline]
 __arm64_sys_ioctl+0x14c/0x1c8 fs/ioctl.c:860
 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline]
 invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:52
 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142
 do_el0_svc+0x58/0x14c arch/arm64/kernel/syscall.c:181
 el0_svc+0x7c/0x1f0 arch/arm64/kernel/entry-common.c:608
 el0t_64_sync_handler+0x84/0xe4 arch/arm64/kernel/entry-common.c:626
 el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584
irq event stamp: 84428
hardirqs last  enabled at (84427): [<ffff800008329e94>] __up_console_sem+0xb4/0x100 kernel/printk/printk.c:257
hardirqs last disabled at (84428): [<ffff80001197e028>] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:396
softirqs last  enabled at (84418): [<ffff800008020ccc>] softirq_handle_end kernel/softirq.c:401 [inline]
softirqs last  enabled at (84418): [<ffff800008020ccc>] __do_softirq+0xb5c/0xdb0 kernel/softirq.c:587
softirqs last disabled at (84413): [<ffff8000081b5568>] do_softirq_own_stack include/asm-generic/softirq_stack.h:10 [inline]
softirqs last disabled at (84413): [<ffff8000081b5568>] invoke_softirq kernel/softirq.c:439 [inline]
softirqs last disabled at (84413): [<ffff8000081b5568>] __irq_exit_rcu+0x264/0x4d4 kernel/softirq.c:637
---[ end trace eb97c48aa561b0f7 ]---
BTRFS: error (device loop0) in btrfs_run_delayed_refs:2157: errno=-12 Out of memory
BTRFS info (device loop0): forced readonly

Crashes (12):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/01/21 19:02 linux-5.15.y ddcaf4999061 9bd8dcda .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan-arm64 WARNING in btrfs_run_delayed_refs
2023/04/02 19:34 linux-5.15.y c957cbb87315 f325deb0 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan-arm64 WARNING in btrfs_run_delayed_refs
2024/01/21 18:34 linux-5.15.y ddcaf4999061 9bd8dcda .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 WARNING in btrfs_run_delayed_refs
2023/07/16 22:59 linux-5.15.y d54cfc420586 35d9ecc5 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in btrfs_run_delayed_refs
2023/08/14 04:40 linux-5.15.y 24c4de4069cb 39990d51 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 WARNING in btrfs_run_delayed_refs
2023/07/09 10:09 linux-5.15.y d54cfc420586 668cb1fa .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 WARNING in btrfs_run_delayed_refs
2023/07/08 12:33 linux-5.15.y d54cfc420586 668cb1fa .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 WARNING in btrfs_run_delayed_refs
2023/06/23 12:15 linux-5.15.y f67653019430 79782afc .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 WARNING in btrfs_run_delayed_refs
2023/06/02 19:03 linux-5.15.y 0ab06468cbd1 a4ae4f42 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 WARNING in btrfs_run_delayed_refs
2023/04/27 20:04 linux-5.15.y f48aeeaaa64c 6f3d6fa7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 WARNING in btrfs_run_delayed_refs
2023/04/08 23:51 linux-5.15.y d86dfc4d95cd 71147e29 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 WARNING in btrfs_run_delayed_refs
2023/04/02 18:59 linux-5.15.y c957cbb87315 f325deb0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 WARNING in btrfs_run_delayed_refs
* Struck through repros no longer work on HEAD.