2009-03-21 10:41:13

by Bruno Prémont

[permalink] [raw]
Subject: SquashFS io errors - zlib_inflate tried to decompress too much data

Hi Phillip,

With 2.6.29-rc7-git5 (x86, 32bit) I get the following errors on assumed
correct squashfs images (generated with mksquashfs from CVS, dated
2009-03-14)

[ 3481.692558] SQUASHFS error: zlib_inflate tried to decompress too much data, expected 8192 bytes. Zlib data probably corrupt
[ 3481.692571] SQUASHFS error: squashfs_read_data failed to read block 0x29375e0
[ 3481.692579] SQUASHFS error: Unable to read metadata cache entry [29375e0]
[ 3481.692586] SQUASHFS error: Unable to read inode 0x6a04a05ed

The same happens on 2.6.28.8 with all squashfs patches from 2.6.29-rc8
applied to it (x86, 64bit).

If useful I can provide the image (44MiB), it's an image of Gentoo
portage tree.

Bruno


2009-03-21 12:11:34

by Geert Uytterhoeven

[permalink] [raw]
Subject: Re: SquashFS io errors - zlib_inflate tried to decompress too much data

On Sat, Mar 21, 2009 at 11:33, Bruno Prémont <[email protected]> wrote:
>
> With 2.6.29-rc7-git5 (x86, 32bit) I get the following errors on assumed
> correct squashfs images (generated with mksquashfs from CVS, dated
> 2009-03-14)
>
> [ 3481.692558] SQUASHFS error: zlib_inflate tried to decompress too much data, expected 8192 bytes.  Zlib data probably corrupt
> [ 3481.692571] SQUASHFS error: squashfs_read_data failed to read block 0x29375e0
> [ 3481.692579] SQUASHFS error: Unable to read metadata cache entry [29375e0]
> [ 3481.692586] SQUASHFS error: Unable to read inode 0x6a04a05ed
>
> The same happens on 2.6.28.8 with all squashfs patches from 2.6.29-rc8
> applied to it (x86, 64bit).

A fix for this has entered mainline:

commit 363911d027d1de1c6df79eb3f487f5476b9619f4
Author: Phillip Lougher <[email protected]>
Date:   Thu Mar 12 03:23:48 2009 +0000

    Squashfs: Valid filesystems are flagged as bad by the corrupted fs patch

Gr{oetje,eeting}s,

Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
   -- Linus Torvalds

2009-03-21 12:36:07

by Bruno Prémont

[permalink] [raw]
Subject: Re: SquashFS io errors - zlib_inflate tried to decompress too much data

Thanks Geert,

I saw that patch but somehow it slipped through when applying the
set of squashfs patches for my 2.6.28.8 install...
With that patch applied access to the image works as expected

Sorry for the noise,
Bruno


On Sat, 21 March 2009 Geert Uytterhoeven <[email protected]> wrote:
> On Sat, Mar 21, 2009 at 11:33, Bruno Prémont
> <[email protected]> wrote:
> >
> > With 2.6.29-rc7-git5 (x86, 32bit) I get the following errors on
> > assumed correct squashfs images (generated with mksquashfs from
> > CVS, dated 2009-03-14)
> >
> > [ 3481.692558] SQUASHFS error: zlib_inflate tried to decompress too
> > much data, expected 8192 bytes.  Zlib data probably corrupt
> > [ 3481.692571] SQUASHFS error: squashfs_read_data failed to read
> > block 0x29375e0 [ 3481.692579] SQUASHFS error: Unable to read
> > metadata cache entry [29375e0] [ 3481.692586] SQUASHFS error:
> > Unable to read inode 0x6a04a05ed
> >
> > The same happens on 2.6.28.8 with all squashfs patches from
> > 2.6.29-rc8 applied to it (x86, 64bit).
>
> A fix for this has entered mainline:
>
> commit 363911d027d1de1c6df79eb3f487f5476b9619f4
> Author: Phillip Lougher <[email protected]>
> Date:   Thu Mar 12 03:23:48 2009 +0000
>
>     Squashfs: Valid filesystems are flagged as bad by the corrupted
> fs patch
>
> Gr{oetje,eeting}s,
>
> Geert