syzbot


WARNING in btrfs_run_delayed_refs

Status: upstream: reported C repro on 2023/02/08 10:50
Subsystems: btrfs
[Documentation on labels]
Reported-by: syzbot+84c412cc759e849edb36@syzkaller.appspotmail.com
First crash: 492d, last: 492d
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 470d 850d 0/1 upstream: reported C repro on 2022/02/14 22:12
upstream WARNING in btrfs_run_delayed_refs (2) btrfs C done 25 33d 357d 0/27 upstream: reported C repro on 2023/06/22 14:13
upstream WARNING in btrfs_run_delayed_refs btrfs C error done 15 493d 606d 22/27 fixed on 2023/03/15 11:57
linux-5.15 WARNING in btrfs_run_delayed_refs origin:lts-only C error 12 144d 438d 0/3 upstream: reported C repro on 2023/04/02 18:59

Sample crash report:
RDX: 0000000000000800 RSI: 000000000000c0fc RDI: 0000000000000005
RBP: 00007fffbba5b800 R08: 0000000000000002 R09: 00007fffbba5b780
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000006
R13: 00007fffbba5b910 R14: 431bde82d7b634db R15: 00007fffbba5b810
------------[ cut here ]------------
WARNING: CPU: 1 PID: 8019 at fs/btrfs/extent-tree.c:3088 btrfs_run_delayed_refs.cold+0x14/0x37 fs/btrfs/extent-tree.c:3088
Kernel panic - not syncing: kernel: panic_on_warn set ...

CPU: 1 PID: 8019 Comm: syz-executor393 Not tainted 4.14.305-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023
Call Trace:
 __dump_stack lib/dump_stack.c:17 [inline]
 dump_stack+0x1b2/0x281 lib/dump_stack.c:58
 panic+0x21d/0x451 kernel/panic.c:247
 check_panic_on_warn.cold+0x19/0x35 kernel/panic.c:171
 __warn+0xdf/0x1e0 kernel/panic.c:603
 report_bug+0x208/0x250 lib/bug.c:183
 fixup_bug arch/x86/kernel/traps.c:177 [inline]
 fixup_bug arch/x86/kernel/traps.c:172 [inline]
 do_error_trap+0x195/0x2d0 arch/x86/kernel/traps.c:295
 invalid_op+0x1b/0x40 arch/x86/entry/entry_64.S:967
RIP: 0010:btrfs_run_delayed_refs.cold+0x14/0x37 fs/btrfs/extent-tree.c:3088
RSP: 0018:ffff888095d07bb0 EFLAGS: 00010286
RAX: 0000000000000026 RBX: dffffc0000000000 RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffffffff878bd360 RDI: ffffed1012ba0f6c
RBP: ffff88808d361c38 R08: 0000000000000026 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: 00000000fffffff4
R13: ffff88808d361c98 R14: 0000000000000000 R15: ffff888099431d80
 btrfs_commit_transaction+0x7ac/0x2210 fs/btrfs/transaction.c:2201
 btrfs_sync_file+0xad6/0xd90 fs/btrfs/file.c:2245
 vfs_fsync_range+0x103/0x260 fs/sync.c:196
 vfs_fsync fs/sync.c:210 [inline]
 do_fsync fs/sync.c:220 [inline]
 SYSC_fsync fs/sync.c:228 [inline]
 SyS_fsync+0x3a/0x80 fs/sync.c:226
 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292
 entry_SYSCALL_64_after_hwframe+0x5e/0xd3
RIP: 0033:0x7fc3906f02e9
RSP: 002b:00007fffbba5b7e8 EFLAGS: 00000246 ORIG_RAX: 000000000000004a
RAX: ffffffffffffffda RBX: 0000000000000002 RCX: 00007fc3906f02e9
RDX: 0000000000000800 RSI: 000000000000c0fc RDI: 0000000000000005
RBP: 00007fffbba5b800 R08: 0000000000000002 R09: 00007fffbba5b780
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000006
R13: 00007fffbba5b910 R14: 431bde82d7b634db R15: 00007fffbba5b810
Kernel Offset: disabled
Rebooting in 86400 seconds..

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/02/08 10:49 linux-4.14.y a8ad60f2af58 15c3d445 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-4-14 WARNING in btrfs_run_delayed_refs
* Struck through repros no longer work on HEAD.