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: 138d, last: 13d
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 (3)
Title Replies (including bot) Last reply
[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 (2)
Created Duration User Patch Repo Result
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

Sample crash report:
bcachefs (loop0): resume_logged_ops... done
bcachefs (loop0): going read-write
bcachefs (loop0): done starting filesystem
------------[ cut here ]------------
WARNING: CPU: 0 PID: 5083 at fs/bcachefs/fs-io.c:327 __bch2_truncate_folio+0x1a33/0x1d80 fs/bcachefs/fs-io.c:327
Modules linked in:
CPU: 0 PID: 5083 Comm: syz-executor322 Not tainted 6.9.0-syzkaller-10729-gb6394d6f7159 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/02/2024
RIP: 0010:__bch2_truncate_folio+0x1a33/0x1d80 fs/bcachefs/fs-io.c:327
Code: 41 5f 5d c3 cc cc cc cc e8 3a 00 6f fd 48 c7 c7 fa 04 c0 8d e8 4e 1c ea ff 89 05 18 02 6a 10 e9 ed ea ff ff e8 1e 00 6f fd 90 <0f> 0b 90 e9 0a fa ff ff 44 89 f9 80 e1 07 80 c1 03 38 c1 0f 8c f0
RSP: 0018:ffffc900033df6c0 EFLAGS: 00010293
RAX: ffffffff84273a52 RBX: 0000000000000000 RCX: ffff888078fb8000
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffffc900033df950 R08: ffffffff84273457 R09: 1ffffd400014f498
R10: dffffc0000000000 R11: fffff9400014f499 R12: 1ffff1100ecd900a
R13: ffff88807420075a R14: 0000000000000000 R15: ffff8880766c8050
FS:  000055555b7d5380(0000) GS:ffff8880b9400000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f47f45440f8 CR3: 0000000077134000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 bch2_truncate_folios fs/bcachefs/fs-io.c:366 [inline]
 bchfs_fpunch fs/bcachefs/fs-io.c:520 [inline]
 bch2_fallocate_dispatch+0x6fb/0x3810 fs/bcachefs/fs-io.c:785
 vfs_fallocate+0x564/0x6c0 fs/open.c:330
 ksys_fallocate fs/open.c:353 [inline]
 __do_sys_fallocate fs/open.c:361 [inline]
 __se_sys_fallocate fs/open.c:359 [inline]
 __x64_sys_fallocate+0xbd/0x110 fs/open.c:359
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xf5/0x240 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f47f44c7a99
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 f1 17 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 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffec1ed9828 EFLAGS: 00000246 ORIG_RAX: 000000000000011d
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f47f44c7a99
RDX: 0000000000000002 RSI: 0000000000000003 RDI: 0000000000000004
RBP: 00007f47f45405f0 R08: 000055555b7d64c0 R09: 000055555b7d64c0
R10: 0000000000010000 R11: 0000000000000246 R12: 00007ffec1ed9850
R13: 00007ffec1ed9a78 R14: 431bde82d7b634db R15: 00007f47f451003b
 </TASK>

Crashes (92):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
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
2024/07/12 07:36 upstream 8a18fda0febb eaeb5c15 .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/07/09 21:21 upstream 34afb82a3c67 79d68ada .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root WARNING in __bch2_truncate_folio
2024/07/09 19:04 upstream 34afb82a3c67 79d68ada .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in __bch2_truncate_folio
2024/07/09 09:10 upstream 4376e966ecb7 bc23a442 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root WARNING in __bch2_truncate_folio
2024/07/06 07:07 upstream d270dd21bee0 2a40360c .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in __bch2_truncate_folio
2024/06/23 18:06 upstream 5f583a3162ff edc5149a .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in __bch2_truncate_folio
2024/06/23 02:49 upstream 563a50672d8a edc5149a .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in __bch2_truncate_folio
2024/06/21 14:25 upstream 50736169ecc8 dac2aa43 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in __bch2_truncate_folio
2024/06/21 05:42 upstream 50736169ecc8 dac2aa43 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in __bch2_truncate_folio
2024/06/21 05:42 upstream 50736169ecc8 dac2aa43 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in __bch2_truncate_folio
2024/06/12 00:43 upstream 83a7eefedc9b 4d75f4f7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in __bch2_truncate_folio
2024/06/11 17:15 upstream 83a7eefedc9b b7d9eb04 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in __bch2_truncate_folio
2024/06/11 14:12 upstream 83a7eefedc9b b7d9eb04 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in __bch2_truncate_folio
2024/06/10 01:13 upstream 771ed66105de 82c05ab8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in __bch2_truncate_folio
2024/06/08 06:40 upstream 96e09b8f8166 82c05ab8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs 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/06/05 15:25 upstream 32f88d65f01b 5aa1a7c9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in __bch2_truncate_folio
2024/06/01 02:10 upstream d8ec19857b09 3113787f .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in __bch2_truncate_folio
2024/06/01 02:10 upstream d8ec19857b09 3113787f .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in __bch2_truncate_folio
2024/05/30 05:40 upstream 4a4be1ad3a6e 34889ee3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs 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
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
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
2024/05/29 04:38 upstream e0cce98fe279 34889ee3 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root WARNING in __bch2_truncate_folio
2024/05/29 04:29 upstream e0cce98fe279 34889ee3 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root WARNING in __bch2_truncate_folio
2024/05/29 04:28 upstream e0cce98fe279 34889ee3 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root WARNING in __bch2_truncate_folio
2024/05/29 04:27 upstream e0cce98fe279 34889ee3 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root WARNING in __bch2_truncate_folio
2024/05/29 04:27 upstream e0cce98fe279 34889ee3 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root WARNING in __bch2_truncate_folio
2024/05/29 04:24 upstream e0cce98fe279 34889ee3 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root WARNING in __bch2_truncate_folio
2024/05/29 04:20 upstream e0cce98fe279 34889ee3 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root WARNING in __bch2_truncate_folio
2024/05/29 04:11 upstream e0cce98fe279 34889ee3 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root WARNING in __bch2_truncate_folio
2024/05/29 04:10 upstream e0cce98fe279 34889ee3 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root WARNING in __bch2_truncate_folio
2024/05/29 04:10 upstream e0cce98fe279 34889ee3 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root WARNING in __bch2_truncate_folio
2024/05/29 04:07 upstream e0cce98fe279 34889ee3 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root WARNING in __bch2_truncate_folio
2024/05/29 04:07 upstream e0cce98fe279 34889ee3 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root WARNING in __bch2_truncate_folio
2024/05/29 04:06 upstream e0cce98fe279 34889ee3 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root WARNING in __bch2_truncate_folio
2024/05/29 01:36 upstream e0cce98fe279 34889ee3 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root WARNING in __bch2_truncate_folio
2024/05/29 01:36 upstream e0cce98fe279 34889ee3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in __bch2_truncate_folio
2024/09/24 21:43 upstream abf2050f51fd 5643e0e9 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root WARNING in __bch2_truncate_folio
2024/09/24 17:20 upstream abf2050f51fd 5643e0e9 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root WARNING in __bch2_truncate_folio
2024/09/23 14:29 upstream de5cb0dcb74c 49f9c2d2 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root WARNING in __bch2_truncate_folio
2024/09/22 13:35 upstream 88264981f208 6f888b75 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root WARNING in __bch2_truncate_folio
2024/09/19 01:04 upstream 4a39ac5b7d62 c673ca06 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root WARNING in __bch2_truncate_folio
2024/09/16 21:27 upstream adfc3ded5c33 49cf0773 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root WARNING in __bch2_truncate_folio
2024/09/12 14:43 upstream 77f587896757 60e1a995 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root WARNING in __bch2_truncate_folio
2024/08/17 19:14 upstream e5fa841af679 e1c76ab2 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] 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
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
2024/05/28 09:10 linux-next 6dc544b66971 f550015e .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in __bch2_truncate_folio
2024/07/31 16:05 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci c912bf709078 6fde257d .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in __bch2_truncate_folio
2024/07/07 01:35 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 8a03d70c27fc bc4ebbb5 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in __bch2_truncate_folio
2024/06/26 22:00 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci b4a3f9b4863a 880c1ca1 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in __bch2_truncate_folio
2024/06/24 05:06 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci ac2193b4b460 edc5149a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in __bch2_truncate_folio
2024/06/19 18:14 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci ac2193b4b460 41b7e219 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in __bch2_truncate_folio
2024/06/09 08:18 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 8867bbd4a056 82c05ab8 .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.