syzbot


WARNING in btrfs_put_transaction

Status: upstream: reported C repro on 2022/11/30 19:58
Subsystems: btrfs
[Documentation on labels]
Reported-by: syzbot+3706b1df47f2464f0c1e@syzkaller.appspotmail.com
Fix commit: 8bb808c6ad91 btrfs: don't print stack trace when transaction is aborted due to ENOMEM
Patched on: [ci-qemu-upstream ci-qemu-upstream-386 ci-qemu2-arm32 ci-qemu2-arm64 ci-qemu2-arm64-compat ci-qemu2-arm64-mte ci-qemu2-riscv64 ci-upstream-bpf-kasan-gce ci-upstream-bpf-next-kasan-gce ci-upstream-gce-arm64 ci-upstream-gce-leak ci-upstream-kasan-badwrites-root ci-upstream-kasan-gce ci-upstream-kasan-gce-386 ci-upstream-kasan-gce-root ci-upstream-kasan-gce-selinux-root ci-upstream-kasan-gce-smack-root ci-upstream-kmsan-gce-386-root ci-upstream-kmsan-gce-root ci-upstream-linux-next-kasan-gce-root ci-upstream-net-kasan-gce ci-upstream-net-this-kasan-gce ci2-upstream-fs ci2-upstream-kcsan-gce ci2-upstream-net-next-test-gce], missing on: [ci2-upstream-usb]
First crash: 539d, last: 13d
Cause bisection: failed (error log, bisect log)
  
Fix bisection: the issue occurs on the latest tested release (bisect log)
  
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] WARNING in btrfs_put_transaction 1 (2) 2024/05/16 15:52
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-5.15 WARNING in btrfs_put_transaction origin:lts-only syz unreliable 5 119d 312d 0/3 upstream: reported syz repro on 2023/07/11 15:58
linux-6.1 WARNING in btrfs_put_transaction 2 324d 405d 0/3 auto-obsoleted due to no activity on 2023/10/07 17:45
Last patch testing requests (10)
Created Duration User Patch Repo Result
2024/04/21 06:31 24m retest repro upstream report log
2024/04/11 03:34 1h37m retest repro upstream error OK
2024/04/11 03:34 1h31m retest repro upstream error OK
2024/03/14 04:32 18m retest repro upstream report log
2024/03/14 04:32 16m retest repro upstream report log
2024/02/29 04:03 15m retest repro upstream report log
2024/02/14 20:47 28m retest repro linux-next report log
2024/02/14 20:47 16m retest repro linux-next report log
2024/01/31 11:16 13m retest repro upstream report log
2024/01/31 11:16 12m retest repro upstream report log

Sample crash report:
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000006
R13: 00007ffd6d13fd40 R14: 00007ffd6d13fd20 R15: 0000000000000003
 </TASK>
BTRFS warning (device loop0): Skipping commit of aborted transaction.
BTRFS: error (device loop0: state A) in cleanup_transaction:1978: errno=-12 Out of memory
BTRFS info (device loop0: state EA): forced readonly
------------[ cut here ]------------
WARNING: CPU: 1 PID: 5063 at fs/btrfs/transaction.c:144 btrfs_put_transaction fs/btrfs/transaction.c:144 [inline]
WARNING: CPU: 1 PID: 5063 at fs/btrfs/transaction.c:144 btrfs_put_transaction+0x3d1/0x4c0 fs/btrfs/transaction.c:137
Modules linked in:
CPU: 1 PID: 5063 Comm: syz-executor124 Not tainted 6.4.0-rc6-syzkaller-00037-gb6dad5178cea #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/27/2023
RIP: 0010:btrfs_put_transaction fs/btrfs/transaction.c:144 [inline]
RIP: 0010:btrfs_put_transaction+0x3d1/0x4c0 fs/btrfs/transaction.c:137
Code: 65 d9 1c fe 0f 0b e9 b7 fc ff ff 4c 89 e7 e8 36 ad 6e fe e9 96 fc ff ff 48 89 df e8 49 ad 6e fe e9 2d fd ff ff e8 3f d9 1c fe <0f> 0b e9 9c fd ff ff e8 33 d9 1c fe 0f 0b e9 50 ff ff ff e8 27 d9
RSP: 0018:ffffc90003547898 EFLAGS: 00010293
RAX: 0000000000000000 RBX: ffff888079f96028 RCX: 0000000000000000
RDX: ffff888077cbe040 RSI: ffffffff83668e71 RDI: ffff888079f96330
RBP: ffff888079f96000 R08: 0000000000000005 R09: 0000000000000001
R10: 0000000000000001 R11: 0000000000000000 R12: ffff888079f96010
R13: 0000000000000000 R14: ffff8880723399d8 R15: ffff88807d050cd8
FS:  0000555555d4f300(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fa2b60a3028 CR3: 000000007ca7b000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 cleanup_transaction fs/btrfs/transaction.c:2026 [inline]
 btrfs_commit_transaction+0x147f/0x3fa0 fs/btrfs/transaction.c:2565
 btrfs_ioctl_set_fslabel+0x322/0x3b0 fs/btrfs/ioctl.c:4145
 btrfs_ioctl+0x3815/0x5b30 fs/btrfs/ioctl.c:4555
 vfs_ioctl fs/ioctl.c:51 [inline]
 __do_sys_ioctl fs/ioctl.c:870 [inline]
 __se_sys_ioctl fs/ioctl.c:856 [inline]
 __x64_sys_ioctl+0x197/0x210 fs/ioctl.c:856
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7fd3ee506b99
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 11 15 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:00007ffd6d13fcd8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 0000000000000001 RCX: 00007fd3ee506b99
RDX: 00000000200001c0 RSI: 0000000041009432 RDI: 0000000000000005
RBP: 00007ffd6d13fd00 R08: 0000000000000001 R09: 00007ffd6d13fd10
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000006
R13: 00007ffd6d13fd40 R14: 00007ffd6d13fd20 R15: 0000000000000003
 </TASK>

Crashes (83):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/06/14 18:49 upstream b6dad5178cea d2ee9228 .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-kasan-gce-selinux-root WARNING in btrfs_put_transaction
2023/03/23 10:23 upstream fff5a5e7f528 f94b4a29 .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-kasan-gce-smack-root WARNING in btrfs_put_transaction
2023/01/06 18:43 upstream 1f5abbd77e2c 1dac8c7a .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-kasan-gce-root WARNING in btrfs_put_transaction
2022/12/12 14:16 upstream 830b3c68c1fb 67be1ae7 .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-kasan-gce-root WARNING in btrfs_put_transaction
2022/12/08 20:17 upstream 479174d402bc 1034e5fa .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-upstream-fs WARNING in btrfs_put_transaction
2022/11/26 19:46 upstream 644e9524388a f4470a7b .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-upstream-fs WARNING in btrfs_put_transaction
2024/04/21 15:44 upstream 977b1ef51866 af24b050 .config console log report syz C [disk image (non-bootable)] [vmlinux] [kernel image] [mounted in repro] ci-qemu-upstream WARNING in btrfs_put_transaction
2023/01/28 02:56 linux-next e2f86c02fdc9 9dfcf09c .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-linux-next-kasan-gce-root WARNING in btrfs_put_transaction
2023/01/09 15:05 linux-next 543b9b2fe10b 1dac8c7a .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-linux-next-kasan-gce-root WARNING in btrfs_put_transaction
2024/05/04 05:22 upstream 3d25a941ea50 610f2a54 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root WARNING in btrfs_put_transaction
2023/12/31 14:58 upstream 453f5db0619e fb427a07 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root WARNING in btrfs_put_transaction
2023/12/03 10:35 upstream 1b8af6552cb7 f819d6f7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in btrfs_put_transaction
2023/10/25 01:02 upstream d88520ad73b7 17e6d526 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in btrfs_put_transaction
2024/05/05 22:47 upstream b9158815de52 610f2a54 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING in btrfs_put_transaction
2024/04/21 13:25 upstream 977b1ef51866 af24b050 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING in btrfs_put_transaction
2024/05/04 20:19 upstream 7367539ad4b0 610f2a54 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 WARNING in btrfs_put_transaction
2023/08/22 05:32 upstream f7757129e3de 6b415825 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING in btrfs_put_transaction
2023/08/17 12:05 upstream 4853c74bd7ab 74b106b6 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING in btrfs_put_transaction
2023/07/20 03:10 upstream bfa3037d8280 4547cdf9 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root WARNING in btrfs_put_transaction
2023/07/18 21:36 upstream 74f1456c4a5f 022df2bb .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in btrfs_put_transaction
2023/07/17 08:41 upstream 20edcec23f92 35d9ecc5 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING in btrfs_put_transaction
2023/06/29 21:45 upstream b19edac5992d 134ddc02 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in btrfs_put_transaction
2023/06/27 00:46 upstream 6995e2de6891 4cd5bb25 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in btrfs_put_transaction
2023/06/21 18:41 upstream e660abd551f1 79782afc .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in btrfs_put_transaction
2023/06/20 05:45 upstream 692b7dc87ca6 09ffe269 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in btrfs_put_transaction
2023/06/15 17:57 upstream b6dad5178cea 757d26ed .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root WARNING in btrfs_put_transaction
2023/06/09 10:55 upstream 25041a4c02c7 058b3a5a .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in btrfs_put_transaction
2023/06/06 02:44 upstream f8dba31b0a82 a4ae4f42 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in btrfs_put_transaction
2023/06/05 09:01 upstream 9561de3a55be a4ae4f42 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in btrfs_put_transaction
2023/06/04 15:33 upstream e5282a7d8f6b a4ae4f42 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in btrfs_put_transaction
2023/06/03 22:52 upstream 51f269a6ecc7 a4ae4f42 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in btrfs_put_transaction
2023/06/02 10:11 upstream 1874a42a7d74 a4ae4f42 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in btrfs_put_transaction
2023/06/01 19:17 upstream 929ed21dfdb6 babc4389 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in btrfs_put_transaction
2023/05/29 07:25 upstream 7877cb91f108 cf184559 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in btrfs_put_transaction
2023/05/19 22:15 upstream cbd6ac3837cd 96689200 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in btrfs_put_transaction
2023/05/10 02:57 upstream 1dc3731daf1f 30aa2a7e .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in btrfs_put_transaction
2023/05/09 12:48 upstream ba0ad6ed89fd 30aa2a7e .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in btrfs_put_transaction
2023/04/27 19:33 upstream 6e98b09da931 6f3d6fa7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in btrfs_put_transaction
2023/04/27 10:01 upstream 5c7ecada25d2 19a3dabe .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in btrfs_put_transaction
2023/04/23 23:11 upstream 457391b03803 2b32bd34 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in btrfs_put_transaction
2023/04/18 06:04 upstream 6a8f57ae2eb0 436577a9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in btrfs_put_transaction
2023/04/17 14:51 upstream 6a8f57ae2eb0 c6ec7083 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in btrfs_put_transaction
2023/04/12 08:09 upstream e62252bc55b6 1a1596b6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in btrfs_put_transaction
2023/04/11 09:28 upstream 0d3eb744aed4 71147e29 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in btrfs_put_transaction
2023/04/11 09:24 upstream 0d3eb744aed4 71147e29 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in btrfs_put_transaction
2023/04/08 22:22 upstream a79d5c76f705 71147e29 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in btrfs_put_transaction
2023/04/03 00:52 upstream 6ab608fe852b f325deb0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in btrfs_put_transaction
2023/03/29 14:14 upstream fcd476ea6a88 f325deb0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in btrfs_put_transaction
2023/03/26 16:37 upstream da8e7da11e4b fbf0499a .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in btrfs_put_transaction
2023/03/26 15:25 upstream da8e7da11e4b fbf0499a .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in btrfs_put_transaction
2023/03/21 06:35 upstream 7d31677bb7b1 7939252e .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in btrfs_put_transaction
2023/03/16 05:21 upstream 9c1bec9c0b08 18b58603 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in btrfs_put_transaction
2023/03/03 07:39 upstream 857f1268a591 f8902b57 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root WARNING in btrfs_put_transaction
2022/12/18 11:44 upstream f9ff5644bcc0 05494336 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in btrfs_put_transaction
2024/05/05 20:25 linux-next 9221b2819b8a 610f2a54 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in btrfs_put_transaction
2024/05/01 05:48 linux-next d04466706db5 9e0e6af1 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in btrfs_put_transaction
2023/08/28 08:53 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci fe4469582053 03d9c195 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in btrfs_put_transaction
2023/04/25 03:47 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 14f8db1c0f9a fdc18293 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in btrfs_put_transaction
2023/04/09 05:41 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 9a03cbd79d3a 71147e29 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in btrfs_put_transaction
2022/12/22 09:17 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci a5541c0811a0 4067838e .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in btrfs_put_transaction
2022/12/21 03:51 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci a5541c0811a0 d3e76707 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in btrfs_put_transaction
* Struck through repros no longer work on HEAD.