syzbot


KMSAN: uninit-value in hfsplus_delete_cat

Status: upstream: reported on 2022/12/05 09:19
Reported-by: syzbot+fdedff847a0e5e84c39f@syzkaller.appspotmail.com
First crash: 63d, last: 1h49m

Sample crash report:
=====================================================
BUG: KMSAN: uninit-value in hfsplus_subfolders_dec fs/hfsplus/catalog.c:248 [inline]
BUG: KMSAN: uninit-value in hfsplus_delete_cat+0x1207/0x14d0 fs/hfsplus/catalog.c:419
 hfsplus_subfolders_dec fs/hfsplus/catalog.c:248 [inline]
 hfsplus_delete_cat+0x1207/0x14d0 fs/hfsplus/catalog.c:419
 hfsplus_rmdir+0x141/0x3d0 fs/hfsplus/dir.c:425
 vfs_rmdir+0x5a6/0x780 fs/namei.c:4121
 do_rmdir+0x686/0x960 fs/namei.c:4182
 __do_sys_rmdir fs/namei.c:4201 [inline]
 __se_sys_rmdir fs/namei.c:4199 [inline]
 __ia32_sys_rmdir+0x73/0xa0 fs/namei.c:4199
 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+0x33/0x70 arch/x86/entry/common.c:203
 do_SYSENTER_32+0x1b/0x20 arch/x86/entry/common.c:246
 entry_SYSENTER_compat_after_hwframe+0x70/0x82

Uninit was stored to memory at:
 hfsplus_subfolders_inc fs/hfsplus/catalog.c:232 [inline]
 hfsplus_create_cat+0x19e3/0x19f0 fs/hfsplus/catalog.c:314
 hfsplus_mknod+0x1fd/0x560 fs/hfsplus/dir.c:494
 hfsplus_mkdir+0x54/0x60 fs/hfsplus/dir.c:529
 vfs_mkdir+0x62a/0x870 fs/namei.c:4036
 do_mkdirat+0x475/0x7c0 fs/namei.c:4061
 __do_sys_mkdirat fs/namei.c:4076 [inline]
 __se_sys_mkdirat fs/namei.c:4074 [inline]
 __ia32_sys_mkdirat+0xc4/0x120 fs/namei.c:4074
 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+0x33/0x70 arch/x86/entry/common.c:203
 do_SYSENTER_32+0x1b/0x20 arch/x86/entry/common.c:246
 entry_SYSENTER_compat_after_hwframe+0x70/0x82

Uninit was created at:
 __alloc_pages+0x9f1/0xe80 mm/page_alloc.c:5572
 alloc_pages+0xaae/0xd80 mm/mempolicy.c:2286
 alloc_slab_page mm/slub.c:1851 [inline]
 allocate_slab+0x235/0x1200 mm/slub.c:1998
 new_slab mm/slub.c:2051 [inline]
 ___slab_alloc+0x10c3/0x2d60 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+0x713/0xb60 mm/slub.c:3483
 alloc_inode_sb include/linux/fs.h:3119 [inline]
 hfsplus_alloc_inode+0x56/0xc0 fs/hfsplus/super.c:627
 alloc_inode+0x83/0x440 fs/inode.c:259
 iget_locked+0x2a1/0xe20 fs/inode.c:1286
 hfsplus_iget+0x5f/0xb60 fs/hfsplus/super.c:64
 hfsplus_btree_open+0x13b/0x1cf0 fs/hfsplus/btree.c:150
 hfsplus_fill_super+0x12b0/0x2a80 fs/hfsplus/super.c:473
 mount_bdev+0x508/0x840 fs/super.c:1359
 hfsplus_mount+0x49/0x60 fs/hfsplus/super.c:641
 legacy_get_tree+0x10c/0x280 fs/fs_context.c:610
 vfs_get_tree+0xa1/0x500 fs/super.c:1489
 do_new_mount+0x694/0x1580 fs/namespace.c:3145
 path_mount+0x71a/0x1eb0 fs/namespace.c:3475
 do_mount fs/namespace.c:3488 [inline]
 __do_sys_mount fs/namespace.c:3697 [inline]
 __se_sys_mount+0x734/0x840 fs/namespace.c:3674
 __ia32_sys_mount+0xdf/0x140 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+0x33/0x70 arch/x86/entry/common.c:203
 do_SYSENTER_32+0x1b/0x20 arch/x86/entry/common.c:246
 entry_SYSENTER_compat_after_hwframe+0x70/0x82

CPU: 1 PID: 9462 Comm: syz-executor.4 Not tainted 6.2.0-rc5-syzkaller-80200-g41c66f470616 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023
=====================================================

Crashes (250):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets Title
ci-upstream-kmsan-gce-386 2023/01/25 04:26 https://github.com/google/kmsan.git master 41c66f470616 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] KMSAN: uninit-value in hfsplus_delete_cat
ci-upstream-kmsan-gce-386 2023/01/22 17:39 https://github.com/google/kmsan.git master e919e2b1bc1c 559a440a .config console log report info [disk image] [vmlinux] [kernel image] KMSAN: uninit-value in hfsplus_delete_cat
ci-upstream-kmsan-gce-386 2022/12/03 22:22 https://github.com/google/kmsan.git master 49a9a20768f5 e080de16 .config console log report info [disk image] [vmlinux] [kernel image] KMSAN: uninit-value in hfsplus_delete_cat
ci-upstream-kmsan-gce-386 2023/02/05 09:09 https://github.com/google/kmsan.git master eda666ff2276 be607b78 .config console log report info [disk image] [vmlinux] [kernel image] KMSAN: uninit-value in hfsplus_lookup
ci-upstream-kmsan-gce-386 2023/02/05 06:01 https://github.com/google/kmsan.git master eda666ff2276 be607b78 .config console log report info [disk image] [vmlinux] [kernel image] KMSAN: uninit-value in hfsplus_lookup
ci-upstream-kmsan-gce-386 2023/02/04 21:04 https://github.com/google/kmsan.git master eda666ff2276 be607b78 .config console log report info [disk image] [vmlinux] [kernel image] KMSAN: uninit-value in hfsplus_lookup
ci-upstream-kmsan-gce-386 2023/02/04 19:17 https://github.com/google/kmsan.git master eda666ff2276 be607b78 .config console log report info [disk image] [vmlinux] [kernel image] KMSAN: uninit-value in hfsplus_lookup
ci-upstream-kmsan-gce-386 2023/02/04 10:33 https://github.com/google/kmsan.git master eda666ff2276 1b2f701a .config console log report info [disk image] [vmlinux] [kernel image] KMSAN: uninit-value in hfsplus_lookup
ci-upstream-kmsan-gce-386 2023/02/04 02:03 https://github.com/google/kmsan.git master eda666ff2276 1b2f701a .config console log report info [disk image] [vmlinux] [kernel image] KMSAN: uninit-value in hfsplus_lookup
ci-upstream-kmsan-gce-386 2023/02/04 00:53 https://github.com/google/kmsan.git master eda666ff2276 1b2f701a .config console log report info [disk image] [vmlinux] [kernel image] KMSAN: uninit-value in hfsplus_lookup
ci-upstream-kmsan-gce-386 2023/02/03 23:17 https://github.com/google/kmsan.git master eda666ff2276 1b2f701a .config console log report info [disk image] [vmlinux] [kernel image] KMSAN: uninit-value in hfsplus_lookup
ci-upstream-kmsan-gce-386 2023/02/03 09:36 https://github.com/google/kmsan.git master eda666ff2276 16d19e30 .config console log report info [disk image] [vmlinux] [kernel image] KMSAN: uninit-value in hfsplus_lookup
ci-upstream-kmsan-gce-386 2023/02/03 03:43 https://github.com/google/kmsan.git master eda666ff2276 16d19e30 .config console log report info [disk image] [vmlinux] [kernel image] KMSAN: uninit-value in hfsplus_lookup
ci-upstream-kmsan-gce-386 2023/02/03 01:22 https://github.com/google/kmsan.git master eda666ff2276 16d19e30 .config console log report info [disk image] [vmlinux] [kernel image] KMSAN: uninit-value in hfsplus_lookup
ci-upstream-kmsan-gce-386 2023/02/02 23:50 https://github.com/google/kmsan.git master eda666ff2276 16d19e30 .config console log report info [disk image] [vmlinux] [kernel image] KMSAN: uninit-value in hfsplus_lookup
ci-upstream-kmsan-gce-386 2023/02/02 12:06 https://github.com/google/kmsan.git master eda666ff2276 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] KMSAN: uninit-value in hfsplus_lookup
ci-upstream-kmsan-gce-386 2023/02/02 09:58 https://github.com/google/kmsan.git master eda666ff2276 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] KMSAN: uninit-value in hfsplus_lookup
ci-upstream-kmsan-gce-386 2023/02/02 03:52 https://github.com/google/kmsan.git master eda666ff2276 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] KMSAN: uninit-value in hfsplus_lookup
ci-upstream-kmsan-gce-386 2023/02/01 21:03 https://github.com/google/kmsan.git master eda666ff2276 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] KMSAN: uninit-value in hfsplus_lookup
ci-upstream-kmsan-gce-386 2023/01/29 17:12 https://github.com/google/kmsan.git master 41c66f470616 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] KMSAN: uninit-value in hfsplus_lookup
ci-upstream-kmsan-gce-386 2023/01/28 21:52 https://github.com/google/kmsan.git master 41c66f470616 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] KMSAN: uninit-value in hfsplus_lookup
ci-upstream-kmsan-gce-386 2023/01/28 20:38 https://github.com/google/kmsan.git master 41c66f470616 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] KMSAN: uninit-value in hfsplus_lookup
ci-upstream-kmsan-gce-386 2023/01/28 02:45 https://github.com/google/kmsan.git master 41c66f470616 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] KMSAN: uninit-value in hfsplus_lookup
ci-upstream-kmsan-gce-386 2023/01/27 22:06 https://github.com/google/kmsan.git master 41c66f470616 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] KMSAN: uninit-value in hfsplus_lookup
ci-upstream-kmsan-gce-386 2023/01/27 21:50 https://github.com/google/kmsan.git master 41c66f470616 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] KMSAN: uninit-value in hfsplus_lookup
ci-upstream-kmsan-gce-386 2023/01/27 17:45 https://github.com/google/kmsan.git master 41c66f470616 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] KMSAN: uninit-value in hfsplus_lookup
ci-upstream-kmsan-gce-386 2023/01/27 12:57 https://github.com/google/kmsan.git master 41c66f470616 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] KMSAN: uninit-value in hfsplus_lookup
ci-upstream-kmsan-gce-386 2023/01/27 11:51 https://github.com/google/kmsan.git master 41c66f470616 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] KMSAN: uninit-value in hfsplus_lookup
ci-upstream-kmsan-gce-386 2023/01/27 10:17 https://github.com/google/kmsan.git master 41c66f470616 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] KMSAN: uninit-value in hfsplus_lookup
ci-upstream-kmsan-gce-386 2023/01/27 07:39 https://github.com/google/kmsan.git master 41c66f470616 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] KMSAN: uninit-value in hfsplus_lookup
ci-upstream-kmsan-gce-386 2023/01/27 06:04 https://github.com/google/kmsan.git master 41c66f470616 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] KMSAN: uninit-value in hfsplus_lookup
ci-upstream-kmsan-gce-386 2023/01/27 05:00 https://github.com/google/kmsan.git master 41c66f470616 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] KMSAN: uninit-value in hfsplus_lookup
ci-upstream-kmsan-gce-386 2023/01/27 04:31 https://github.com/google/kmsan.git master 41c66f470616 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] KMSAN: uninit-value in hfsplus_lookup
ci-upstream-kmsan-gce-386 2023/01/25 23:04 https://github.com/google/kmsan.git master 41c66f470616 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] KMSAN: uninit-value in hfsplus_lookup
ci-upstream-kmsan-gce-386 2023/01/25 21:14 https://github.com/google/kmsan.git master 41c66f470616 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] KMSAN: uninit-value in hfsplus_rename_cat
ci-upstream-kmsan-gce-386 2023/01/25 19:45 https://github.com/google/kmsan.git master 41c66f470616 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] KMSAN: uninit-value in hfsplus_lookup
ci-upstream-kmsan-gce-386 2023/01/25 12:53 https://github.com/google/kmsan.git master 41c66f470616 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] KMSAN: uninit-value in hfsplus_lookup
ci-upstream-kmsan-gce-386 2023/01/24 20:50 https://github.com/google/kmsan.git master 41c66f470616 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] KMSAN: uninit-value in hfsplus_lookup
ci-upstream-kmsan-gce-386 2023/01/24 16:51 https://github.com/google/kmsan.git master 41c66f470616 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] KMSAN: uninit-value in hfsplus_lookup
ci-upstream-kmsan-gce-386 2023/01/23 22:51 https://github.com/google/kmsan.git master 41c66f470616 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] KMSAN: uninit-value in hfsplus_lookup
ci-upstream-kmsan-gce-386 2023/01/23 01:16 https://github.com/google/kmsan.git master e919e2b1bc1c 559a440a .config console log report info [disk image] [vmlinux] [kernel image] KMSAN: uninit-value in hfsplus_lookup
ci-upstream-kmsan-gce-386 2023/01/22 21:01 https://github.com/google/kmsan.git master e919e2b1bc1c 559a440a .config console log report info [disk image] [vmlinux] [kernel image] KMSAN: uninit-value in hfsplus_lookup
ci-upstream-kmsan-gce-386 2023/01/22 14:13 https://github.com/google/kmsan.git master e919e2b1bc1c 559a440a .config console log report info [disk image] [vmlinux] [kernel image] KMSAN: uninit-value in hfsplus_lookup
ci-upstream-kmsan-gce-386 2023/01/22 05:44 https://github.com/google/kmsan.git master e919e2b1bc1c 559a440a .config console log report info [disk image] [vmlinux] [kernel image] KMSAN: uninit-value in hfsplus_lookup
ci-upstream-kmsan-gce-386 2023/01/22 04:48 https://github.com/google/kmsan.git master e919e2b1bc1c 559a440a .config console log report info [disk image] [vmlinux] [kernel image] KMSAN: uninit-value in hfsplus_lookup
ci-upstream-kmsan-gce-386 2023/01/22 03:14 https://github.com/google/kmsan.git master e919e2b1bc1c 559a440a .config console log report info [disk image] [vmlinux] [kernel image] KMSAN: uninit-value in hfsplus_lookup
ci-upstream-kmsan-gce-386 2023/01/21 16:45 https://github.com/google/kmsan.git master e919e2b1bc1c 559a440a .config console log report info [disk image] [vmlinux] [kernel image] KMSAN: uninit-value in hfsplus_lookup
* Struck through repros no longer work on HEAD.