syzbot


WARNING in cleanup_transaction

Status: upstream: reported C repro on 2022/10/19 05:40
Reported-by: syzbot+021d10c4d4edc87daa03@syzkaller.appspotmail.com
First crash: 45d, last: 41d

Cause bisection: failed (bisect log)

Fix bisection: fixed by (bisect log) :
commit 8bb808c6ad91ec3d332f072ce8f8aa4b16e307e0
Author: David Sterba <dsterba@suse.com>
Date: Thu Nov 3 13:39:01 2022 +0000

  btrfs: don't print stack trace when transaction is aborted due to ENOMEM

similar bugs (3):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.19 WARNING in cleanup_transaction 1 292d 292d 0/1 auto-closed as invalid on 2022/06/14 10:30
android-49 WARNING in cleanup_transaction 1 1689d 1688d 0/3 auto-closed as invalid on 2019/02/22 14:19
linux-4.19 WARNING in cleanup_transaction (2) C 2 7h38m 7h51m 0/1 upstream: reported C repro on 2022/12/03 07:23

Sample crash report:
BTRFS info (device loop0): clearing compat-ro feature flag for FREE_SPACE_TREE (0x1)
BTRFS info (device loop0): clearing compat-ro feature flag for FREE_SPACE_TREE_VALID (0x2)
BTRFS info (device loop0): checking UUID tree
BTRFS warning (device loop0): Skipping commit of aborted transaction.
------------[ cut here ]------------
WARNING: CPU: 0 PID: 3614 at fs/btrfs/transaction.c:1958 cleanup_transaction+0x1e1/0x770 fs/btrfs/transaction.c:1958
Modules linked in:
CPU: 1 PID: 3614 Comm: syz-executor893 Not tainted 6.0.0-syzkaller-09423-g493ffd6605b2 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/22/2022
RIP: 0010:cleanup_transaction+0x1e1/0x770 fs/btrfs/transaction.c:1958
Code: 24 48 c7 c6 40 d0 da 8a 44 89 f2 31 c0 e8 59 03 a2 06 eb 1a e8 10 62 04 fe 48 c7 c7 60 cf da 8a 44 89 f6 31 c0 e8 6f c6 cc fd <0f> 0b b3 01 44 0f b6 c3 48 8b 7c 24 08 48 c7 c6 40 d3 da 8a ba a6
RSP: 0018:ffffc90003a4fa20 EFLAGS: 00010246
RAX: 3c5edefe8e400a00 RBX: ffff88801cedc001 RCX: ffff888025b19d80
RDX: 0000000000000000 RSI: 0000000080000000 RDI: 0000000000000000
RBP: ffffc90003a4fb50 R08: ffffffff816aa79d R09: ffffed1017344f13
R10: ffffed1017344f13 R11: 1ffff11017344f12 R12: ffff88807091f1a0
R13: 1ffff1100e123e34 R14: 00000000fffffff4 R15: dffffc0000000000
FS:  0000555556a50300(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fb7a96d7300 CR3: 000000007c8ab000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 btrfs_commit_transaction+0x2cd4/0x3760 fs/btrfs/transaction.c:2531
 iterate_supers+0x137/0x1f0 fs/super.c:723
 ksys_sync+0xd5/0x1c0 fs/sync.c:104
 __do_sys_sync+0xa/0x10 fs/sync.c:113
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f3a04273e09
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 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:00007fff68d2aca8 EFLAGS: 00000246 ORIG_RAX: 00000000000000a2
RAX: ffffffffffffffda RBX: 0000000000000001 RCX: 00007f3a04273e09
RDX: 0000000000000cd0 RSI: 000000000000c0c2 RDI: 00007fff68d2acd0
RBP: 0000000000000003 R08: 0000000000000001 R09: 0000000034313633
R10: 0000000000000000 R11: 0000000000000246 R12: 00007fff68d2adb0
R13: 00007fff68d2acd0 R14: 0000000100000000 R15: 0000000000000000
 </TASK>

Crashes (4):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-upstream-fs 2022/10/19 03:06 upstream 493ffd6605b2 b31320fc .config log report syz C WARNING in cleanup_transaction
ci2-upstream-fs 2022/10/23 00:37 upstream 440b7895c990 c0b80a55 .config log report info WARNING in cleanup_transaction
ci-upstream-kasan-gce-smack-root 2022/10/21 21:24 upstream e35184f32151 4bfd3c27 .config log report info WARNING in cleanup_transaction
ci2-upstream-fs 2022/10/19 02:56 upstream 493ffd6605b2 b31320fc .config log report info WARNING in cleanup_transaction
* Struck through repros no longer work on HEAD.