android_kernel_samsung_msm8976/fs/hpfs
Mikulas Patocka 70621db094 hpfs: better test for errors
commit 3ebacb05044f82c5f0bb456a894eb9dc57d0ed90 upstream.

The test if bitmap access is out of bound could errorneously pass if the
device size is divisible by 16384 sectors and we are asking for one bitmap
after the end.

Check for invalid size in the superblock. Invalid size could cause integer
overflows in the rest of the code.

Signed-off-by: Mikulas Patocka <mpatocka@artax.karlin.mff.cuni.cz>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2013-07-13 11:42:26 -07:00
..
alloc.c hpfs: bitmaps are little-endian 2012-05-29 23:28:37 -04:00
anode.c hpfs: convert to use leXX_add_cpu() 2012-10-06 03:05:08 +09:00
buffer.c HPFS: remove PRINTK() macro 2012-05-31 17:49:27 -07:00
dentry.c switch hpfs 2011-01-12 20:02:47 -05:00
dir.c hpfs: deadlock and race in directory lseek() 2013-05-31 15:17:43 -04:00
dnode.c hpfs: convert to use leXX_add_cpu() 2012-10-06 03:05:08 +09:00
ea.c hpfs: get rid of bitfields in struct fnode 2012-05-29 23:28:37 -04:00
file.c hpfs: fix warnings when the filesystem fills up 2013-06-08 17:39:40 -07:00
hpfs.h hpfs: assorted endianness annotations 2012-05-29 23:28:39 -04:00
hpfs_fn.h hpfs: drop vmtruncate 2012-12-20 18:40:00 -05:00
inode.c Merge branch 'master' into for-next 2013-01-29 10:48:30 +01:00
Kconfig HPFS: Make HPFS compile on preempt and SMP 2011-05-09 09:04:23 -07:00
Makefile
map.c hpfs: better test for errors 2013-07-13 11:42:26 -07:00
name.c HPFS: Remove CR/LF conversion option 2011-05-09 09:04:23 -07:00
namei.c userns: Convert hpfs to use kuid and kgid where appropriate 2012-09-21 03:13:32 -07:00
super.c hpfs: better test for errors 2013-07-13 11:42:26 -07:00