Re: [syzbot] [crypto?] [ntfs3?] KMSAN: uninit-value in sw842_compress

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



#syz test
diff --git a/fs/ntfs3/namei.c b/fs/ntfs3/namei.c
index f16d318c4372..39b12cf58a54 100644
--- a/fs/ntfs3/namei.c
+++ b/fs/ntfs3/namei.c
@@ -26,8 +26,12 @@ int fill_name_de(struct ntfs_sb_info *sbi, void *buf, const struct qstr *name,
 	struct ATTR_FILE_NAME *fname = (struct ATTR_FILE_NAME *)(e + 1);
 
 #ifndef CONFIG_NTFS3_64BIT_CLUSTER
-	e->ref.high = fname->home.high = 0;
+	fname->home.high = 0;
 #endif
+	e->ref.low = 0;
+	e->ref.high = 0;
+	e->ref.seq = 0;
+
 	if (uni) {
 #ifdef __BIG_ENDIAN
 		int ulen = uni->len;

[Index of Archives]     [Linux Driver Backports]     [DMA Engine]     [Linux GPIO]     [Linux SPI]     [Video for Linux]     [Linux USB Devel]     [Linux Coverity]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux