syzbot


WARNING in __bch2_truncate_folio

Status: upstream: reported C repro on 2024/05/22 20:56
Subsystems: bcachefs
[Documentation on labels]
Reported-by: syzbot+3d11e35eeafe176a6c5b@syzkaller.appspotmail.com
First crash: 465d, last: 4h38m
Cause bisection: introduced by (bisect log) :
commit f7643bc9749f270d487c32dc35b578575bf1adb0
Author: Kent Overstreet <kent.overstreet@linux.dev>
Date: Wed Apr 17 05:26:02 2024 +0000

  bcachefs: make btree read errors silent during scan

Crash: WARNING in __bch2_truncate_folio (log)
Repro: C syz .config
  
Discussions (6)
Title Replies (including bot) Last reply
[syzbot] Monthly bcachefs report (Aug 2025) 0 (1) 2025/08/26 07:13
[syzbot] Monthly bcachefs report (Jul 2025) 0 (1) 2025/07/25 12:39
[syzbot] Monthly bcachefs report (Jun 2025) 2 (3) 2025/06/24 17:31
[syzbot] Monthly bcachefs report (Sep 2024) 0 (1) 2024/09/13 10:03
[syzbot] Monthly bcachefs report (Jul 2024) 0 (1) 2024/07/12 12:53
[syzbot] [bcachefs?] WARNING in __bch2_truncate_folio 0 (1) 2024/05/22 20:56
Last patch testing requests (6)
Created Duration User Patch Repo Result
2025/06/06 07:29 15m retest repro upstream report log
2025/06/06 07:29 15m retest repro upstream report log
2025/03/19 00:00 15m retest repro upstream report log
2025/03/18 01:17 21m retest repro upstream OK log
2024/08/14 21:37 30m retest repro git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci OK log
2024/07/26 09:19 23m retest repro upstream OK log
Fix bisection attempts (1)
Created Duration User Patch Repo Result
2025/06/22 14:09 2h07m bisect fix upstream OK (0) job log log

Sample crash report:
bcachefs (loop0): going read-write
bcachefs (loop0): insufficient writeable journal devices available: have 0, need 1
rw journal devs:
bcachefs (loop0): done starting filesystem
------------[ cut here ]------------
WARNING: CPU: 1 PID: 6031 at fs/bcachefs/fs-io.c:361 __bch2_truncate_folio+0x17a2/0x1a40 fs/bcachefs/fs-io.c:361
Modules linked in:
CPU: 1 UID: 0 PID: 6031 Comm: syz.0.17 Not tainted syzkaller #0 PREEMPT_{RT,(full)} 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2025
RIP: 0010:__bch2_truncate_folio+0x17a2/0x1a40 fs/bcachefs/fs-io.c:361
Code: 5f 5d c3 cc cc cc cc cc e8 9b ae 88 fd 48 c7 c7 80 70 0b 8d e8 7f 5f e9 ff 89 05 b9 ad eb 14 e9 43 ea ff ff e8 7f ae 88 fd 90 <0f> 0b 90 e9 23 f9 ff ff e8 d1 a2 c0 06 e8 6c ae 88 fd be 00 10 00
RSP: 0018:ffffc90003ee7580 EFLAGS: 00010293
RAX: ffffffff8435add1 RBX: 0000000000000000 RCX: ffff888026d48000
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffffc90003ee7750 R08: 0000000000000000 R09: 0000000000000000
R10: dffffc0000000000 R11: fffff94000118f49 R12: 1ffff11008f3c112
R13: dffffc0000000000 R14: ffff8880479e0890 R15: 0000000000000000
FS:  000055556c56e500(0000) GS:ffff8881269c2000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b30d63fff CR3: 000000003194a000 CR4: 00000000003526f0
Call Trace:
 <TASK>
 bch2_truncate_folios fs/bcachefs/fs-io.c:400 [inline]
 bchfs_fpunch+0x10f/0x520 fs/bcachefs/fs-io.c:564
 bch2_fallocate_dispatch+0x2bf/0x410 fs/bcachefs/fs-io.c:838
 vfs_fallocate+0x672/0x7f0 fs/open.c:342
 ioctl_preallocate fs/ioctl.c:290 [inline]
 file_ioctl+0x61d/0x780 fs/ioctl.c:-1
 do_vfs_ioctl+0xb36/0x1440 fs/ioctl.c:577
 __do_sys_ioctl fs/ioctl.c:596 [inline]
 __se_sys_ioctl+0x82/0x170 fs/ioctl.c:584
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0xfa/0x3b0 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fb41783ebe9
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 a8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffe05c8bc18 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007fb417a65fa0 RCX: 00007fb41783ebe9
RDX: 00002000000004c0 RSI: 0000000040305829 RDI: 0000000000000004
RBP: 00007fb4178c1e19 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fb417a65fa0 R14: 00007fb417a65fa0 R15: 0000000000000003
 </TASK>

Crashes (374):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/08/29 14:32 upstream 07d9df80082b 3e1beec6 .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-upstream-fs WARNING in __bch2_truncate_folio
2025/05/20 23:31 upstream a5806cd506af b47f9e02 .config strace log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-upstream-fs WARNING in __bch2_truncate_folio
2025/02/04 05:13 upstream 0de63bb7d919 8f267cef .config strace log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-upstream-fs WARNING in __bch2_truncate_folio
2024/05/22 05:08 upstream b6394d6f7159 1014eca7 .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-upstream-fs WARNING in __bch2_truncate_folio
2024/07/31 17:44 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci c912bf709078 6fde257d .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-gce-arm64 WARNING in __bch2_truncate_folio
2025/08/30 07:56 upstream fb679c832b64 807a3b61 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in __bch2_truncate_folio
2025/08/29 13:37 upstream 07d9df80082b 3e1beec6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in __bch2_truncate_folio
2025/08/24 09:04 upstream 8d245acc1e88 bf27483f .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in __bch2_truncate_folio
2025/08/22 01:39 upstream 068a56e56fa8 3e79b825 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in __bch2_truncate_folio
2025/08/21 19:16 upstream 32b7144f806e 0b9605c8 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root WARNING in __bch2_truncate_folio
2025/08/21 01:49 upstream 41cd3fd15263 0b9605c8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in __bch2_truncate_folio
2025/08/21 01:38 upstream 41cd3fd15263 0b9605c8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in __bch2_truncate_folio
2025/08/20 21:39 upstream b19a97d57c15 0b9605c8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in __bch2_truncate_folio
2025/08/20 17:58 upstream b19a97d57c15 0b9605c8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in __bch2_truncate_folio
2025/08/20 10:57 upstream b19a97d57c15 79512909 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in __bch2_truncate_folio
2025/08/20 09:40 upstream b19a97d57c15 79512909 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in __bch2_truncate_folio
2025/08/20 05:30 upstream b19a97d57c15 79512909 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in __bch2_truncate_folio
2025/08/19 08:22 upstream be48bcf004f9 523f460e .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in __bch2_truncate_folio
2025/08/18 17:29 upstream c17b750b3ad9 1804e95e .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in __bch2_truncate_folio
2025/08/18 00:45 upstream 8d561baae505 1804e95e .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in __bch2_truncate_folio
2025/08/17 21:15 upstream 99bade344cfa 1804e95e .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in __bch2_truncate_folio
2025/08/17 08:13 upstream 90d970cade8e 1804e95e .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in __bch2_truncate_folio
2025/08/17 04:53 upstream 90d970cade8e 1804e95e .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in __bch2_truncate_folio
2025/08/17 01:50 upstream 90d970cade8e 1804e95e .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in __bch2_truncate_folio
2025/07/28 21:57 upstream 038d61fd6422 c4a95487 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root WARNING in __bch2_truncate_folio
2025/05/22 16:29 upstream d608703fcdd9 0919b50b .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in __bch2_truncate_folio
2025/05/20 22:50 upstream a5806cd506af b47f9e02 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in __bch2_truncate_folio
2024/07/10 03:16 upstream 34afb82a3c67 79d68ada .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root WARNING in __bch2_truncate_folio
2024/06/06 23:50 upstream 2df0193e62cf 121701b6 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root WARNING in __bch2_truncate_folio
2024/05/29 04:39 upstream e0cce98fe279 34889ee3 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root WARNING in __bch2_truncate_folio
2025/08/28 15:40 upstream 07d9df80082b bee60a83 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root WARNING in __bch2_truncate_folio
2025/08/27 22:43 upstream 39f90c196721 e12e5ba4 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root WARNING in __bch2_truncate_folio
2025/08/23 07:58 upstream 6debb6904172 bf27483f .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root WARNING in __bch2_truncate_folio
2025/08/22 08:52 upstream 3957a5720157 bf27483f .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root WARNING in __bch2_truncate_folio
2025/08/21 16:38 upstream 32b7144f806e 3e79b825 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root WARNING in __bch2_truncate_folio
2025/08/19 14:06 upstream be48bcf004f9 523f460e .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root WARNING in __bch2_truncate_folio
2025/08/08 15:16 upstream bec077162bd0 56444e07 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root WARNING in __bch2_truncate_folio
2025/08/06 17:51 upstream 479058002c32 4bd24a3e .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root WARNING in __bch2_truncate_folio
2025/07/29 01:01 upstream 038d61fd6422 6654ea9c .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root WARNING in __bch2_truncate_folio
2025/07/28 20:03 upstream 038d61fd6422 6654ea9c .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root WARNING in __bch2_truncate_folio
2025/07/23 22:43 upstream 01a412d06bc5 e0b9ac93 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root WARNING in __bch2_truncate_folio
2025/07/14 18:15 upstream 347e9f5043c8 d8fc7335 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root WARNING in __bch2_truncate_folio
2025/07/11 12:33 upstream bc9ff192a6c9 3cda49cf .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root WARNING in __bch2_truncate_folio
2025/07/06 22:53 upstream 772b78c2abd8 4f67c4ae .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root WARNING in __bch2_truncate_folio
2025/07/04 16:40 upstream 4c06e63b9203 d869b261 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root WARNING in __bch2_truncate_folio
2025/07/02 20:26 upstream b4911fb0b060 0cd59a8f .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root WARNING in __bch2_truncate_folio
2025/05/05 12:07 upstream 92a09c47464d 6ca47dd8 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root WARNING in __bch2_truncate_folio
2025/04/25 07:50 upstream e72e9e693307 e3715315 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root WARNING in __bch2_truncate_folio
2025/04/24 07:21 upstream a79be02bba5c 9882047a .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root WARNING in __bch2_truncate_folio
2025/04/22 06:00 upstream a33b5a08cbbd 2a20f901 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root WARNING in __bch2_truncate_folio
2025/04/20 05:50 upstream 119009db2674 2a20f901 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root WARNING in __bch2_truncate_folio
2025/04/16 03:05 upstream 1a1d569a75f3 a95239b1 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root WARNING in __bch2_truncate_folio
2024/10/23 22:32 upstream c2ee9f594da8 15fa2979 .config console log report syz / log C [disk image (non-bootable)] [vmlinux] [kernel image] [mounted in repro] ci-snapshot-upstream-root WARNING in __bch2_truncate_folio
2024/05/29 01:38 upstream e0cce98fe279 c2e07261 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING in __bch2_truncate_folio
2024/05/29 01:41 linux-next 6dc544b66971 34889ee3 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in __bch2_truncate_folio
2025/08/22 11:40 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 8f5ae30d69d7 bf27483f .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in __bch2_truncate_folio
2025/08/04 05:38 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 82af5ea7c611 7368264b .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in __bch2_truncate_folio
2025/06/30 00:11 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 9aa9b43d689e fc9d8ee5 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in __bch2_truncate_folio
* Struck through repros no longer work on HEAD.