syzbot


KMSAN: uninit-value in bch2_alloc_v4_invalid

Status: closed as invalid on 2024/08/22 17:03
Subsystems: bcachefs
[Documentation on labels]
Reported-by: syzbot+3b2968fa4953885dd66a@syzkaller.appspotmail.com
First crash: 171d, last: 85d
Discussions (3)
Title Replies (including bot) Last reply
[syzbot] [bcachefs?] KMSAN: uninit-value in bch2_alloc_v4_invalid 1 (3) 2024/08/22 17:03
[syzbot] Monthly bcachefs report (Aug 2024) 0 (1) 2024/08/13 08:53
[syzbot] Monthly bcachefs report (Jun 2024) 0 (1) 2024/06/11 08:27
Last patch testing requests (5)
Created Duration User Patch Repo Result
2024/06/27 15:58 21m retest repro upstream error
2024/06/27 15:58 22m retest repro upstream error
2024/06/27 15:58 22m retest repro upstream error
2024/06/27 15:58 22m retest repro upstream error
2024/06/27 15:58 22m retest repro upstream error

Sample crash report:
bcachefs (loop0): recovering from clean shutdown, journal seq 8
bcachefs (loop0): Doing compatible version upgrade from 1.7: mi_btree_bitmap to 1.9: disk_accounting_v2
  running recovery passes: check_allocations
=====================================================
BUG: KMSAN: uninit-value in alloc_data_type fs/bcachefs/alloc_background.h:127 [inline]
BUG: KMSAN: uninit-value in bch2_alloc_v4_invalid+0x9b9/0x1760 fs/bcachefs/alloc_background.c:259
 alloc_data_type fs/bcachefs/alloc_background.h:127 [inline]
 bch2_alloc_v4_invalid+0x9b9/0x1760 fs/bcachefs/alloc_background.c:259
 bch2_bkey_val_invalid+0x2b2/0x410 fs/bcachefs/bkey_methods.c:144
 bch2_btree_node_read_done+0x5c25/0x7a80 fs/bcachefs/btree_io.c:1233
 btree_node_read_work+0x973/0x1960 fs/bcachefs/btree_io.c:1346
 bch2_btree_node_read+0x2e6b/0x36e0
 __bch2_btree_root_read fs/bcachefs/btree_io.c:1770 [inline]
 bch2_btree_root_read+0xa6c/0x13d0 fs/bcachefs/btree_io.c:1794
 read_btree_roots+0x4e6/0xfb0 fs/bcachefs/recovery.c:516
 bch2_fs_recovery+0x4224/0x5a20 fs/bcachefs/recovery.c:844
 bch2_fs_start+0x7b2/0xbd0 fs/bcachefs/super.c:1036
 bch2_fs_get_tree+0x13e8/0x22d0 fs/bcachefs/fs.c:1946
 vfs_get_tree+0xa7/0x570 fs/super.c:1789
 do_new_mount+0x71f/0x15e0 fs/namespace.c:3472
 path_mount+0x742/0x1f10 fs/namespace.c:3799
 do_mount fs/namespace.c:3812 [inline]
 __do_sys_mount fs/namespace.c:4020 [inline]
 __se_sys_mount+0x722/0x810 fs/namespace.c:3997
 __x64_sys_mount+0xe4/0x150 fs/namespace.c:3997
 x64_sys_call+0xed5/0x3c10 arch/x86/include/generated/asm/syscalls_64.h:166
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xcd/0x1e0 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

Uninit was created at:
 ___kmalloc_large_node+0x22c/0x370 mm/slub.c:4113
 __kmalloc_large_node_noprof+0x3f/0x1e0 mm/slub.c:4130
 __do_kmalloc_node mm/slub.c:4146 [inline]
 __kmalloc_node_noprof+0x9d6/0xf50 mm/slub.c:4164
 __kvmalloc_node_noprof+0xc0/0x2d0 mm/util.c:650
 btree_bounce_alloc fs/bcachefs/btree_io.c:124 [inline]
 bch2_btree_node_read_done+0x5214/0x7a80 fs/bcachefs/btree_io.c:1204
 btree_node_read_work+0x973/0x1960 fs/bcachefs/btree_io.c:1346
 bch2_btree_node_read+0x2e6b/0x36e0
 __bch2_btree_root_read fs/bcachefs/btree_io.c:1770 [inline]
 bch2_btree_root_read+0xa6c/0x13d0 fs/bcachefs/btree_io.c:1794
 read_btree_roots+0x4e6/0xfb0 fs/bcachefs/recovery.c:516
 bch2_fs_recovery+0x4224/0x5a20 fs/bcachefs/recovery.c:844
 bch2_fs_start+0x7b2/0xbd0 fs/bcachefs/super.c:1036
 bch2_fs_get_tree+0x13e8/0x22d0 fs/bcachefs/fs.c:1946
 vfs_get_tree+0xa7/0x570 fs/super.c:1789
 do_new_mount+0x71f/0x15e0 fs/namespace.c:3472
 path_mount+0x742/0x1f10 fs/namespace.c:3799
 do_mount fs/namespace.c:3812 [inline]
 __do_sys_mount fs/namespace.c:4020 [inline]
 __se_sys_mount+0x722/0x810 fs/namespace.c:3997
 __x64_sys_mount+0xe4/0x150 fs/namespace.c:3997
 x64_sys_call+0xed5/0x3c10 arch/x86/include/generated/asm/syscalls_64.h:166
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xcd/0x1e0 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

CPU: 0 UID: 0 PID: 5054 Comm: syz-executor409 Not tainted 6.10.0-syzkaller-12030-g66ebbdfdeb09 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/27/2024
=====================================================

Crashes (402):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/07/23 19:10 upstream 66ebbdfdeb09 708c10c4 .config strace log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-kmsan-gce-root KMSAN: uninit-value in bch2_alloc_v4_invalid
2024/06/10 13:19 upstream 614da38e2f7a 82c05ab8 .config strace log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-kmsan-gce-root KMSAN: uninit-value in bch2_alloc_v4_invalid
2024/06/10 10:28 upstream 614da38e2f7a 82c05ab8 .config strace log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-kmsan-gce-root KMSAN: uninit-value in bch2_alloc_v4_invalid
2024/06/10 08:29 upstream 614da38e2f7a 82c05ab8 .config strace log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-kmsan-gce-root KMSAN: uninit-value in bch2_alloc_v4_invalid
2024/06/10 01:12 upstream 614da38e2f7a 82c05ab8 .config strace log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-kmsan-gce-root KMSAN: uninit-value in bch2_alloc_v4_invalid
2024/06/01 16:52 upstream 614da38e2f7a 3113787f .config strace log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-kmsan-gce-root KMSAN: uninit-value in bch2_alloc_v4_invalid
2024/08/15 16:40 upstream 1fb918967b56 e4bacdaf .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in bch2_alloc_v4_invalid
2024/08/14 08:14 upstream 6b0f8db921ab bde81f6f .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in bch2_alloc_v4_invalid
2024/08/11 17:50 upstream 5189dafa4cf9 6f4edef4 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in bch2_alloc_v4_invalid
2024/08/10 02:40 upstream ee9a43b7cfe2 a9e7e9e3 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in bch2_alloc_v4_invalid
2024/08/09 20:13 upstream ee9a43b7cfe2 a9e7e9e3 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in bch2_alloc_v4_invalid
2024/08/09 03:56 upstream cf6d429eb656 61405512 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in bch2_alloc_v4_invalid
2024/08/08 15:34 upstream 6a0e38264012 de12cf65 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in bch2_alloc_v4_invalid
2024/08/05 22:06 upstream de9c2c66ad8e e35c337f .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in bch2_alloc_v4_invalid
2024/08/04 08:24 upstream defaf1a2113a 1786a2a8 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in bch2_alloc_v4_invalid
2024/08/04 00:21 upstream 17712b7ea075 1786a2a8 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in bch2_alloc_v4_invalid
2024/08/04 00:21 upstream 17712b7ea075 1786a2a8 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in bch2_alloc_v4_invalid
2024/08/02 11:18 upstream c0ecd6388360 1e9c4cf3 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in bch2_alloc_v4_invalid
2024/08/02 06:52 upstream c0ecd6388360 1e9c4cf3 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in bch2_alloc_v4_invalid
2024/07/29 18:36 upstream dc1c8034e31b 5187fc86 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in bch2_alloc_v4_invalid
2024/07/25 04:14 upstream 786c8248dbd3 b24754ac .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in bch2_alloc_v4_invalid
2024/07/25 02:10 upstream 786c8248dbd3 b24754ac .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in bch2_alloc_v4_invalid
2024/07/25 00:42 upstream 786c8248dbd3 b24754ac .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in bch2_alloc_v4_invalid
2024/07/23 11:26 upstream 66ebbdfdeb09 708c10c4 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in bch2_alloc_v4_invalid
2024/07/22 18:45 upstream 933069701c1b f063dfd9 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in bch2_alloc_v4_invalid
2024/07/20 22:09 upstream 3c3ff7be9729 b88348e9 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in bch2_alloc_v4_invalid
2024/07/20 22:08 upstream 3c3ff7be9729 b88348e9 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in bch2_alloc_v4_invalid
2024/07/20 16:02 upstream 3c3ff7be9729 b88348e9 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in bch2_alloc_v4_invalid
2024/07/20 11:52 upstream a4f928552058 b88348e9 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in bch2_alloc_v4_invalid
2024/07/20 10:06 upstream a4f928552058 b88348e9 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in bch2_alloc_v4_invalid
2024/07/20 08:25 upstream a4f928552058 b88348e9 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in bch2_alloc_v4_invalid
2024/07/20 07:52 upstream a4f928552058 b88348e9 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in bch2_alloc_v4_invalid
2024/07/20 07:50 upstream a4f928552058 b88348e9 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in bch2_alloc_v4_invalid
2024/07/20 06:49 upstream a4f928552058 b88348e9 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in bch2_alloc_v4_invalid
2024/07/20 06:05 upstream a4f928552058 b88348e9 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in bch2_alloc_v4_invalid
2024/07/20 05:29 upstream a4f928552058 b88348e9 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in bch2_alloc_v4_invalid
2024/07/20 04:02 upstream a4f928552058 b88348e9 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in bch2_alloc_v4_invalid
2024/07/20 04:02 upstream a4f928552058 b88348e9 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in bch2_alloc_v4_invalid
2024/07/20 02:52 upstream a4f928552058 b88348e9 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in bch2_alloc_v4_invalid
2024/07/20 01:48 upstream a4f928552058 b88348e9 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in bch2_alloc_v4_invalid
2024/07/20 01:43 upstream a4f928552058 b88348e9 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in bch2_alloc_v4_invalid
2024/07/20 00:39 upstream a4f928552058 b88348e9 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in bch2_alloc_v4_invalid
2024/07/19 23:28 upstream a4f928552058 b88348e9 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in bch2_alloc_v4_invalid
2024/07/19 22:24 upstream a4f928552058 ee4e11c8 .config console log report info [disk image] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in bch2_alloc_v4_invalid
2024/07/19 21:45 upstream a4f928552058 ee4e11c8 .config console log report info [disk image] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in bch2_alloc_v4_invalid
2024/06/13 14:30 upstream 614da38e2f7a 2aa5052f .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in bch2_alloc_v4_invalid
2024/06/13 13:02 upstream 614da38e2f7a 2aa5052f .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in bch2_alloc_v4_invalid
2024/06/13 11:52 upstream 614da38e2f7a 2aa5052f .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in bch2_alloc_v4_invalid
2024/05/21 14:44 upstream 614da38e2f7a c0f1611a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in bch2_alloc_v4_invalid
2024/05/23 01:00 upstream 101b7a97143a 4d098039 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386-root KMSAN: uninit-value in bch2_alloc_v4_invalid
* Struck through repros no longer work on HEAD.