syzbot


WARNING in btrfs_run_delayed_refs

Status: upstream: reported C repro on 2022/02/14 22:12
Subsystems: btrfs
[Documentation on labels]
Reported-by: syzbot+4b2b69a259af6f44dc9e@syzkaller.appspotmail.com
First crash: 998d, last: 618d
Fix bisection: failed (error log, bisect log)
  
Similar bugs (4)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream WARNING in btrfs_run_delayed_refs (2) btrfs C done 25 31d 505d 0/28 upstream: reported C repro on 2023/06/22 14:13
upstream WARNING in btrfs_run_delayed_refs btrfs C error done 15 640d 753d 22/28 fixed on 2023/03/15 11:57
linux-4.14 WARNING in btrfs_run_delayed_refs btrfs C 1 639d 639d 0/1 upstream: reported C repro on 2023/02/08 10:50
linux-5.15 WARNING in btrfs_run_delayed_refs origin:lts-only C error 15 34d 586d 0/3 upstream: reported C repro on 2023/04/02 18:59

Sample crash report:
RDX: 0000000000000ce0 RSI: 000000000000ffc2 RDI: 00007ffc6c389ce0
RBP: 00007ffc6c389ce0 R08: 0000000000000001 R09: 00007ffc6c389cf0
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000005
R13: 00007ffc6c389d20 R14: 00007ffc6c389d00 R15: 0000000000000000
------------[ cut here ]------------
WARNING: CPU: 0 PID: 8088 at fs/btrfs/extent-tree.c:2938 btrfs_run_delayed_refs.part.0+0x2b7/0x310 fs/btrfs/extent-tree.c:2938
Kernel panic - not syncing: panic_on_warn set ...

CPU: 0 PID: 8088 Comm: syz-executor335 Not tainted 4.19.211-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023
Call Trace:
 __dump_stack lib/dump_stack.c:77 [inline]
 dump_stack+0x1fc/0x2ef lib/dump_stack.c:118
 panic+0x26a/0x50e kernel/panic.c:186
 __warn.cold+0x20/0x5a kernel/panic.c:541
 report_bug+0x262/0x2b0 lib/bug.c:183
 fixup_bug arch/x86/kernel/traps.c:178 [inline]
 fixup_bug arch/x86/kernel/traps.c:173 [inline]
 do_error_trap+0x1d7/0x310 arch/x86/kernel/traps.c:296
 invalid_op+0x14/0x20 arch/x86/entry/entry_64.S:1038
RIP: 0010:btrfs_run_delayed_refs.part.0+0x2b7/0x310 fs/btrfs/extent-tree.c:2938
Code: 89 e6 bf fb ff ff ff e8 37 f1 7e fe 41 83 fc fb 0f 84 e7 8a 16 05 e8 b8 ef 7e fe 44 89 e6 48 c7 c7 40 23 a4 88 e8 8e 27 0f 05 <0f> 0b e8 a2 ef 7e fe 44 89 e1 ba 7a 0b 00 00 48 89 ef 48 c7 c6 80
RSP: 0018:ffff8880955efc40 EFLAGS: 00010282
RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffffffff814dff01 RDI: ffffed1012abdf7a
RBP: ffff88808b4d9690 R08: 0000000000000001 R09: 0000000000000000
R10: 0000000000000005 R11: 0000000000000000 R12: 00000000fffffff4
R13: ffff88808b4d96e0 R14: ffff8880b2eac940 R15: 0000000000000018
 btrfs_run_delayed_refs+0xad/0xf0 fs/btrfs/extent-tree.c:2925
 btrfs_commit_transaction+0x173/0x2480 fs/btrfs/transaction.c:1972
 btrfs_sync_fs+0x120/0x490 fs/btrfs/super.c:1279
 sync_fs_one_sb fs/sync.c:80 [inline]
 sync_fs_one_sb+0xbe/0xf0 fs/sync.c:77
 iterate_supers+0x13c/0x290 fs/super.c:633
 ksys_sync+0xa8/0x150 fs/sync.c:115
 __ia32_sys_sync+0xa/0x10 fs/sync.c:124
 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x7fba8bfeb9e9
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 11 15 00 00 90 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:00007ffc6c389cb8 EFLAGS: 00000246 ORIG_RAX: 00000000000000a2
RAX: ffffffffffffffda RBX: 0000000000000001 RCX: 00007fba8bfeb9e9
RDX: 0000000000000ce0 RSI: 000000000000ffc2 RDI: 00007ffc6c389ce0
RBP: 00007ffc6c389ce0 R08: 0000000000000001 R09: 00007ffc6c389cf0
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000005
R13: 00007ffc6c389d20 R14: 00007ffc6c389d00 R15: 0000000000000000
Kernel Offset: disabled
Rebooting in 86400 seconds..

Crashes (9):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/01/28 06:00 linux-4.19.y 3f8a27f9e27b 9dfcf09c .config console log report syz C [disk image] [vmlinux] [mounted in repro] ci2-linux-4-19 WARNING in btrfs_run_delayed_refs
2023/01/22 19:36 linux-4.19.y 3f8a27f9e27b cc0f9968 .config console log report syz C [disk image] [vmlinux] [mounted in repro] ci2-linux-4-19 WARNING in btrfs_run_delayed_refs
2022/02/14 22:11 linux-4.19.y 3f8a27f9e27b 8b9ca619 .config console log report syz C ci2-linux-4-19 WARNING in btrfs_run_delayed_refs
2023/03/01 17:16 linux-4.19.y 3f8a27f9e27b ef65e6cb .config console log report info [disk image] [vmlinux] ci2-linux-4-19 WARNING in btrfs_run_delayed_refs
2023/02/25 04:59 linux-4.19.y 3f8a27f9e27b ee50e71c .config console log report info [disk image] [vmlinux] ci2-linux-4-19 WARNING in btrfs_run_delayed_refs
2023/02/25 03:08 linux-4.19.y 3f8a27f9e27b ee50e71c .config console log report info [disk image] [vmlinux] ci2-linux-4-19 WARNING in btrfs_run_delayed_refs
2023/02/20 12:20 linux-4.19.y 3f8a27f9e27b bcdf85f8 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 WARNING in btrfs_run_delayed_refs
2023/02/11 18:28 linux-4.19.y 3f8a27f9e27b 93e26d60 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 WARNING in btrfs_run_delayed_refs
2023/01/22 19:24 linux-4.19.y 3f8a27f9e27b cc0f9968 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 WARNING in btrfs_run_delayed_refs
* Struck through repros no longer work on HEAD.