syzbot


WARNING in cleanup_transaction (2)

Status: upstream: reported C repro on 2022/12/03 07:23
Subsystems: btrfs
[Documentation on labels]
Reported-by: syzbot+256cfdd2e21328f9182e@syzkaller.appspotmail.com
First crash: 682d, last: 595d
Similar bugs (5)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-6.1 WARNING in cleanup_transaction origin:upstream C error 16 39d 427d 0/3 upstream: reported C repro on 2023/08/15 21:58
linux-4.19 WARNING in cleanup_transaction 1 974d 974d 0/1 auto-closed as invalid on 2022/06/14 10:30
android-49 WARNING in cleanup_transaction 1 2371d 2371d 0/3 auto-closed as invalid on 2019/02/22 14:19
upstream WARNING in cleanup_transaction btrfs C error done 137 56d 727d 0/28 upstream: reported C repro on 2022/10/19 05:40
linux-4.14 WARNING in cleanup_transaction btrfs C 1 593d 666d 0/1 upstream: reported C repro on 2022/12/19 11:57

Sample crash report:
RBP: 00007ffddcbd4ae0 R08: 0000000000000002 R09: 0000000000003732
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000002
R13: 0000000000000000 R14: 431bde82d7b634db R15: 0000000000000000
BTRFS warning (device loop0): Skipping commit of aborted transaction.
------------[ cut here ]------------
WARNING: CPU: 1 PID: 8097 at fs/btrfs/transaction.c:1872 cleanup_transaction+0x1bf/0x250 fs/btrfs/transaction.c:1872
Kernel panic - not syncing: panic_on_warn set ...

CPU: 1 PID: 8097 Comm: syz-executor378 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:cleanup_transaction+0x1bf/0x250 fs/btrfs/transaction.c:1872
Code: 89 e6 bf fb ff ff ff e8 5f ed 7b fe 41 83 fc fb 0f 84 d5 b9 13 05 e8 e0 eb 7b fe 44 89 e6 48 c7 c7 80 af a4 88 e8 b6 23 0c 05 <0f> 0b e8 ca eb 7b fe 44 89 e1 ba 50 07 00 00 48 89 ef 48 c7 c6 a0
RSP: 0018:ffff8880955cfb18 EFLAGS: 00010282
RAX: 0000000000000000 RBX: 1ffff11012ab9f6a RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffffffff814dff01 RDI: ffffed1012ab9f55
RBP: ffff88808e3e3bd0 R08: 0000000000000001 R09: 0000000000000000
R10: 0000000000000005 R11: 0000000000000000 R12: 00000000fffffff4
R13: ffff88808e3e3c20 R14: ffff88808e3e3bf0 R15: 0000000000000000
 btrfs_commit_transaction+0x1de7/0x2480 fs/btrfs/transaction.c:2338
 btrfs_sync_file+0xbbf/0xd90 fs/btrfs/file.c:2249
 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:0x7fb0238c9ee9
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 14 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:00007ffddcbd4ad8 EFLAGS: 00000246 ORIG_RAX: 000000000000004a
RAX: ffffffffffffffda RBX: 00007ffddcbd4b38 RCX: 00007fb0238c9ee9
RDX: 0000000000000ae0 RSI: 000000000000c0fc RDI: 0000000000000005
RBP: 00007ffddcbd4ae0 R08: 0000000000000002 R09: 0000000000003732
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000002
R13: 0000000000000000 R14: 431bde82d7b634db R15: 0000000000000000
Kernel Offset: disabled
Rebooting in 86400 seconds..

Crashes (11):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/02/06 20:24 linux-4.19.y 3f8a27f9e27b 0a9c11b6 .config console log report syz C [disk image] [vmlinux] [mounted in repro] ci2-linux-4-19 WARNING in cleanup_transaction
2022/12/11 13:26 linux-4.19.y 3f8a27f9e27b 67be1ae7 .config console log report syz C [disk image] [vmlinux] [mounted in repro] ci2-linux-4-19 WARNING in cleanup_transaction
2022/12/03 07:35 linux-4.19.y 3f8a27f9e27b e080de16 .config console log report syz C [disk image] [vmlinux] [mounted in repro] ci2-linux-4-19 WARNING in cleanup_transaction
2023/03/01 00:51 linux-4.19.y 3f8a27f9e27b 95aee97a .config console log report info [disk image] [vmlinux] ci2-linux-4-19 WARNING in cleanup_transaction
2023/02/07 00:25 linux-4.19.y 3f8a27f9e27b 0a9c11b6 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 WARNING in cleanup_transaction
2023/02/03 01:03 linux-4.19.y 3f8a27f9e27b 16d19e30 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 WARNING in cleanup_transaction
2023/02/02 00:04 linux-4.19.y 3f8a27f9e27b 9a6f477c .config console log report info [disk image] [vmlinux] ci2-linux-4-19 WARNING in cleanup_transaction
2023/01/15 08:45 linux-4.19.y 3f8a27f9e27b a63719e7 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 WARNING in cleanup_transaction
2022/12/29 16:10 linux-4.19.y 3f8a27f9e27b 44712fbc .config console log report info [disk image] [vmlinux] ci2-linux-4-19 WARNING in cleanup_transaction
2022/12/24 05:59 linux-4.19.y 3f8a27f9e27b 9da18ae8 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 WARNING in cleanup_transaction
2022/12/03 07:22 linux-4.19.y 3f8a27f9e27b e080de16 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 WARNING in cleanup_transaction
* Struck through repros no longer work on HEAD.