syzbot


KMSAN: uninit-value in hfs_iget

Status: upstream: reported C repro on 2024/09/23 07:44
Subsystems: hfs
[Documentation on labels]
Reported-by: syzbot+18dd03a3fcf0ffe27da0@syzkaller.appspotmail.com
First crash: 5d13h, last: 5d06h
Discussions (2)
Title Replies (including bot) Last reply
[PATCH] hfs: Fix uninitialized value issue in hfs_iget 1 (1) 2024/09/23 18:00
[syzbot] [hfs?] KMSAN: uninit-value in hfs_iget 1 (4) 2024/09/23 14:51
Last patch testing requests (2)
Created Duration User Patch Repo Result
2024/09/23 14:06 29m eadavis@qq.com patch upstream OK log
2024/09/23 11:44 2h20m surajsonawane0215@gmail.com patch upstream OK log

Sample crash report:
loop0: detected capacity change from 0 to 64
=====================================================
BUG: KMSAN: uninit-value in hfs_iget+0x1be/0x240 fs/hfs/inode.c:403
 hfs_iget+0x1be/0x240 fs/hfs/inode.c:403
 hfs_lookup+0x2f3/0x3d0 fs/hfs/dir.c:37
 lookup_one_qstr_excl+0x238/0x530 fs/namei.c:1633
 do_unlinkat+0x2c5/0xe10 fs/namei.c:4521
 __do_sys_unlinkat fs/namei.c:4576 [inline]
 __se_sys_unlinkat fs/namei.c:4569 [inline]
 __x64_sys_unlinkat+0x17a/0x220 fs/namei.c:4569
 x64_sys_call+0x2c7a/0x3ba0 arch/x86/include/generated/asm/syscalls_64.h:264
 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

Local variable rec created at:
 hfs_lookup+0x43/0x3d0 fs/hfs/dir.c:23
 lookup_one_qstr_excl+0x238/0x530 fs/namei.c:1633

CPU: 1 UID: 0 PID: 5180 Comm: syz-executor419 Not tainted 6.11.0-syzkaller-08829-gaf9c191ac2a0 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/06/2024
=====================================================

Crashes (5):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/09/23 05:49 upstream af9c191ac2a0 6f888b75 .config strace log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-kmsan-gce-root KMSAN: uninit-value in hfs_iget
2024/09/23 02:11 upstream af9c191ac2a0 6f888b75 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in hfs_iget
2024/09/23 02:11 upstream af9c191ac2a0 6f888b75 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in hfs_iget
2024/09/23 08:33 upstream de5cb0dcb74c 6f888b75 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386-root KMSAN: uninit-value in hfs_iget
2024/09/23 08:33 upstream de5cb0dcb74c 6f888b75 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386-root KMSAN: uninit-value in hfs_iget
* Struck through repros no longer work on HEAD.