syzbot


KMSAN: uninit-value in hfs_revalidate_dentry

Status: upstream: reported C repro on 2022/11/25 09:56
Subsystems: hfs (incorrect?)
Reported-by: syzbot+3ae6be33a50b5aae4dab@syzkaller.appspotmail.com
First crash: 125d, last: 41m
similar bugs (4):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KASAN: slab-out-of-bounds Read in ntfs_iget5 ntfs3 C done 3458 1d05h 342d 0/24 upstream: reported C repro on 2022/04/22 13:07
upstream KMSAN: uninit-value in hfsplus_delete_cat hfs C 480 1d18h 115d 0/24 upstream: reported C repro on 2022/12/05 09:19
upstream KMSAN: uninit-value in inode_go_dump gfs2 6 7d21h 72d 0/24 upstream: reported on 2023/01/17 10:38
upstream KMSAN: uninit-value in reiserfs_new_inode (2) reiserfs 567 1d14h 126d 0/24 upstream: reported on 2022/11/24 06:39

Sample crash report:
=======================================================
WARNING: The mand mount option has been deprecated and
         and is ignored by this kernel. Remove the mand
         option from the mount to silence this warning.
=======================================================
=====================================================
BUG: KMSAN: uninit-value in hfs_ext_read_extent fs/hfs/extent.c:196 [inline]
BUG: KMSAN: uninit-value in hfs_get_block+0x92d/0x1620 fs/hfs/extent.c:366
 hfs_ext_read_extent fs/hfs/extent.c:196 [inline]
 hfs_get_block+0x92d/0x1620 fs/hfs/extent.c:366
 block_read_full_folio+0x4ff/0x11b0 fs/buffer.c:2271
 hfs_read_folio+0x55/0x60 fs/hfs/inode.c:39
 filemap_read_folio+0x148/0x4f0 mm/filemap.c:2426
 do_read_cache_folio+0x7c8/0xd90 mm/filemap.c:3553
 do_read_cache_page mm/filemap.c:3595 [inline]
 read_cache_page+0xfb/0x2f0 mm/filemap.c:3604
 read_mapping_page include/linux/pagemap.h:755 [inline]
 hfs_btree_open+0x928/0x1ae0 fs/hfs/btree.c:78
 hfs_mdb_get+0x260c/0x3000 fs/hfs/mdb.c:204
 hfs_fill_super+0x1fb1/0x2790 fs/hfs/super.c:406
 mount_bdev+0x628/0x920 fs/super.c:1359
 hfs_mount+0xcd/0xe0 fs/hfs/super.c:456
 legacy_get_tree+0x167/0x2e0 fs/fs_context.c:610
 vfs_get_tree+0xdc/0x5d0 fs/super.c:1489
 do_new_mount+0x7a9/0x16f0 fs/namespace.c:3145
 path_mount+0xf98/0x26a0 fs/namespace.c:3475
 do_mount fs/namespace.c:3488 [inline]
 __do_sys_mount fs/namespace.c:3697 [inline]
 __se_sys_mount+0x919/0x9e0 fs/namespace.c:3674
 __ia32_sys_mount+0x15b/0x1b0 fs/namespace.c:3674
 do_syscall_32_irqs_on arch/x86/entry/common.c:112 [inline]
 __do_fast_syscall_32+0xa2/0x100 arch/x86/entry/common.c:178
 do_fast_syscall_32+0x37/0x80 arch/x86/entry/common.c:203
 do_SYSENTER_32+0x1f/0x30 arch/x86/entry/common.c:246
 entry_SYSENTER_compat_after_hwframe+0x70/0x82

Uninit was created at:
 __alloc_pages+0x926/0x10a0 mm/page_alloc.c:5572
 alloc_pages+0xb4b/0xec0
 alloc_slab_page mm/slub.c:1851 [inline]
 allocate_slab mm/slub.c:1998 [inline]
 new_slab+0x5c5/0x19b0 mm/slub.c:2051
 ___slab_alloc+0x132b/0x3790 mm/slub.c:3193
 __slab_alloc mm/slub.c:3292 [inline]
 __slab_alloc_node mm/slub.c:3345 [inline]
 slab_alloc_node mm/slub.c:3442 [inline]
 slab_alloc mm/slub.c:3460 [inline]
 __kmem_cache_alloc_lru mm/slub.c:3467 [inline]
 kmem_cache_alloc_lru+0x72f/0xb80 mm/slub.c:3483
 alloc_inode_sb include/linux/fs.h:3119 [inline]
 hfs_alloc_inode+0x80/0xf0 fs/hfs/super.c:165
 alloc_inode+0xad/0x4b0 fs/inode.c:259
 iget_locked+0x340/0xf80 fs/inode.c:1286
 hfs_btree_open+0x20d/0x1ae0 fs/hfs/btree.c:38
 hfs_mdb_get+0x2519/0x3000 fs/hfs/mdb.c:199
 hfs_fill_super+0x1fb1/0x2790 fs/hfs/super.c:406
 mount_bdev+0x628/0x920 fs/super.c:1359
 hfs_mount+0xcd/0xe0 fs/hfs/super.c:456
 legacy_get_tree+0x167/0x2e0 fs/fs_context.c:610
 vfs_get_tree+0xdc/0x5d0 fs/super.c:1489
 do_new_mount+0x7a9/0x16f0 fs/namespace.c:3145
 path_mount+0xf98/0x26a0 fs/namespace.c:3475
 do_mount fs/namespace.c:3488 [inline]
 __do_sys_mount fs/namespace.c:3697 [inline]
 __se_sys_mount+0x919/0x9e0 fs/namespace.c:3674
 __ia32_sys_mount+0x15b/0x1b0 fs/namespace.c:3674
 do_syscall_32_irqs_on arch/x86/entry/common.c:112 [inline]
 __do_fast_syscall_32+0xa2/0x100 arch/x86/entry/common.c:178
 do_fast_syscall_32+0x37/0x80 arch/x86/entry/common.c:203
 do_SYSENTER_32+0x1f/0x30 arch/x86/entry/common.c:246
 entry_SYSENTER_compat_after_hwframe+0x70/0x82

CPU: 1 PID: 5015 Comm: syz-executor119 Not tainted 6.2.0-rc7-syzkaller-80760-g8c89ecf5c13b #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/21/2023
=====================================================

Crashes (974):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets Title
ci-upstream-kmsan-gce-386 2023/02/10 12:21 https://github.com/google/kmsan.git master 8c89ecf5c13b 07980f9d .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] KMSAN: uninit-value in hfs_get_block
ci-upstream-kmsan-gce-386 2023/03/30 13:37 https://github.com/google/kmsan.git master 90ea0df61c98 f325deb0 .config console log report info [disk image] [vmlinux] [kernel image] KMSAN: uninit-value in hfs_revalidate_dentry
ci-upstream-kmsan-gce-386 2023/03/30 04:44 https://github.com/google/kmsan.git master 90ea0df61c98 f325deb0 .config console log report info [disk image] [vmlinux] [kernel image] KMSAN: uninit-value in hfs_revalidate_dentry
ci-upstream-kmsan-gce-386 2023/03/30 02:52 https://github.com/google/kmsan.git master 90ea0df61c98 f325deb0 .config console log report info [disk image] [vmlinux] [kernel image] KMSAN: uninit-value in hfs_revalidate_dentry
ci-upstream-kmsan-gce-386 2023/03/30 01:14 https://github.com/google/kmsan.git master 90ea0df61c98 f325deb0 .config console log report info [disk image] [vmlinux] [kernel image] KMSAN: uninit-value in hfs_revalidate_dentry
ci-upstream-kmsan-gce-386 2023/03/29 08:01 https://github.com/google/kmsan.git master 90ea0df61c98 fc067f05 .config console log report info [disk image] [vmlinux] [kernel image] KMSAN: uninit-value in hfs_revalidate_dentry
ci-upstream-kmsan-gce-386 2023/03/29 04:22 https://github.com/google/kmsan.git master 90ea0df61c98 fc067f05 .config console log report info [disk image] [vmlinux] [kernel image] KMSAN: uninit-value in hfs_revalidate_dentry
ci-upstream-kmsan-gce-386 2023/03/28 17:40 https://github.com/google/kmsan.git master 90ea0df61c98 48c74771 .config console log report info [disk image] [vmlinux] [kernel image] KMSAN: uninit-value in hfs_revalidate_dentry
ci-upstream-kmsan-gce-386 2023/03/28 10:13 https://github.com/google/kmsan.git master 90ea0df61c98 47f3aaf1 .config console log report info [disk image] [vmlinux] [kernel image] KMSAN: uninit-value in hfs_revalidate_dentry
ci-upstream-kmsan-gce-386 2023/03/28 08:59 https://github.com/google/kmsan.git master 90ea0df61c98 47f3aaf1 .config console log report info [disk image] [vmlinux] [kernel image] KMSAN: uninit-value in hfs_revalidate_dentry
ci-upstream-kmsan-gce-386 2023/03/28 05:17 https://github.com/google/kmsan.git master 90ea0df61c98 47f3aaf1 .config console log report info [disk image] [vmlinux] [kernel image] KMSAN: uninit-value in hfs_revalidate_dentry
ci-upstream-kmsan-gce-386 2023/03/28 03:06 https://github.com/google/kmsan.git master 90ea0df61c98 47f3aaf1 .config console log report info [disk image] [vmlinux] [kernel image] KMSAN: uninit-value in hfs_revalidate_dentry
ci-upstream-kmsan-gce-386 2023/03/27 18:26 https://github.com/google/kmsan.git master 90ea0df61c98 f8f96aa9 .config console log report info [disk image] [vmlinux] [kernel image] KMSAN: uninit-value in hfs_revalidate_dentry
ci-upstream-kmsan-gce-386 2023/03/27 08:28 https://github.com/google/kmsan.git master 90ea0df61c98 fbf0499a .config console log report info [disk image] [vmlinux] [kernel image] KMSAN: uninit-value in hfs_revalidate_dentry
ci-upstream-kmsan-gce-386 2023/03/27 02:37 https://github.com/google/kmsan.git master 90ea0df61c98 fbf0499a .config console log report info [disk image] [vmlinux] [kernel image] KMSAN: uninit-value in hfs_revalidate_dentry
ci-upstream-kmsan-gce-386 2023/03/25 22:22 https://github.com/google/kmsan.git master 90ea0df61c98 fbf0499a .config console log report info [disk image] [vmlinux] [kernel image] KMSAN: uninit-value in hfs_revalidate_dentry
ci-upstream-kmsan-gce-386 2023/03/25 21:10 https://github.com/google/kmsan.git master 90ea0df61c98 fbf0499a .config console log report info [disk image] [vmlinux] [kernel image] KMSAN: uninit-value in hfs_revalidate_dentry
ci-upstream-kmsan-gce-386 2023/03/24 23:53 https://github.com/google/kmsan.git master 90ea0df61c98 9700afae .config console log report info [disk image] [vmlinux] [kernel image] KMSAN: uninit-value in hfs_revalidate_dentry
ci-upstream-kmsan-gce-386 2023/03/24 10:43 https://github.com/google/kmsan.git master 90ea0df61c98 f94b4a29 .config console log report info [disk image] [vmlinux] [kernel image] KMSAN: uninit-value in hfs_revalidate_dentry
ci-upstream-kmsan-gce-386 2023/03/23 18:46 https://github.com/google/kmsan.git master 90ea0df61c98 f94b4a29 .config console log report info [disk image] [vmlinux] [kernel image] KMSAN: uninit-value in hfs_revalidate_dentry
ci-upstream-kmsan-gce-386 2023/03/23 15:46 https://github.com/google/kmsan.git master 90ea0df61c98 f94b4a29 .config console log report info [disk image] [vmlinux] [kernel image] KMSAN: uninit-value in hfs_revalidate_dentry
ci-upstream-kmsan-gce-386 2023/03/23 13:46 https://github.com/google/kmsan.git master 90ea0df61c98 f94b4a29 .config console log report info [disk image] [vmlinux] [kernel image] KMSAN: uninit-value in hfs_revalidate_dentry
ci-upstream-kmsan-gce-386 2023/03/23 13:33 https://github.com/google/kmsan.git master 90ea0df61c98 f94b4a29 .config console log report info [disk image] [vmlinux] [kernel image] KMSAN: uninit-value in hfs_revalidate_dentry
ci-upstream-kmsan-gce-386 2023/03/23 12:00 https://github.com/google/kmsan.git master 90ea0df61c98 f94b4a29 .config console log report info [disk image] [vmlinux] [kernel image] KMSAN: uninit-value in hfs_revalidate_dentry
ci-upstream-kmsan-gce-386 2023/03/23 11:00 https://github.com/google/kmsan.git master 90ea0df61c98 f94b4a29 .config console log report info [disk image] [vmlinux] [kernel image] KMSAN: uninit-value in hfs_revalidate_dentry
ci-upstream-kmsan-gce-386 2023/03/23 08:46 https://github.com/google/kmsan.git master 90ea0df61c98 f94b4a29 .config console log report info [disk image] [vmlinux] [kernel image] KMSAN: uninit-value in hfs_revalidate_dentry
ci-upstream-kmsan-gce-386 2023/03/23 06:59 https://github.com/google/kmsan.git master 90ea0df61c98 f94b4a29 .config console log report info [disk image] [vmlinux] [kernel image] KMSAN: uninit-value in hfs_revalidate_dentry
ci-upstream-kmsan-gce-386 2023/03/22 21:48 https://github.com/google/kmsan.git master 90ea0df61c98 d846e076 .config console log report info [disk image] [vmlinux] [kernel image] KMSAN: uninit-value in hfs_revalidate_dentry
ci-upstream-kmsan-gce-386 2023/03/22 20:50 https://github.com/google/kmsan.git master 90ea0df61c98 d846e076 .config console log report info [disk image] [vmlinux] [kernel image] KMSAN: uninit-value in hfs_revalidate_dentry
ci-upstream-kmsan-gce-386 2023/03/22 17:51 https://github.com/google/kmsan.git master 90ea0df61c98 d846e076 .config console log report info [disk image] [vmlinux] [kernel image] KMSAN: uninit-value in hfs_revalidate_dentry
ci-upstream-kmsan-gce-386 2023/03/22 07:23 https://github.com/google/kmsan.git master 90ea0df61c98 8b4eb097 .config console log report info [disk image] [vmlinux] [kernel image] KMSAN: uninit-value in hfs_revalidate_dentry
ci-upstream-kmsan-gce-386 2023/03/22 06:16 https://github.com/google/kmsan.git master 90ea0df61c98 8b4eb097 .config console log report info [disk image] [vmlinux] [kernel image] KMSAN: uninit-value in hfs_revalidate_dentry
ci-upstream-kmsan-gce-386 2023/03/21 16:27 https://github.com/google/kmsan.git master 90ea0df61c98 03fb9538 .config console log report info [disk image] [vmlinux] [kernel image] KMSAN: uninit-value in hfs_revalidate_dentry
ci-upstream-kmsan-gce-386 2023/03/19 02:13 https://github.com/google/kmsan.git master 34add094f9de 7939252e .config console log report info [disk image] [vmlinux] [kernel image] KMSAN: uninit-value in hfs_revalidate_dentry
ci-upstream-kmsan-gce-386 2023/03/19 00:09 https://github.com/google/kmsan.git master 34add094f9de 7939252e .config console log report info [disk image] [vmlinux] [kernel image] KMSAN: uninit-value in hfs_revalidate_dentry
ci-upstream-kmsan-gce-386 2023/03/19 00:03 https://github.com/google/kmsan.git master 34add094f9de 7939252e .config console log report info [disk image] [vmlinux] [kernel image] KMSAN: uninit-value in hfs_revalidate_dentry
ci-upstream-kmsan-gce-386 2023/03/18 23:00 https://github.com/google/kmsan.git master 34add094f9de 7939252e .config console log report info [disk image] [vmlinux] [kernel image] KMSAN: uninit-value in hfs_revalidate_dentry
ci-upstream-kmsan-gce-386 2023/03/18 20:41 https://github.com/google/kmsan.git master 34add094f9de 7939252e .config console log report info [disk image] [vmlinux] [kernel image] KMSAN: uninit-value in hfs_revalidate_dentry
ci-upstream-kmsan-gce-386 2023/03/18 17:37 https://github.com/google/kmsan.git master 34add094f9de 7939252e .config console log report info [disk image] [vmlinux] [kernel image] KMSAN: uninit-value in hfs_revalidate_dentry
ci-upstream-kmsan-gce-386 2023/03/18 10:04 https://github.com/google/kmsan.git master 34add094f9de 7939252e .config console log report info [disk image] [vmlinux] [kernel image] KMSAN: uninit-value in hfs_revalidate_dentry
ci-upstream-kmsan-gce-386 2022/11/25 08:17 https://github.com/google/kmsan.git master a472f15b3d1e 74a66371 .config console log report info [disk image] [vmlinux] [kernel image] KMSAN: uninit-value in hfs_revalidate_dentry
ci-upstream-kmsan-gce-386 2022/11/25 01:34 https://github.com/google/kmsan.git master e889f323ec44 62e26685 .config console log report info [disk image] [vmlinux] [kernel image] KMSAN: uninit-value in hfs_revalidate_dentry
ci-upstream-kmsan-gce-386 2023/03/29 11:32 https://github.com/google/kmsan.git master 90ea0df61c98 fc067f05 .config console log report info [disk image] [vmlinux] [kernel image] KMSAN: uninit-value in hfs_get_block
ci-upstream-kmsan-gce-386 2023/03/28 07:44 https://github.com/google/kmsan.git master 90ea0df61c98 47f3aaf1 .config console log report info [disk image] [vmlinux] [kernel image] KMSAN: uninit-value in hfs_get_block
ci-upstream-kmsan-gce-386 2023/03/27 20:51 https://github.com/google/kmsan.git master 90ea0df61c98 f8f96aa9 .config console log report info [disk image] [vmlinux] [kernel image] KMSAN: uninit-value in hfs_get_block
ci-upstream-kmsan-gce-386 2023/03/26 07:49 https://github.com/google/kmsan.git master 90ea0df61c98 fbf0499a .config console log report info [disk image] [vmlinux] [kernel image] KMSAN: uninit-value in hfs_get_block
ci-upstream-kmsan-gce-386 2023/03/25 19:29 https://github.com/google/kmsan.git master 90ea0df61c98 fbf0499a .config console log report info [disk image] [vmlinux] [kernel image] KMSAN: uninit-value in hfs_get_block
ci-upstream-kmsan-gce-386 2023/03/25 09:56 https://github.com/google/kmsan.git master 90ea0df61c98 fbf0499a .config console log report info [disk image] [vmlinux] [kernel image] KMSAN: uninit-value in hfs_get_block
ci-upstream-kmsan-gce-386 2023/03/24 06:24 https://github.com/google/kmsan.git master 90ea0df61c98 f94b4a29 .config console log report info [disk image] [vmlinux] [kernel image] KMSAN: uninit-value in hfs_get_block
ci-upstream-kmsan-gce-386 2023/03/22 09:29 https://github.com/google/kmsan.git master 90ea0df61c98 8b4eb097 .config console log report info [disk image] [vmlinux] [kernel image] KMSAN: uninit-value in hfs_get_block
ci-upstream-kmsan-gce-386 2023/03/18 19:00 https://github.com/google/kmsan.git master 34add094f9de 7939252e .config console log report info [disk image] [vmlinux] [kernel image] KMSAN: uninit-value in hfs_get_block
ci-upstream-kmsan-gce-386 2023/03/18 16:11 https://github.com/google/kmsan.git master 34add094f9de 7939252e .config console log report info [disk image] [vmlinux] [kernel image] KMSAN: uninit-value in hfs_get_block
ci-upstream-kmsan-gce-386 2023/03/18 13:23 https://github.com/google/kmsan.git master 34add094f9de 7939252e .config console log report info [disk image] [vmlinux] [kernel image] KMSAN: uninit-value in hfs_extend_file
ci-upstream-kmsan-gce-386 2023/03/18 05:49 https://github.com/google/kmsan.git master 34add094f9de 7939252e .config console log report info [disk image] [vmlinux] [kernel image] KMSAN: uninit-value in hfs_extend_file
* Struck through repros no longer work on HEAD.