Skip to contentSkip to conversation

fs-hfsplus-initialize-fsdata-in-hfsplus_file_truncate.patch removed from -mm tree

merged mm-nonmm-stable Andrew Morton 1 participant 1 message Feb 3, 2023

lore
Share & tools
lore

Andrew Morton

author tree notice Applied
#0 lore raw

The quilt patch titled
Subject: fs: hfsplus: initialize fsdata in hfsplus_file_truncate()
has been removed from the -mm tree. Its filename was
fs-hfsplus-initialize-fsdata-in-hfsplus_file_truncate.patch

This patch was dropped because it was merged into the mm-nonmm-stable branch of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm

------------------------------------------------------
From: Alexander Potapenko <[email protected]>
Subject: fs: hfsplus: initialize fsdata in hfsplus_file_truncate()
Date: Mon, 21 Nov 2022 12:21:34 +0100

When aops->write_begin() does not initialize fsdata, KMSAN may report an error passing the latter to aops->write_end().

Fix this by unconditionally initializing fsdata.

---

fs/hfsplus/extents.c renamed from fs/hfsplus/extents.c~fs-hfsplus-initialize-fsdata-in-hfsplus_file_truncate +1 -1
@@ -554,7 +554,7 @@ void hfsplus_file_truncate(struct inode
 	if (inode->i_size > hip->phys_size) {
 		struct address_space *mapping = inode->i_mapping;
 		struct page *page;
-		void *fsdata;
+		void *fsdata = NULL;
 		loff_t size = inode->i_size;
 
 		res = hfsplus_write_begin(NULL, mapping, size, 0,

_

Patches currently in -mm which might be from [email protected] are