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

syzbot
2023-12-28T00:54:27Z

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

***

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

#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;