All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] hfs: Fix uninitialized value issue in hfs_iget
@ 2024-09-23 18:00 SurajSonawane2415
  2024-11-15 15:52 ` Suraj Sonawane
  0 siblings, 1 reply; 3+ messages in thread
From: SurajSonawane2415 @ 2024-09-23 18:00 UTC (permalink / raw)
  To: linux-fsdevel
  Cc: linux-kernel, SurajSonawane2415, syzbot+18dd03a3fcf0ffe27da0

Fix uninitialized value issue in hfs_iget by initializing the hfs_cat_rec 
structure in hfs_lookup.

Reported-by: syzbot+18dd03a3fcf0ffe27da0@syzkaller.appspotmail.com
Closes: https://syzkaller.appspot.com/bug?extid=18dd03a3fcf0ffe27da0
Tested-by: syzbot+18dd03a3fcf0ffe27da0@syzkaller.appspotmail.com
Signed-off-by: SurajSonawane2415 <surajsonawane0215@gmail.com>
---
 fs/hfs/dir.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fs/hfs/dir.c b/fs/hfs/dir.c
index b75c26045df4..3b880b3e4b4c 100644
--- a/fs/hfs/dir.c
+++ b/fs/hfs/dir.c
@@ -20,7 +20,7 @@
 static struct dentry *hfs_lookup(struct inode *dir, struct dentry *dentry,
 				 unsigned int flags)
 {
-	hfs_cat_rec rec;
+	hfs_cat_rec rec = {0};
 	struct hfs_find_data fd;
 	struct inode *inode = NULL;
 	int res;
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2024-11-15 17:03 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-09-23 18:00 [PATCH] hfs: Fix uninitialized value issue in hfs_iget SurajSonawane2415
2024-11-15 15:52 ` Suraj Sonawane
2024-11-15 17:03   ` Matthew Wilcox

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.