syzbot


KMSAN: uninit-value in hfs_brec_find

Status: upstream: reported on 2022/12/08 08:26
Reported-by: syzbot+5ce571007a695806e949@syzkaller.appspotmail.com
First crash: 59d, last: 15d

Sample crash report:
loop5: detected capacity change from 0 to 64
hfs: keylen 9474 too large
=====================================================
BUG: KMSAN: uninit-value in hfs_brec_find+0x671/0x9b0 fs/hfs/bfind.c:141
 hfs_brec_find+0x671/0x9b0 fs/hfs/bfind.c:141
 hfs_brec_read+0x3b/0x190 fs/hfs/bfind.c:165
 hfs_cat_find_brec+0xfb/0x450 fs/hfs/catalog.c:194
 hfs_fill_super+0x1f49/0x2400 fs/hfs/super.c:419
 mount_bdev+0x508/0x840 fs/super.c:1359
 hfs_mount+0x49/0x60 fs/hfs/super.c:456
 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

Local variable fd created at:
 hfs_fill_super+0x5e/0x2400 fs/hfs/super.c:381
 mount_bdev+0x508/0x840 fs/super.c:1359

CPU: 0 PID: 8652 Comm: syz-executor.5 Not tainted 6.2.0-rc3-syzkaller-79343-ge919e2b1bc1c #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023
=====================================================

Crashes (3):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets Title
ci-upstream-kmsan-gce-386 2023/01/20 16:20 https://github.com/google/kmsan.git master e919e2b1bc1c 559a440a .config console log report info [disk image] [vmlinux] [kernel image] KMSAN: uninit-value in hfs_brec_find
ci-upstream-kmsan-gce-386 2022/12/25 00:33 https://github.com/google/kmsan.git master 5c6259d6d19f 9da18ae8 .config console log report info [disk image] [vmlinux] [kernel image] KMSAN: uninit-value in hfs_brec_find
ci-upstream-kmsan-gce-386 2022/12/07 22:53 https://github.com/google/kmsan.git master 30d2727189c5 d88f3abb .config console log report info [disk image] [vmlinux] [kernel image] KMSAN: uninit-value in hfs_brec_find
* Struck through repros no longer work on HEAD.