linux/fs/squashfs
Phillip Lougher 1cac63cc9b Squashfs: add sanity checks to fragment reading at mount time
Fsfuzzer generates corrupted filesystems which throw a warn_on in
kmalloc.  One of these is due to a corrupted superblock fragments field.
Fix this by checking that the number of bytes to be read (and allocated)
does not extend into the next filesystem structure.

Also add a couple of other sanity checks of the mount-time fragment table
structures.

Signed-off-by: Phillip Lougher <phillip@lougher.demon.co.uk>
2011-05-25 18:21:33 +01:00
..
block.c squashfs: fix use of uninitialised variable in zlib & xz decompressors 2011-01-26 10:50:05 +10:00
cache.c Squashfs: move table allocation into squashfs_read_table() 2011-05-25 18:21:31 +01:00
decompressor.c Squashfs: extend decompressor framework to handle compression options 2011-02-28 18:21:59 +00:00
decompressor.h Squashfs: extend decompressor framework to handle compression options 2011-02-28 18:21:59 +00:00
dir.c Squashfs: handle corruption of directory structure 2011-03-16 01:04:18 +00:00
export.c Squashfs: add sanity checks to lookup table reading at mount time 2011-05-25 18:21:32 +01:00
file.c
fragment.c Squashfs: add sanity checks to fragment reading at mount time 2011-05-25 18:21:33 +01:00
id.c Squashfs: add sanity checks to id reading at mount time 2011-05-25 18:21:32 +01:00
inode.c
Kconfig Squashfs: Update Kconfig help text to include xz compression 2011-02-28 18:35:28 +00:00
lzo_wrapper.c Squashfs: extend decompressor framework to handle compression options 2011-02-28 18:21:59 +00:00
Makefile Squashfs: Add XZ compression configuration option 2011-01-13 21:16:52 +00:00
namei.c Squashfs: handle corruption of directory structure 2011-03-16 01:04:18 +00:00
squashfs_fs_i.h Squashfs: move squashfs_i() definition from squashfs.h 2011-01-13 21:24:15 +00:00
squashfs_fs_sb.h
squashfs_fs.h Squashfs: extend decompressor framework to handle compression options 2011-02-28 18:21:59 +00:00
squashfs.h Squashfs: add sanity checks to fragment reading at mount time 2011-05-25 18:21:33 +01:00
super.c Squashfs: add sanity checks to fragment reading at mount time 2011-05-25 18:21:33 +01:00
symlink.c
xattr_id.c Squashfs: add sanity checks to xattr reading at mount time 2011-05-25 18:21:31 +01:00
xattr.c
xattr.h Squashfs: add sanity checks to id reading at mount time 2011-05-25 18:21:32 +01:00
xz_wrapper.c Squashfs: xz_wrapper doesn't need to include squashfs_fs_i.h anymore 2011-02-28 18:35:44 +00:00
zlib_wrapper.c Squashfs: Use vmalloc rather than kmalloc for zlib workspace 2011-03-22 23:01:26 +00:00