linux-brain/fs/fat
OGAWA Hirofumi a867bbb23a fat: fix uninit-memory access for partial initialized inode
commit bc87302a093f0eab45cd4e250c2021299f712ec6 upstream.

When get an error in the middle of reading an inode, some fields in the
inode might be still not initialized.  And then the evict_inode path may
access those fields via iput().

To fix, this makes sure that inode fields are initialized.

Reported-by: syzbot+9d82b8de2992579da5d0@syzkaller.appspotmail.com
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
Cc: <stable@vger.kernel.org>
Link: http://lkml.kernel.org/r/871rqnreqx.fsf@mail.parknet.co.jp
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-03-11 14:15:01 +01:00
..
cache.c fat: validate ->i_start before using 2018-08-22 10:52:50 -07:00
dir.c fat: work around race with userspace's read via blockdev while mounting 2019-10-07 18:57:14 +02:00
fat.h fat: propagate 64-bit inode timestamps 2018-08-22 10:52:50 -07:00
fatent.c fat: work around race with userspace's read via blockdev while mounting 2019-10-07 18:57:14 +02:00
file.c fs/fat/file.c: issue flush after the writeback of FAT 2019-06-15 11:53:59 +02:00
inode.c fat: fix uninit-memory access for partial initialized inode 2020-03-11 14:15:01 +01:00
Kconfig fat: add config option to set UTF-8 mount option by default 2016-03-22 15:36:02 -07:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
misc.c fat: propagate 64-bit inode timestamps 2018-08-22 10:52:50 -07:00
namei_msdos.c fat: propagate 64-bit inode timestamps 2018-08-22 10:52:50 -07:00
namei_vfat.c fat: propagate 64-bit inode timestamps 2018-08-22 10:52:50 -07:00
nfs.c VFS: normal filesystems (and lustre): d_inode() annotations 2015-04-15 15:06:57 -04:00