android_kernel_samsung_a7y1.../fs/fat
OGAWA Hirofumi eafbafad65 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-04-07 14:10:21 +02:00
..
cache.c
dir.c fat: work around race with userspace's read via blockdev while mounting 2020-04-07 07:53:48 +02:00
fat.h
fatent.c fat: work around race with userspace's read via blockdev while mounting 2020-04-07 07:53:48 +02:00
file.c
inode.c fat: fix uninit-memory access for partial initialized inode 2020-04-07 14:10:21 +02:00
Kconfig
Makefile
misc.c
namei_msdos.c
namei_vfat.c
nfs.c
xattr.c