08 Oct, 2016
1 commit
-
These inode operations are no longer used; remove them.
Signed-off-by: Andreas Gruenbacher
Signed-off-by: Al Viro
06 Sep, 2013
2 commits
-
The dir_count and size fields when read from disk are sanity
checked for correctness. However, the sanity checks only check the
values are not greater than expected. As dir_count and size were
incorrectly defined as signed ints, this can lead to corrupted values
appearing as negative which are not trapped.Signed-off-by: Phillip Lougher
-
Patch "Squashfs: sanity check information from disk" from
Dan Carpenter adds a missing check for corruption in the
"size" field while reading the directory index from disk.It, however, sets err to -EINVAL, this value is not used later, and
so setting it is completely redundant. So remove it.Errors in reading the index are deliberately non-fatal. If we
get an error in reading the index we just return the part of the
index we have managed to read - the index isn't essential,
just quicker.Signed-off-by: Phillip Lougher
29 Aug, 2013
1 commit
-
We read the size of the name from the disk, but a larger name than
expected would cause memory corruption.Signed-off-by: Dan Carpenter
Signed-off-by: Phillip Lougher
14 Jul, 2012
1 commit
-
Just the flags; only NFS cares even about that, but there are
legitimate uses for such argument. And getting rid of that
completely would require splitting ->lookup() into a couple
of methods (at least), so let's leave that alone for now...Signed-off-by: Al Viro
10 Mar, 2012
2 commits
-
Signed-off-by: Phillip Lougher
-
Its better to use defined name instead of constant
Signed-off-by: Ajeet Yadav
Signed-off-by: Phillip Lougher
20 Jul, 2011
2 commits
-
... and simplify the living hell out of callers
Signed-off-by: Al Viro
-
d_splice_alias(NULL, dentry) is equivalent to d_add(dentry, NULL), NULL
so no need for that if (inode) ... in there (or ERR_PTR(0), for that
matter)Signed-off-by: Al Viro
26 May, 2011
1 commit
-
My existing email address may stop working in a month or two, so update
email to one that will continue working.Signed-off-by: Phillip Lougher
16 Mar, 2011
1 commit
-
Handle the rare case where a directory metadata block is uncompressed and
corrupted, leading to a kernel oops in directory scanning (memcpy).
Normally corruption is detected at the decompression stage and dealt with
then, however, this will not happen if:- metadata isn't compressed (users can optionally request no metadata
compression), or
- the compressed metadata block was larger than the original, in which
case the uncompressed version was used, or
- the data was corrupt after decompressionThis patch fixes this by adding some sanity checks against known maximum
values.Signed-off-by: Phillip Lougher
18 May, 2010
2 commits
-
Signed-off-by: Phillip Lougher
-
Add new extended inode types that store the xattr_id field.
Also add the necessary code changes to make xattrs visibile.Signed-off-by: Phillip Lougher
21 Jan, 2010
1 commit
-
Move zlib buffer init/destroy code into separate wrapper file. Also
make zlib z_stream field a void * removing the need to include zlib.h
for most files.Signed-off-by: Phillip Lougher
05 Jan, 2009
1 commit
-
Signed-off-by: Phillip Lougher