Re: [syzbot] KMSAN: uninit-value in pagecache_write

From: Alexander Potapenko
Date: Tue Nov 08 2022 - 04:09:25 EST


> >
> > Anyway, this patch doesn't hurt, I suppose. Can please you send it out as a
> > formal patch to linux-ext4? It would be easy for people to miss this patch
> > buried in this thread. Also, can you please send a patch to linux-f2fs-devel
> > for the same code in fs/f2fs/verity.c?
>
> Will do!

Shall I also initialize fsdata here:

$ git grep 'void \*fsdata;'
fs/affs/file.c: void *fsdata;
fs/ext4/verity.c: void *fsdata;
fs/f2fs/verity.c: void *fsdata;
fs/hfs/extent.c: void *fsdata;
fs/hfsplus/extents.c: void *fsdata;
fs/ocfs2/mmap.c: void *fsdata;

?