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

From: Eric Biggers
Date: Tue Nov 08 2022 - 12:41:41 EST


On Tue, Nov 08, 2022 at 10:08:36AM +0100, 'Alexander Potapenko' via syzkaller-bugs wrote:
> > >
> > > 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;

Yes, it looks like they all need this. Except maybe ocfs2? It's hard to tell.

- Eric