Re: [syzbot] [hfs?] KMSAN: uninit-value in hfsplus_cat_case_cmp_key

From: syzbot
Date: Wed Dec 27 2023 - 19:54:37 EST


For archival purposes, forwarding an incoming command email to
linux-kernel@xxxxxxxxxxxxxxx.

***

Subject: [hfs?] KMSAN: uninit-value in hfsplus_cat_case_cmp_key
Author: lizhi.xu@xxxxxxxxxxxxx

#syz test https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git fbafc3e621c3

diff --git a/fs/hfsplus/super.c b/fs/hfsplus/super.c
index 1986b4f18a90..33eb7e5a08b3 100644
--- a/fs/hfsplus/super.c
+++ b/fs/hfsplus/super.c
@@ -57,7 +57,7 @@ static int hfsplus_system_read_inode(struct inode *inode)

struct inode *hfsplus_iget(struct super_block *sb, unsigned long ino)
{
- struct hfs_find_data fd;
+ struct hfs_find_data fd = {};
struct inode *inode;
int err;