syzbot


WARNING in bch2_prt_printf

Status: upstream: reported C repro on 2024/05/10 22:36
Subsystems: bcachefs
[Documentation on labels]
Reported-by: syzbot+4e41a25632658c77b441@syzkaller.appspotmail.com
First crash: 371d, last: 5d14h
Cause bisection: introduced by (bisect log) :
commit f39055220f6f98a180e3503fe05bbf9921c425c8
Author: Kent Overstreet <kent.overstreet@linux.dev>
Date: Mon May 6 02:28:00 2024 +0000

  bcachefs: Add missing validation for superblock section clean

Crash: WARNING in bch2_prt_printf (log)
Repro: C syz .config
  
Fix bisection: failed (error log, bisect log)
  
Discussions (2)
Title Replies (including bot) Last reply
[syzbot] Monthly bcachefs report (Sep 2024) 0 (1) 2024/09/13 10:03
[syzbot] [bcachefs?] WARNING in bch2_prt_printf 1 (3) 2024/05/22 23:30
Last patch testing requests (10)
Created Duration User Patch Repo Result
2025/03/15 06:32 13m retest repro upstream report log
2025/03/14 19:25 11m retest repro linux-next error
2025/03/06 11:01 35m retest repro upstream report log
2025/01/04 02:11 12m retest repro upstream report log
2025/01/03 18:55 28m retest repro linux-next report log
2024/12/26 09:43 1h00m retest repro upstream report log
2024/10/25 18:13 12m retest repro upstream report log
2024/10/25 17:08 17m retest repro linux-next report log
2024/08/16 15:23 58m retest repro linux-next report log
2024/08/16 11:42 16m retest repro upstream report log
Fix bisection attempts (4)
Created Duration User Patch Repo Result
2024/10/15 00:57 0m bisect fix upstream error job log
2024/09/06 15:12 2h32m bisect fix upstream OK (0) job log log
2024/08/02 09:19 1h14m bisect fix upstream OK (0) job log log
2024/06/26 14:33 1h08m bisect fix upstream OK (0) job log log

Sample crash report:
  node offset 16/24 bset u64s 36: checksum error, type chacha20_poly1305_128: got 75efa987d7eb58bdec091655a9b729db should be 9c0f2415a667f93682c3af0cd44ed5f4, fixing
------------[ cut here ]------------
precision 62476 too large
WARNING: CPU: 1 PID: 5825 at lib/vsprintf.c:2718 set_precision lib/vsprintf.c:2718 [inline]
WARNING: CPU: 1 PID: 5825 at lib/vsprintf.c:2718 vsnprintf+0xd76/0x1230 lib/vsprintf.c:2823
Modules linked in:
CPU: 1 UID: 0 PID: 5825 Comm: syz-executor418 Not tainted 6.14.0-syzkaller-07486-g15cb9a2b66fc #0 PREEMPT(full) 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025
RIP: 0010:set_precision lib/vsprintf.c:2718 [inline]
RIP: 0010:vsnprintf+0xd76/0x1230 lib/vsprintf.c:2823
Code: 00 e8 4e 3b aa f5 49 89 dd e9 0f f4 ff ff e8 41 3b aa f5 c6 05 57 8b 2d 04 01 90 48 c7 c7 00 2c 75 8d 89 de e8 7b 4b 69 f5 90 <0f> 0b 90 90 e9 ec fb ff ff 89 d9 80 e1 07 38 c1 7c bc 48 89 df e8
RSP: 0018:ffffc90003f0e220 EFLAGS: 00010246
RAX: 29b460c48a5afa00 RBX: 000000000000f40c RCX: ffff88802a2eda00
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffffc90003f0e330 R08: ffffffff81829c92 R09: 1ffff110170e47d2
R10: dffffc0000000000 R11: ffffed10170e47d3 R12: dffffc0000000000
R13: ffff888025d9d280 R14: ffffc90003f0e3c8 R15: 1ffff920007e1c58
FS:  0000555580b64380(0000) GS:ffff888125125000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055c083065010 CR3: 00000000773e8000 CR4: 00000000003526f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 bch2_prt_printf+0x1ba/0x6d0 fs/bcachefs/printbuf.c:183
 bch2_dirent_to_text+0x18e/0x3c0 fs/bcachefs/dirent.c:227
 __bch2_bkey_fsck_err+0x40b/0x590 fs/bcachefs/error.c:516
 bch2_dirent_validate+0xaf2/0xf90 fs/bcachefs/dirent.c:-1
 bch2_bkey_val_validate+0x217/0x410 fs/bcachefs/bkey_methods.c:143
 btree_node_bkey_val_validate fs/bcachefs/btree_io.c:839 [inline]
 bch2_btree_node_read_done+0x413b/0x62d0 fs/bcachefs/btree_io.c:1254
 btree_node_read_work+0x6cb/0x1400 fs/bcachefs/btree_io.c:1365
 bch2_btree_node_read+0x2427/0x29e0 fs/bcachefs/btree_io.c:-1
 __bch2_btree_root_read fs/bcachefs/btree_io.c:1795 [inline]
 bch2_btree_root_read+0x656/0x7e0 fs/bcachefs/btree_io.c:1817
 read_btree_roots+0x3d7/0xa80 fs/bcachefs/recovery.c:581
 bch2_fs_recovery+0x28e4/0x3e20 fs/bcachefs/recovery.c:928
 bch2_fs_start+0x37c/0x620 fs/bcachefs/super.c:1057
 bch2_fs_get_tree+0x1270/0x18d0 fs/bcachefs/fs.c:2253
 vfs_get_tree+0x90/0x2b0 fs/super.c:1759
 do_new_mount+0x2cf/0xb70 fs/namespace.c:3878
 do_mount fs/namespace.c:4218 [inline]
 __do_sys_mount fs/namespace.c:4429 [inline]
 __se_sys_mount+0x38c/0x400 fs/namespace.c:4406
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0xf3/0x230 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fada26629fa
Code: d8 64 89 02 48 c7 c0 ff ff ff ff eb a6 e8 5e 04 00 00 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 49 89 ca b8 a5 00 00 00 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:00007ffffda980c8 EFLAGS: 00000282 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007ffffda980e0 RCX: 00007fada26629fa
RDX: 000020000000f640 RSI: 0000200000000200 RDI: 00007ffffda980e0
RBP: 0000200000000200 R08: 00007ffffda98120 R09: 000000000000f61a
R10: 0000000002a18414 R11: 0000000000000282 R12: 000020000000f640
R13: 00007ffffda98120 R14: 0000000000000003 R15: 0000000002a18414
 </TASK>

Crashes (59):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/03/29 01:15 upstream 15cb9a2b66fc 9a1a9e31 .config strace log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-upstream-fs WARNING in bch2_prt_printf
2024/05/12 19:20 upstream ba16c1cf11c9 9026e142 .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-upstream-fs WARNING in bch2_prt_printf
2024/05/10 23:30 upstream f4345f05c0df f7c35481 .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-upstream-fs WARNING in bch2_prt_printf
2024/05/10 21:49 linux-next 75fa778d74b7 f7c35481 .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-linux-next-kasan-gce-root WARNING in bch2_prt_printf
2024/05/19 06:37 upstream 0450d2083be6 c0f1611a .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-upstream-fs WARNING in bch2_prt_printf
2025/05/11 16:59 upstream 3ce9925823c7 77908e5f .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root WARNING in bch2_prt_printf
2025/05/09 08:04 upstream 2c89c1b655c0 bb813bcc .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in bch2_prt_printf
2025/04/29 12:51 upstream ca91b9500108 aeb6ec69 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in bch2_prt_printf
2025/04/23 10:52 upstream bc3372351d0c 53a8b9bd .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in bch2_prt_printf
2025/04/11 18:58 upstream 900241a5cc15 94486846 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in bch2_prt_printf
2024/05/23 01:16 upstream b6394d6f7159 4d098039 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in bch2_prt_printf
2024/05/21 09:54 upstream 72ece20127a3 c0f1611a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root WARNING in bch2_prt_printf
2024/05/19 09:34 upstream 0450d2083be6 c0f1611a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root WARNING in bch2_prt_printf
2024/05/19 09:34 upstream 0450d2083be6 c0f1611a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root WARNING in bch2_prt_printf
2024/05/19 08:57 upstream 0450d2083be6 c0f1611a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root WARNING in bch2_prt_printf
2024/05/19 08:57 upstream 0450d2083be6 c0f1611a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root WARNING in bch2_prt_printf
2024/05/19 08:36 upstream 0450d2083be6 c0f1611a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root WARNING in bch2_prt_printf
2024/05/19 08:26 upstream 0450d2083be6 c0f1611a .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in bch2_prt_printf
2024/05/19 08:26 upstream 0450d2083be6 c0f1611a .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in bch2_prt_printf
2024/05/19 07:54 upstream 0450d2083be6 c0f1611a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root WARNING in bch2_prt_printf
2024/05/19 07:54 upstream 0450d2083be6 c0f1611a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root WARNING in bch2_prt_printf
2024/05/19 05:56 upstream 0450d2083be6 c0f1611a .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in bch2_prt_printf
2024/05/19 05:56 upstream 0450d2083be6 c0f1611a .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in bch2_prt_printf
2025/05/03 09:40 upstream 00b827f0cffa b0714e37 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root WARNING in bch2_prt_printf
2025/05/03 06:47 upstream 00b827f0cffa b0714e37 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root WARNING in bch2_prt_printf
2025/05/01 20:39 upstream 4f79eaa2ceac 51b137cd .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root WARNING in bch2_prt_printf
2025/04/28 05:46 upstream b4432656b36e c6b4fb39 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root WARNING in bch2_prt_printf
2025/04/25 16:55 upstream 02ddfb981de8 dea5c7e4 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root WARNING in bch2_prt_printf
2025/04/24 16:28 upstream a79be02bba5c 9c80ffa0 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root WARNING in bch2_prt_printf
2025/04/22 19:52 upstream a33b5a08cbbd 53a8b9bd .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root WARNING in bch2_prt_printf
2025/04/21 21:11 upstream 9d7a0577c9db 2a20f901 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root WARNING in bch2_prt_printf
2025/04/20 20:26 upstream 6fea5fabd332 2a20f901 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root WARNING in bch2_prt_printf
2025/04/19 04:57 upstream 3088d26962e8 2a20f901 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root WARNING in bch2_prt_printf
2025/04/18 18:17 upstream fc96b232f8e7 2a20f901 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root WARNING in bch2_prt_printf
2025/04/16 04:24 upstream 1a1d569a75f3 a95239b1 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root WARNING in bch2_prt_printf
2025/04/15 13:41 upstream 834a4a689699 85125322 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root WARNING in bch2_prt_printf
2025/04/15 13:27 upstream 834a4a689699 85125322 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root WARNING in bch2_prt_printf
2025/04/15 04:48 upstream 834a4a689699 0bd6db41 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root WARNING in bch2_prt_printf
2025/04/14 15:56 upstream 8ffd015db85f 0bd6db41 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root WARNING in bch2_prt_printf
2025/04/14 15:45 upstream 8ffd015db85f 0bd6db41 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root WARNING in bch2_prt_printf
2025/04/14 14:09 upstream 8ffd015db85f 0bd6db41 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root WARNING in bch2_prt_printf
2025/04/14 12:34 upstream 8ffd015db85f 0bd6db41 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root WARNING in bch2_prt_printf
2025/04/11 03:10 upstream 0c7cae12f67c 94486846 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root WARNING in bch2_prt_printf
2025/04/10 14:27 upstream 3b07108ada81 1ef3ab4d .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root WARNING in bch2_prt_printf
2025/04/10 06:03 upstream 3b07108ada81 988b336c .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root WARNING in bch2_prt_printf
2025/04/07 17:08 upstream 0af2f6be1b42 2f0c9720 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root WARNING in bch2_prt_printf
2025/04/07 08:19 upstream 0af2f6be1b42 1c65791e .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root WARNING in bch2_prt_printf
2025/04/05 00:28 upstream e48e99b6edf4 c53ea9c9 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root WARNING in bch2_prt_printf
2025/04/02 22:00 upstream acc4d5ff0b61 b0cc4801 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root WARNING in bch2_prt_printf
2025/04/01 17:47 upstream 08733088b566 b8645499 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root WARNING in bch2_prt_printf
2025/03/31 03:33 upstream 7f2ff7b62617 d3999433 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root WARNING in bch2_prt_printf
2025/03/30 12:52 upstream 93d52288679e d3999433 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root WARNING in bch2_prt_printf
2025/03/30 09:43 upstream 93d52288679e d3999433 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root WARNING in bch2_prt_printf
2025/03/29 22:47 upstream 7d06015d936c d3999433 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root WARNING in bch2_prt_printf
2025/03/29 16:24 upstream 7d06015d936c d3999433 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root WARNING in bch2_prt_printf
2025/03/28 23:16 upstream acb4f33713b9 9a1a9e31 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root WARNING in bch2_prt_printf
2024/05/10 21:30 linux-next 75fa778d74b7 f7c35481 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in bch2_prt_printf
2025/04/20 17:30 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci c72692105976 2a20f901 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in bch2_prt_printf
* Struck through repros no longer work on HEAD.