Re: [syzbot] [fs?] KMSAN: uninit-value in full_proxy_unlocked_ioctl

From: Edward Adam Davis
Date: Sun Feb 02 2025 - 20:59:31 EST


#syz test

diff --git a/fs/debugfs/file.c b/fs/debugfs/file.c
index e33cc77699cd..5fbefce2b372 100644
--- a/fs/debugfs/file.c
+++ b/fs/debugfs/file.c
@@ -102,6 +102,7 @@ static int __debugfs_file_get(struct dentry *dentry, enum dbgfs_get_mode mode)
if (!fsd)
return -ENOMEM;

+ fsd->methods = 0;
if (mode == DBGFS_GET_SHORT) {
const struct debugfs_short_fops *ops;
ops = fsd->short_fops = DEBUGFS_I(inode)->short_fops;