android_kernel_sony_sdm845/fs/fat
Repository files (latest commit first)
Filename Latest commit message Latest commit date
OGAWA Hirofumi cadb31d19d fat: don't allow to mount if the FAT length == 0
commit b1b65750b8db67834482f758fc385bfa7560d228 upstream.

If FAT length == 0, the image doesn't have any data. And it can be the
cause of overlapping the root dir and FAT entries.

Also Windows treats it as invalid format.

Reported-by: syzbot+6f1624f937d9d6911e2d@syzkaller.appspotmail.com
Signed-off-by: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Cc: Marco Elver <elver@google.com>
Cc: Dmitry Vyukov <dvyukov@google.com>
Link: http://lkml.kernel.org/r/87r1wz8mrd.fsf@mail.parknet.co.jp
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-06-20 10:24:13 +02:00
..
cache.c fat: validate ->i_start before using 2018-09-15 09:42:57 +02:00
dir.c fat: work around race with userspace's read via blockdev while mounting 2019-10-07 18:53:18 +02:00
fat.h fat: validate ->i_start before using 2018-09-15 09:42:57 +02:00
fatent.c fat: work around race with userspace's read via blockdev while mounting 2019-10-07 18:53:18 +02:00
file.c fs/fat/file.c: issue flush after the writeback of FAT 2019-06-22 08:17:11 +02:00
inode.c fat: don't allow to mount if the FAT length == 0 2020-06-20 10:24:13 +02:00
Kconfig fat: add config option to set UTF-8 mount option by default 2016-03-22 15:36:02 -07:00
Makefile
misc.c fs: have submit_bh users pass in op and flags separately 2016-06-07 13:41:38 -06:00
namei_msdos.c Merge remote-tracking branch 'ovl/rename2' into for-linus 2016-10-10 23:02:51 -04:00
namei_vfat.c Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs 2016-10-10 20:16:43 -07:00
nfs.c VFS: normal filesystems (and lustre): d_inode() annotations 2015-04-15 15:06:57 -04:00