* + fs-hfsplus-initialize-fsdata-in-hfsplus_file_truncate.patch added to mm-nonmm-unstable branch
@ 2023-01-24 21:04 Andrew Morton
0 siblings, 0 replies; only message in thread
From: Andrew Morton @ 2023-01-24 21:04 UTC (permalink / raw)
To: mm-commits, tytso, jaegeuk, ebiggers, chao, adilger.kernel,
glider, akpm
The patch titled
Subject: fs: hfsplus: initialize fsdata in hfsplus_file_truncate()
has been added to the -mm mm-nonmm-unstable branch. Its filename is
fs-hfsplus-initialize-fsdata-in-hfsplus_file_truncate.patch
This patch will shortly appear at
https://git.kernel.org/pub/scm/linux/kernel/git/akpm/25-new.git/tree/patches/fs-hfsplus-initialize-fsdata-in-hfsplus_file_truncate.patch
This patch will later appear in the mm-nonmm-unstable branch at
git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
Before you just go and hit "reply", please:
a) Consider who else should be cc'ed
b) Prefer to cc a suitable mailing list as well
c) Ideally: find the original patch on the mailing list and do a
reply-to-all to that, adding suitable additional cc's
*** Remember to use Documentation/process/submit-checklist.rst when testing your code ***
The -mm tree is included into linux-next via the mm-everything
branch at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
and is updated there every 2-3 working days
------------------------------------------------------
From: Alexander Potapenko <glider@google.com>
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.
Link: https://lkml.kernel.org/r/20221121112134.407362-5-glider@google.com
Signed-off-by: Alexander Potapenko <glider@google.com>
Suggested-by: Eric Biggers <ebiggers@kernel.org>
Cc: Andreas Dilger <adilger.kernel@dilger.ca>
Cc: Chao Yu <chao@kernel.org>
Cc: Jaegeuk Kim <jaegeuk@kernel.org>
Cc: Theodore Ts'o <tytso@mit.edu>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---
fs/hfsplus/extents.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- a/fs/hfsplus/extents.c~fs-hfsplus-initialize-fsdata-in-hfsplus_file_truncate
+++ a/fs/hfsplus/extents.c
@@ -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 glider@google.com are
revert-x86-kmsan-sync-metadata-pages-on-page-fault.patch
kmsan-silence-wmissing-prototypes-warnings.patch
fs-hfs-initialize-fsdata-in-hfs_file_truncate.patch
fs-hfsplus-initialize-fsdata-in-hfsplus_file_truncate.patch
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-01-24 21:04 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-01-24 21:04 + fs-hfsplus-initialize-fsdata-in-hfsplus_file_truncate.patch added to mm-nonmm-unstable branch Andrew Morton
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.