syzbot


WARNING in cleanup_transaction

Status: upstream: reported C repro on 2022/10/19 05:40
Subsystems: btrfs
[Documentation on labels]
Reported-by: syzbot+021d10c4d4edc87daa03@syzkaller.appspotmail.com
First crash: 548d, last: 68d
Cause bisection: failed (error log, 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

  
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] WARNING in cleanup_transaction 0 (2) 2022/11/22 05:39
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 9 4d18h 248d 0/3 upstream: reported C repro on 2023/08/15 21:58
linux-4.19 WARNING in cleanup_transaction 1 795d 795d 0/1 auto-closed as invalid on 2022/06/14 10:30
android-49 WARNING in cleanup_transaction 1 2192d 2192d 0/3 auto-closed as invalid on 2019/02/22 14:19
linux-4.19 WARNING in cleanup_transaction (2) btrfs C 11 416d 503d 0/1 upstream: reported C repro on 2022/12/03 07:23
linux-4.14 WARNING in cleanup_transaction btrfs C 1 414d 487d 0/1 upstream: reported C repro on 2022/12/19 11:57
Last patch testing requests (10)
Created Duration User Patch Repo Result
2024/02/25 05:52 14m retest repro upstream report log
2024/02/25 05:52 18m retest repro upstream report log
2024/02/25 04:01 11m retest repro upstream report log
2024/02/25 04:01 11m retest repro upstream report log
2024/02/25 04:01 14m retest repro upstream report log
2024/02/25 04:01 35m retest repro upstream report log
2024/02/25 04:01 11m retest repro upstream report log
2024/02/25 03:50 16m retest repro upstream report log
2023/12/08 11:44 3h11m retest repro upstream report log
2023/12/08 04:04 11m retest repro upstream report log

Sample crash report:
BTRFS info (device loop0): relocating block group 5242880 flags data|metadata
BTRFS warning (device loop0): Skipping commit of aborted transaction.
------------[ cut here ]------------
BTRFS: Transaction aborted (error -28)
WARNING: CPU: 1 PID: 5015 at fs/btrfs/transaction.c:1983 cleanup_transaction+0x6fa/0x7e0 fs/btrfs/transaction.c:1983
Modules linked in:
CPU: 1 PID: 5015 Comm: syz-executor312 Not tainted 6.5.0-rc7-syzkaller-00182-g3b35375f19fe #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/26/2023
RIP: 0010:cleanup_transaction+0x6fa/0x7e0 fs/btrfs/transaction.c:1983
Code: 56 00 fe 0f 0b 43 80 7c 25 00 00 0f 85 53 fa ff ff e9 56 fa ff ff e8 a5 56 00 fe 48 c7 c7 00 66 4a 8b 44 89 f6 e8 c6 6f c7 fd <0f> 0b e9 a7 fa ff ff 89 d9 80 e1 07 80 c1 03 38 c1 0f 8c ff f9 ff
RSP: 0018:ffffc900039ff420 EFLAGS: 00010246
RAX: abead7ff6c266700 RBX: 0000000000000000 RCX: ffff888026d90000
RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000000
RBP: ffffc900039ff550 R08: ffffffff8152d442 R09: 1ffff9200073fdfc
R10: dffffc0000000000 R11: fffff5200073fdfd R12: dffffc0000000000
R13: 1ffff1100ea50d1b R14: 00000000ffffffe4 R15: ffff8880752868d8
FS:  00007f1fba74e6c0(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f1fba7cdb10 CR3: 000000007252c000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 btrfs_commit_transaction+0x268e/0x2ff0 fs/btrfs/transaction.c:2563
 prepare_to_relocate+0x3c5/0x4c0 fs/btrfs/relocation.c:3629
 relocate_block_group+0x17f/0xcd0 fs/btrfs/relocation.c:3654
 btrfs_relocate_block_group+0x7ab/0xd70 fs/btrfs/relocation.c:4116
 btrfs_relocate_chunk+0x12c/0x3b0 fs/btrfs/volumes.c:3283
 __btrfs_balance+0x1b06/0x2690 fs/btrfs/volumes.c:4018
 btrfs_balance+0xbd8/0x10d0 fs/btrfs/volumes.c:4395
 btrfs_ioctl_balance+0x496/0x7c0 fs/btrfs/ioctl.c:3604
 vfs_ioctl fs/ioctl.c:51 [inline]
 __do_sys_ioctl fs/ioctl.c:870 [inline]
 __se_sys_ioctl+0xf8/0x170 fs/ioctl.c:856
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f1fba791c19
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:00007f1fba74e218 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007f1fba81e6c8 RCX: 00007f1fba791c19
RDX: 00000000200003c0 RSI: 00000000c4009420 RDI: 0000000000000004
RBP: 00007f1fba81e6c0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007f1fba7eb26c
R13: 0030656c69662f2e R14: 61635f7261656c63 R15: 18bea1116aa755e3
 </TASK>

Crashes (96):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/08/27 06:59 upstream 3b35375f19fe 7ba13a15 .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-upstream-fs WARNING in cleanup_transaction
2023/08/18 19:06 upstream 0e8860d2125f d216d8a0 .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-kasan-gce-smack-root WARNING in cleanup_transaction
2023/08/18 04:21 upstream 16931859a650 74b106b6 .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-upstream-fs WARNING in cleanup_transaction
2023/07/12 18:47 upstream 3f01e9fed845 979d5fe2 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-upstream-fs WARNING in cleanup_transaction
2023/06/09 18:58 upstream 33f2b5785a2b 9018a337 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-upstream-fs WARNING in cleanup_transaction
2023/02/27 16:30 upstream f3a2439f20d9 9189cb53 .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-upstream-fs WARNING in cleanup_transaction
2022/12/20 14:49 upstream aeba12b26c79 c52b2efb .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-upstream-fs WARNING in cleanup_transaction
2023/07/02 18:33 upstream 995b406c7e97 bfc47836 .config console log report syz [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-upstream-fs WARNING in cleanup_transaction
2022/10/19 03:06 upstream 493ffd6605b2 b31320fc .config strace log report syz C [disk image] [vmlinux] [mounted in repro] ci2-upstream-fs WARNING in cleanup_transaction
2023/09/15 01:29 upstream 9fdfb15a3dbf 0b6a67ac .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in cleanup_transaction
2023/09/04 12:48 upstream 708283abf896 696ea0d2 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in cleanup_transaction
2023/09/01 06:23 upstream b97d64c72259 696ea0d2 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root WARNING in cleanup_transaction
2023/08/19 12:09 upstream d4ddefee5160 d216d8a0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in cleanup_transaction
2023/08/16 22:44 upstream 4853c74bd7ab 74b106b6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in cleanup_transaction
2023/08/16 00:15 upstream 2d7b8c6b90e4 39990d51 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in cleanup_transaction
2023/08/09 08:38 upstream 13b937206866 8ad1a287 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in cleanup_transaction
2023/08/05 06:42 upstream e6fda526d9db cdae481e .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in cleanup_transaction
2023/08/05 03:22 upstream e6fda526d9db cdae481e .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in cleanup_transaction
2023/07/24 10:40 upstream 6eaae1980760 b03242d7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in cleanup_transaction
2023/07/21 05:09 upstream 57f1f9dd3abe 28847498 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in cleanup_transaction
2023/07/12 17:53 upstream 3f01e9fed845 979d5fe2 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in cleanup_transaction
2023/07/11 17:03 upstream 3f01e9fed845 2f19aa4f .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in cleanup_transaction
2023/07/11 00:24 upstream 3f01e9fed845 d47e94ee .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in cleanup_transaction
2023/07/08 22:44 upstream 8fc3b8f082cc 668cb1fa .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in cleanup_transaction
2023/07/08 16:50 upstream 8689f4f2ea56 668cb1fa .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in cleanup_transaction
2023/07/03 12:40 upstream a901a3568fd2 bfc47836 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in cleanup_transaction
2023/07/01 14:53 upstream a507db1d8fdc bfc47836 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in cleanup_transaction
2023/06/30 10:32 upstream b19edac5992d 01298212 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in cleanup_transaction
2023/06/30 06:30 upstream b19edac5992d 01298212 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in cleanup_transaction
2023/06/12 02:37 upstream 4c605260bc60 49519f06 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in cleanup_transaction
2023/06/08 13:58 upstream 5f63595ebd82 058b3a5a .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in cleanup_transaction
2023/06/05 02:42 upstream 9561de3a55be a4ae4f42 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in cleanup_transaction
2023/06/03 11:03 upstream 4ecd704a4c51 a4ae4f42 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in cleanup_transaction
2023/06/01 16:35 upstream 929ed21dfdb6 babc4389 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in cleanup_transaction
2023/06/01 12:58 upstream 929ed21dfdb6 babc4389 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in cleanup_transaction
2023/06/01 04:10 upstream 929ed21dfdb6 babc4389 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root WARNING in cleanup_transaction
2023/06/01 00:22 upstream 48b1320a674e babc4389 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in cleanup_transaction
2023/05/31 16:59 upstream afead42fdfca 09898419 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in cleanup_transaction
2023/05/30 08:34 upstream 8b817fded42d cf184559 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in cleanup_transaction
2023/05/29 21:59 upstream 8b817fded42d cf184559 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in cleanup_transaction
2023/05/28 15:15 upstream 416839029e38 cf184559 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in cleanup_transaction
2023/05/27 16:12 upstream 49572d536129 cf184559 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in cleanup_transaction
2023/05/27 04:15 upstream 0d85b27b0cc6 cf184559 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in cleanup_transaction
2023/05/25 06:00 upstream 933174ae28ba 4bce1a3e .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in cleanup_transaction
2023/05/23 00:19 upstream 421ca22e3138 4bce1a3e .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in cleanup_transaction
2023/05/21 16:52 upstream 0dd2a6fb1e34 4bce1a3e .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in cleanup_transaction
2023/05/20 16:25 upstream d635f6cc934b 4bce1a3e .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in cleanup_transaction
2023/05/20 10:09 upstream d635f6cc934b 96689200 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in cleanup_transaction
2023/05/20 01:14 upstream cbd6ac3837cd 96689200 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in cleanup_transaction
2023/05/19 23:43 upstream cbd6ac3837cd 96689200 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in cleanup_transaction
2023/05/19 13:21 upstream 2d1bcbc6cd70 3bb7af1d .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in cleanup_transaction
2023/05/18 09:03 upstream 1b66c114d161 3bb7af1d .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in cleanup_transaction
2022/10/19 02:56 upstream 493ffd6605b2 b31320fc .config console log report info [disk image] [vmlinux] ci2-upstream-fs WARNING in cleanup_transaction
2024/02/11 03:43 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci f735966ee23c 77b23aa1 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in cleanup_transaction
2024/01/25 16:51 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 0802e17d9aca cc4a4020 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in cleanup_transaction
2024/01/13 00:38 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 0802e17d9aca dda5a988 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in cleanup_transaction
2023/12/28 06:00 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci aafe7ad77b91 fb427a07 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in cleanup_transaction
2023/01/20 00:51 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 9598c377d828 1b826a2f .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in cleanup_transaction
* Struck through repros no longer work on HEAD.