syzbot


WARNING in btrfs_sync_log

Status: upstream: reported on 2023/02/06 19:49
Subsystems: btrfs
[Documentation on labels]
Reported-by: syzbot+9d994027534e6c98036a@syzkaller.appspotmail.com
First crash: 534d, last: 534d
Similar bugs (3)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-5.15 WARNING in btrfs_sync_log (2) origin:lts-only C error 4 245d 319d 0/3 upstream: reported C repro on 2023/09/09 20:33
upstream WARNING in btrfs_sync_log btrfs C error inconclusive 6 136d 647d 26/27 fixed on 2024/05/22 09:57
linux-5.15 WARNING in btrfs_sync_log 3 458d 470d 0/3 auto-obsoleted due to no activity on 2023/08/21 23:02

Sample crash report:
RBP: 00007fee35ea51d0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000002
R13: 00007ffe6b47d30f R14: 00007fee35ea5300 R15: 0000000000022000
------------[ cut here ]------------
WARNING: CPU: 0 PID: 1698 at fs/btrfs/tree-log.c:3097 btrfs_sync_log+0x1d22/0x2170 fs/btrfs/tree-log.c:3097
Kernel panic - not syncing: panic_on_warn set ...

CPU: 0 PID: 1698 Comm: syz-executor.1 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_sync_log+0x1d22/0x2170 fs/btrfs/tree-log.c:3097
Code: 89 e6 bf fb ff ff ff e8 0c 02 6d fe 41 83 fc fb 0f 84 03 56 05 05 e8 8d 00 6d fe 44 89 e6 48 c7 c7 60 60 a5 88 e8 63 38 fd 04 <0f> 0b e8 77 00 6d fe 48 8b 7c 24 38 44 89 e1 ba 19 0c 00 00 48 c7
RSP: 0018:ffff8880396079f8 EFLAGS: 00010286
RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000
RDX: 0000000000040000 RSI: ffffffff814dff01 RDI: ffffed10072c0f31
RBP: ffff8880a1ec6e18 R08: 0000000000000001 R09: 0000000000000000
R10: 0000000000000005 R11: 0000000000000000 R12: 00000000fffffff4
R13: ffff88809cfa6a58 R14: ffff8880aff046c0 R15: ffff8880ab27c400
 btrfs_sync_file+0xbfb/0xd90 fs/btrfs/file.c:2243
 vfs_fsync_range+0x13a/0x220 fs/sync.c:197
 vfs_fsync fs/sync.c:211 [inline]
 do_fsync fs/sync.c:221 [inline]
 __do_sys_fsync fs/sync.c:229 [inline]
 __se_sys_fsync fs/sync.c:227 [inline]
 __x64_sys_fsync+0x6b/0xc0 fs/sync.c:227
 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x7fee379330c9
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 f1 19 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 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fee35ea5168 EFLAGS: 00000246 ORIG_RAX: 000000000000004a
RAX: ffffffffffffffda RBX: 00007fee37a52f80 RCX: 00007fee379330c9
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000006
RBP: 00007fee35ea51d0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000002
R13: 00007ffe6b47d30f R14: 00007fee35ea5300 R15: 0000000000022000
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/06 19:49 linux-4.19.y 3f8a27f9e27b 0a9c11b6 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 WARNING in btrfs_sync_log
* Struck through repros no longer work on HEAD.