Skip to contentSkip to conversation

SquashFS io errors - zlib_inflate tried to decompress too much data

DISCUSSION Bruno Prémont 2 participants 3 messages Mar 21, 2009

lore
Share & tools
lore
#0 lore raw

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

#1 lore raw
Quoted 5 lines · Bruno Prémont

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)

Quoted 7 lines
[ 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

#2 lore raw

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

Quoted 29 lines · On Sat, 21 March 2009 Geert Uytterhoeven <[email protected]> wrote:
Quoted 8 lines · Bruno Prémont

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
Quoted 6 lines

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