OpenCloudOS-Kernel/fs/squashfs
Phillip Lougher 37986f63c8 Squashfs: add sanity checks to id reading at mount time
Fsfuzzer generates corrupted filesystems which throw a warn_on in
kmalloc.  One of these is due to a corrupted superblock no_ids 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 id table
structures.

Signed-off-by: Phillip Lougher <phillip@lougher.demon.co.uk>
2011-05-25 18:21:32 +01:00
..
Kconfig Squashfs: Update Kconfig help text to include xz compression 2011-02-28 18:35:28 +00:00
Makefile Squashfs: Add XZ compression configuration option 2011-01-13 21:16:52 +00: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: move table allocation into squashfs_read_table() 2011-05-25 18:21:31 +01:00
file.c Squashfs: factor out remaining zlib dependencies into separate wrapper file 2010-01-20 21:47:47 +00:00
fragment.c Squashfs: move table allocation into squashfs_read_table() 2011-05-25 18:21:31 +01:00
id.c Squashfs: add sanity checks to id reading at mount time 2011-05-25 18:21:32 +01:00
inode.c squashfs: add xattr support configure option 2010-05-17 19:54:07 +01:00
lzo_wrapper.c Squashfs: extend decompressor framework to handle compression options 2011-02-28 18:21:59 +00:00
namei.c Squashfs: handle corruption of directory structure 2011-03-16 01:04:18 +00:00
squashfs.h Squashfs: add sanity checks to id reading at mount time 2011-05-25 18:21:32 +01:00
squashfs_fs.h Squashfs: extend decompressor framework to handle compression options 2011-02-28 18:21:59 +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: add xattr id support 2010-05-17 19:54:05 +01:00
super.c Squashfs: add sanity checks to id reading at mount time 2011-05-25 18:21:32 +01:00
symlink.c squashfs: add xattr support configure option 2010-05-17 19:54:07 +01:00
xattr.c Squashfs: fix use of __le64 annotated variable 2010-10-28 17:44:11 +01:00
xattr.h Squashfs: add sanity checks to id reading at mount time 2011-05-25 18:21:32 +01:00
xattr_id.c Squashfs: add sanity checks to xattr reading at mount time 2011-05-25 18:21:31 +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