alistair23-linux/fs/squashfs
Phillip Lougher 3d4a1c80c4 Squashfs: fix i_blocks calculation with extended regular files
The le64_to_cpu() forces the calculation to be unsigned, with
the effect that it can underflow leading to an incorrect large
value.

This bug only triggers in rare(ish) circumstances, an empty file
encoded as an extended regular file or a completely sparse file.
Normally empty files are encoded as a regular file rather than as
an extended regular file (and the regular file i_blocks calculation
doesn't have this bug).  To save space regular file inodes are
optimised to encode the most commonly occurring files.  Less
common regular files are encoded using extended regular file inodes
which contain extra information.

Empty files with nlinks greater than 1, and or empty files
with extended attributes are encoded using extended regular file
inodes and they will hit this bug.

Signed-off-by: Phillip Lougher <phillip@squashfs.org.uk>
2012-01-03 04:00:43 +00:00
..
block.c
cache.c Squashfs: optimise squashfs_cache_get entry search 2011-12-30 01:24:13 +00:00
decompressor.c Squashfs: Make ZLIB compression support optional 2011-07-22 03:01:28 +01:00
decompressor.h Squashfs: Make ZLIB compression support optional 2011-07-22 03:01:28 +01:00
dir.c
export.c
file.c
fragment.c
id.c
inode.c Squashfs: fix i_blocks calculation with extended regular files 2012-01-03 04:00:43 +00:00
Kconfig Merge git://git.kernel.org/pub/scm/linux/kernel/git/pkl/squashfs-next 2011-11-04 16:48:37 -07:00
lzo_wrapper.c
Makefile Squashfs: Make ZLIB compression support optional 2011-07-22 03:01:28 +01:00
namei.c make d_splice_alias(ERR_PTR(err), dentry) = ERR_PTR(err) 2011-07-20 01:44:26 -04:00
squashfs.h Squashfs: Make ZLIB compression support optional 2011-07-22 03:01:28 +01:00
squashfs_fs.h Squashfs: Add an option to set dev block size to 4K 2011-11-02 17:25:50 +00:00
squashfs_fs_i.h
squashfs_fs_sb.h Squashfs: optimise squashfs_cache_get entry search 2011-12-30 01:24:13 +00:00
super.c Squashfs: fix mount time sanity check for corrupted superblock 2012-01-02 17:47:14 +00:00
symlink.c
xattr.c
xattr.h
xattr_id.c
xz_wrapper.c
zlib_wrapper.c