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: 183d, last: 22h19m
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:
------------[ cut here ]------------
WARNING: CPU: 0 PID: 5093 at fs/bcachefs/fs-io.c:315 __bch2_truncate_folio+0x2059/0x2450 fs/bcachefs/fs-io.c:315
Modules linked in:
CPU: 0 UID: 0 PID: 5093 Comm: syz-executor230 Not tainted 6.12.0-rc4-syzkaller-00047-gc2ee9f594da8 #0
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014
RIP: 0010:__bch2_truncate_folio+0x2059/0x2450 fs/bcachefs/fs-io.c:315
Code: 41 5f 5d c3 cc cc cc cc e8 b4 0f 62 fd 48 c7 c7 30 02 15 8e e8 08 86 e8 ff 89 05 62 85 24 16 e9 a0 e2 ff ff e8 98 0f 62 fd 90 <0f> 0b 90 e9 eb f9 ff ff 44 89 f9 80 e1 07 80 c1 03 38 c1 0f 8c f6
RSP: 0018:ffffc90002b6f8e0 EFLAGS: 00010293
RAX: ffffffff8432c848 RBX: 0000000000000000 RCX: ffff88801cfb0000
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffffc90002b6fbf0 R08: ffffffff8432c22e R09: 1ffffd40001fdb30
R10: dffffc0000000000 R11: fffff940001fdb31 R12: 1ffff11008f0c8fa
R13: ffff888041e006ba R14: 0000000000000000 R15: ffff8880478647d0
FS:  0000555564599380(0000) GS:ffff88801fc00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f951508c0f8 CR3: 000000003d7f4000 CR4: 0000000000352ef0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 bch2_truncate_folios fs/bcachefs/fs-io.c:354 [inline]
 bchfs_fpunch+0x115/0x780 fs/bcachefs/fs-io.c:508
 bch2_fallocate_dispatch+0x3e4/0x540 fs/bcachefs/fs-io.c:773
 vfs_fallocate+0x569/0x6e0 fs/open.c:333
 ksys_fallocate fs/open.c:356 [inline]
 __do_sys_fallocate fs/open.c:364 [inline]
 __se_sys_fallocate fs/open.c:362 [inline]
 __x64_sys_fallocate+0xbd/0x110 fs/open.c:362
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f951500ed59
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:00007ffe957ae9b8 EFLAGS: 00000246 ORIG_RAX: 000000000000011d
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f951500ed59
RDX: 0000000000000df6 RSI: 0000000000000003 RDI: 0000000000000004
RBP: 00007f95150885f0 R08: 000055556459a4c0 R09: 000055556459a4c0
R10: 000000000000cee8 R11: 0000000000000246 R12: 00007ffe957ae9e0
R13: 00007ffe957aec08 R14: 431bde82d7b634db R15: 00007f951505803b
 </TASK>

Crashes (156):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
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/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/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
2024/11/20 08:28 upstream bf9aa14fc523 7d02db5a .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root WARNING in __bch2_truncate_folio
2024/11/19 23:57 upstream 158f238aa69d 7d02db5a .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root WARNING in __bch2_truncate_folio
2024/11/18 02:15 upstream f66d6acccbc0 cfe3a04a .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root WARNING in __bch2_truncate_folio
2024/11/16 19:12 upstream e8bdb3c8be08 cfe3a04a .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root WARNING in __bch2_truncate_folio
2024/11/16 17:17 upstream e8bdb3c8be08 cfe3a04a .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root WARNING in __bch2_truncate_folio
2024/11/16 05:56 upstream f868cd251776 cfe3a04a .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root WARNING in __bch2_truncate_folio
2024/11/15 10:07 upstream cfaaa7d010d1 f6ede3a3 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root WARNING in __bch2_truncate_folio
2024/11/14 18:28 upstream 0a9b9d17f3a7 77f3eeb7 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root WARNING in __bch2_truncate_folio
2024/11/14 11:33 upstream 0a9b9d17f3a7 a8c99394 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root WARNING in __bch2_truncate_folio
2024/11/14 05:38 upstream 0a9b9d17f3a7 a8c99394 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root WARNING in __bch2_truncate_folio
2024/11/14 03:17 upstream 0a9b9d17f3a7 a8c99394 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root WARNING in __bch2_truncate_folio
2024/11/13 23:27 upstream f1b785f4c787 4dfba277 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root WARNING in __bch2_truncate_folio
2024/11/13 09:07 upstream 3022e9d00ebe 62026c85 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root WARNING in __bch2_truncate_folio
2024/11/13 04:32 upstream 3022e9d00ebe 62026c85 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root WARNING in __bch2_truncate_folio
2024/11/12 16:28 upstream 2d5404caa8c7 c819f227 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root WARNING in __bch2_truncate_folio
2024/11/12 15:09 upstream 2d5404caa8c7 c819f227 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root WARNING in __bch2_truncate_folio
2024/11/12 07:15 upstream 2d5404caa8c7 75bb1b32 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root WARNING in __bch2_truncate_folio
2024/11/12 02:59 upstream 2d5404caa8c7 75bb1b32 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root WARNING in __bch2_truncate_folio
2024/11/11 07:35 upstream a9cda7c0ffed 6b856513 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root WARNING in __bch2_truncate_folio
2024/11/11 06:24 upstream a9cda7c0ffed 6b856513 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root WARNING in __bch2_truncate_folio
2024/11/09 10:15 upstream f1dce1f09380 6b856513 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root WARNING in __bch2_truncate_folio
2024/11/09 06:04 upstream f1dce1f09380 6b856513 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root WARNING in __bch2_truncate_folio
2024/11/09 03:47 upstream f1dce1f09380 6b856513 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root WARNING in __bch2_truncate_folio
2024/11/08 03:59 upstream 906bd684e4b1 179b040e .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root WARNING in __bch2_truncate_folio
2024/11/07 23:56 upstream ff7afaeca1a1 867e44df .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root WARNING in __bch2_truncate_folio
2024/11/07 22:31 upstream ff7afaeca1a1 867e44df .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root WARNING in __bch2_truncate_folio
2024/11/06 10:54 upstream 2e1b3cc9d7f7 3a465482 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root WARNING in __bch2_truncate_folio
2024/11/05 22:09 upstream 2e1b3cc9d7f7 da38b4c9 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root WARNING in __bch2_truncate_folio
2024/11/05 20:38 upstream 2e1b3cc9d7f7 da38b4c9 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root WARNING in __bch2_truncate_folio
2024/11/05 15:38 upstream 2e1b3cc9d7f7 da38b4c9 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root WARNING in __bch2_truncate_folio
2024/11/04 17:00 upstream 59b723cd2adb 0754ea12 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root WARNING in __bch2_truncate_folio
2024/11/04 03:46 upstream b9021de3ec2f f00eed24 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root WARNING in __bch2_truncate_folio
2024/11/04 02:38 upstream b9021de3ec2f f00eed24 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root WARNING in __bch2_truncate_folio
2024/11/04 00:53 upstream b9021de3ec2f f00eed24 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root WARNING in __bch2_truncate_folio
2024/11/03 10:13 upstream 3e5e6c9900c3 f00eed24 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root WARNING in __bch2_truncate_folio
2024/11/01 20:17 upstream 6c52d4da1c74 f00eed24 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root WARNING in __bch2_truncate_folio
2024/11/01 11:54 upstream 90602c251cda 96eb609f .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root WARNING in __bch2_truncate_folio
2024/11/01 06:45 upstream 90602c251cda 96eb609f .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root WARNING in __bch2_truncate_folio
2024/10/31 20:55 upstream 0fc810ae3ae1 96eb609f .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root WARNING in __bch2_truncate_folio
2024/10/30 09:25 upstream c1e939a21eb1 66aeb999 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root WARNING in __bch2_truncate_folio
2024/10/30 03:12 upstream e42b1a9a2557 66aeb999 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root WARNING in __bch2_truncate_folio
2024/10/29 22:37 upstream e42b1a9a2557 66aeb999 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root WARNING in __bch2_truncate_folio
2024/10/29 19:57 upstream e42b1a9a2557 66aeb999 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root WARNING in __bch2_truncate_folio
2024/10/29 18:16 upstream e42b1a9a2557 66aeb999 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root WARNING in __bch2_truncate_folio
2024/10/29 09:49 upstream e42b1a9a2557 66aeb999 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root WARNING in __bch2_truncate_folio
2024/10/28 18:13 upstream 819837584309 9efb3cc7 .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/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
* Struck through repros no longer work on HEAD.