diff options
author | Phillip Lougher <phillip@lougher.demon.co.uk> | 2011-03-15 22:09:55 +0000 |
---|---|---|
committer | Phillip Lougher <phillip@lougher.demon.co.uk> | 2011-03-16 01:04:18 +0000 |
commit | 44cff8a9ee8a974f9e931df910688e7fc1f0b0f9 (patch) | |
tree | 4bb7011f0f5be9047d601c889a8bf02da096cefd /Documentation/binfmt_misc.txt | |
parent | 003a3194d36dc22c29cacda4d0c6fede2753c9d0 (diff) |
Squashfs: handle corruption of directory structure
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 decompression
This patch fixes this by adding some sanity checks against known maximum
values.
Signed-off-by: Phillip Lougher <phillip@lougher.demon.co.uk>
Diffstat (limited to 'Documentation/binfmt_misc.txt')
0 files changed, 0 insertions, 0 deletions