syzbot


WARNING in btrfs_commit_transaction

Status: upstream: reported C repro on 2023/10/11 08:58
Bug presence: origin:upstream
[Documentation on labels]
Reported-by: syzbot+3b29376a259c4c012cc0@syzkaller.appspotmail.com
First crash: 538d, last: 23d
Bug presence (1)
Date Name Commit Repro Result
2024/01/27 upstream (ToT) 3a5879d495b2 C [report] WARNING in btrfs_commit_transaction
Similar bugs (6)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream WARNING in btrfs_commit_transaction btrfs C inconclusive done 3 787d 881d 22/28 fixed on 2023/02/24 13:50
linux-4.19 WARNING in btrfs_commit_transaction (2) 1 844d 844d 0/1 auto-obsoleted due to no activity on 2023/04/08 10:50
linux-4.14 WARNING in btrfs_commit_transaction btrfs C 2 763d 1135d 0/1 upstream: reported C repro on 2022/02/21 07:21
linux-4.19 WARNING in btrfs_commit_transaction 1 1457d 1457d 0/1 auto-closed as invalid on 2021/08/03 10:34
linux-5.15 WARNING in btrfs_commit_transaction origin:lts-only C done 58 2d21h 715d 0/3 upstream: reported C repro on 2023/04/17 01:21
upstream WARNING in btrfs_commit_transaction (2) btrfs C done 581 1d05h 726d 0/28 upstream: reported C repro on 2023/04/06 02:24
Fix bisection attempts (8)
Created Duration User Patch Repo Result
2025/03/05 05:19 1h26m bisect fix linux-6.1.y OK (0) job log log
2025/01/31 18:44 1h22m bisect fix linux-6.1.y OK (0) job log log
2024/12/18 06:08 2h25m bisect fix linux-6.1.y OK (0) job log log
2024/09/28 08:34 1h08m bisect fix linux-6.1.y OK (0) job log log
2024/08/20 13:48 3h29m bisect fix linux-6.1.y OK (0) job log log
2024/07/07 19:23 1h53m bisect fix linux-6.1.y OK (0) job log log
2024/04/19 02:00 2h44m bisect fix linux-6.1.y OK (0) job log log
2024/03/16 16:21 1h31m bisect fix linux-6.1.y OK (0) job log log

Sample crash report:
BTRFS info (device loop3): relocating block group 6881280 flags data|metadata
BTRFS info (device loop3): relocating block group 5242880 flags data|metadata
BTRFS warning (device loop3): Skipping commit of aborted transaction.
------------[ cut here ]------------
WARNING: CPU: 0 PID: 4425 at fs/btrfs/transaction.c:1994 cleanup_transaction fs/btrfs/transaction.c:1994 [inline]
WARNING: CPU: 0 PID: 4425 at fs/btrfs/transaction.c:1994 btrfs_commit_transaction+0x33b4/0x3c70 fs/btrfs/transaction.c:2580
Modules linked in:
CPU: 0 PID: 4425 Comm: syz-executor121 Tainted: G        W          6.1.122-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024
RIP: 0010:cleanup_transaction fs/btrfs/transaction.c:1994 [inline]
RIP: 0010:btrfs_commit_transaction+0x33b4/0x3c70 fs/btrfs/transaction.c:2580
Code: 89 e7 e8 4f 99 b0 00 e9 24 d3 ff ff e8 d5 c9 f6 fd e9 fe fe ff ff e8 cb c9 f6 fd 48 c7 c7 80 06 4f 8b 8b 34 24 e8 0c e3 be fd <0f> 0b e9 a8 f8 ff ff e8 b0 c9 f6 fd e9 be fe ff ff 89 d9 80 e1 07
RSP: 0018:ffffc900044774e0 EFLAGS: 00010246
RAX: 4a31b357fca74600 RBX: ffff888028fc4001 RCX: ffff8880742b8000
RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000000
RBP: ffffc90004477820 R08: ffffffff8152b84e R09: ffffed10171c4f1c
R10: 0000000000000000 R11: dffffc0000000001 R12: ffff8880742b9268
R13: dffffc0000000000 R14: 0000000000000000 R15: 1ffff1100e1a352e
FS:  00007f65afa5d6c0(0000) GS:ffff8880b8e00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fff2e7c0458 CR3: 000000002135c000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 prepare_to_relocate+0x3c5/0x4c0 fs/btrfs/relocation.c:3606
 relocate_block_group+0x17b/0xce0 fs/btrfs/relocation.c:3631
 btrfs_relocate_block_group+0x7a9/0xd70 fs/btrfs/relocation.c:4094
 btrfs_relocate_chunk+0x128/0x3b0 fs/btrfs/volumes.c:3344
 __btrfs_balance+0x1c16/0x27d0 fs/btrfs/volumes.c:4092
 btrfs_balance+0xbd4/0x10c0 fs/btrfs/volumes.c:4468
 btrfs_ioctl_balance+0x493/0x7c0 fs/btrfs/ioctl.c:4531
 vfs_ioctl fs/ioctl.c:51 [inline]
 __do_sys_ioctl fs/ioctl.c:870 [inline]
 __se_sys_ioctl+0xf1/0x160 fs/ioctl.c:856
 do_syscall_x64 arch/x86/entry/common.c:51 [inline]
 do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:81
 entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7f65afaa0d49
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 b1 18 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 b0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f65afa5d218 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007f65afb2d6c8 RCX: 00007f65afaa0d49
RDX: 00000000200003c0 RSI: 00000000c4009420 RDI: 0000000000000004
RBP: 00007f65afb2d6c0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007f65afafa26c
R13: 0030656c69662f2e R14: 61635f7261656c63 R15: 18bea1116aa755e3
 </TASK>

Crashes (18):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/12/29 13:24 linux-6.1.y 563edd786f0a d3ccff63 .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-6-1-kasan WARNING in btrfs_commit_transaction
2024/01/27 06:35 linux-6.1.y 883d1a956208 cc4a4020 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-6-1-kasan WARNING in btrfs_commit_transaction
2025/03/09 08:39 linux-6.1.y 6ae7ac5c4251 163f510d .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan WARNING in btrfs_commit_transaction
2024/11/05 13:19 linux-6.1.y 7c15117f9468 da38b4c9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan WARNING in btrfs_commit_transaction
2024/10/26 04:13 linux-6.1.y 7ec6f9fa3d97 65e8686b .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan WARNING in btrfs_commit_transaction
2024/10/25 01:10 linux-6.1.y 7ec6f9fa3d97 c79b8ca5 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan WARNING in btrfs_commit_transaction
2024/10/16 18:55 linux-6.1.y aa4cd140bba5 666f77ed .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan WARNING in btrfs_commit_transaction
2024/05/28 20:15 linux-6.1.y 88690811da69 34889ee3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan WARNING in btrfs_commit_transaction
2024/05/27 10:22 linux-6.1.y 88690811da69 761766e6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan WARNING in btrfs_commit_transaction
2024/05/27 10:22 linux-6.1.y 88690811da69 761766e6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan WARNING in btrfs_commit_transaction
2024/05/25 21:59 linux-6.1.y 88690811da69 a10a183e .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan WARNING in btrfs_commit_transaction
2024/05/07 15:09 linux-6.1.y 909ba1f1b414 cb2dcc0e .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan WARNING in btrfs_commit_transaction
2024/04/29 06:18 linux-6.1.y f2295faba5e8 07b455f9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan WARNING in btrfs_commit_transaction
2024/04/26 13:26 linux-6.1.y 6741e066ec76 059e9963 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan WARNING in btrfs_commit_transaction
2024/04/24 01:59 linux-6.1.y 6741e066ec76 21339d7b .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan WARNING in btrfs_commit_transaction
2024/02/11 03:50 linux-6.1.y f1bb70486c9c 77b23aa1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan WARNING in btrfs_commit_transaction
2023/11/27 06:32 linux-6.1.y 69e434a1cb21 5b429f39 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan WARNING in btrfs_commit_transaction
2023/10/11 08:58 linux-6.1.y 082280fe94a0 83165b57 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan WARNING in btrfs_commit_transaction
* Struck through repros no longer work on HEAD.