android_kernel_samsung_msm8976/fs/fat
OGAWA Hirofumi f6546b6eac fat: fix using uninitialized fields of fat_inode/fsinfo_inode
commit c0d0e351285161a515396b7b1ee53ec9ffd97e3c upstream.

Recently fallocate patch was merged and it uses
MSDOS_I(inode)->mmu_private at fat_evict_inode().  However,
fat_inode/fsinfo_inode that was introduced in past didn't initialize
MSDOS_I(inode) properly.

With those combinations, it became the cause of accessing random entry
in FAT area.

Link: http://lkml.kernel.org/r/87pohrj4i8.fsf@mail.parknet.co.jp
Signed-off-by: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
Reported-by: Moreno Bartalucci <moreno.bartalucci@tecnorama.it>
Tested-by: Moreno Bartalucci <moreno.bartalucci@tecnorama.it>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Willy Tarreau <w@1wt.eu>
2019-07-27 21:43:58 +02:00
..
Kconfig Import latest Samsung release 2017-04-18 03:43:52 +02:00
Makefile Import latest Samsung release 2017-04-18 03:43:52 +02:00
cache.c
dir.c Import latest Samsung release 2017-04-18 03:43:52 +02:00
fat.h Import latest Samsung release 2017-04-18 03:43:52 +02:00
fatent.c Import latest Samsung release 2017-04-18 03:43:52 +02:00
file.c Import latest Samsung release 2017-04-18 03:43:52 +02:00
inode.c fat: fix using uninitialized fields of fat_inode/fsinfo_inode 2019-07-27 21:43:58 +02:00
misc.c Import latest Samsung release 2017-04-18 03:43:52 +02:00
namei_msdos.c
namei_vfat.c Import latest Samsung release 2017-04-18 03:43:52 +02:00
nfs.c
xattr.c Import latest Samsung release 2017-04-18 03:43:52 +02:00