Files
linux/fs/squashfs
Phillip Lougher ba7eb951da Squashfs: handle corruption of directory structure
commit 44cff8a9ee upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2011-04-14 16:53:44 -07:00
..
2009-01-05 08:46:24 +00:00
2009-01-05 08:46:25 +00:00
2009-01-05 08:46:26 +00:00
2009-01-22 13:15:58 +03:00
2009-01-05 08:46:27 +00:00
2009-01-05 08:46:27 +00:00
2009-01-05 08:46:24 +00:00