linux-stable/fs/hpfs
Mikulas Patocka c55035cb08 hpfs: better test for errors
commit 3ebacb0504 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 10:34:43 -07:00
..
alloc.c HPFS: Fix endianity. Make hpfs work on big-endian machines 2011-05-09 09:04:24 -07:00
anode.c HPFS: Fix endianity. Make hpfs work on big-endian machines 2011-05-09 09:04:24 -07:00
buffer.c HPFS: Remove remaining locks 2011-05-09 09:04:23 -07:00
dentry.c switch hpfs 2011-01-12 20:02:47 -05:00
dir.c HPFS: Fix endianity. Make hpfs work on big-endian machines 2011-05-09 09:04:24 -07:00
dnode.c HPFS: Fix endianity. Make hpfs work on big-endian machines 2011-05-09 09:04:24 -07:00
ea.c HPFS: Move declaration up, so that there are no out-of-scope pointers 2011-05-09 09:04:24 -07:00
file.c HPFS: Implement fsync for hpfs 2011-05-09 09:04:24 -07:00
hpfs_fn.h HPFS: Fix some unaligned accesses 2011-05-09 09:04:24 -07:00
hpfs.h HPFS: Fix some unaligned accesses 2011-05-09 09:04:24 -07:00
inode.c HPFS: Fix endianity. Make hpfs work on big-endian machines 2011-05-09 09:04:24 -07:00
Kconfig HPFS: Make HPFS compile on preempt and SMP 2011-05-09 09:04:23 -07:00
Makefile Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
map.c hpfs: better test for errors 2013-07-13 10:34:43 -07:00
name.c HPFS: Remove CR/LF conversion option 2011-05-09 09:04:23 -07:00
namei.c hpfs: remove unnecessary dentry_unhash on rmdir, dir rename 2011-05-28 01:02:54 -04:00
super.c hpfs: better test for errors 2013-07-13 10:34:43 -07:00