All of lore.kernel.org
 help / color / mirror / Atom feed
* Regression: squashfs issues since change "squashfs: migrate from ll_rw_block usage to BIO"
@ 2020-07-14 19:41 Bernd Amend
  2020-07-16 23:07 ` Andrew Morton
  0 siblings, 1 reply; 4+ messages in thread
From: Bernd Amend @ 2020-07-14 19:41 UTC (permalink / raw)
  To: phillip, akpm; +Cc: linux-kernel, Bernd Amend, Stefan Rommel

Hi,

With the Linux Kernel version 5.8-rc5/master I am unable to mount some
squashfs filesystems compressed with "-comp lz4".
If I try to mount them I get the following error:
[    1.084246] SQUASHFS error: lz4 decompression failed, data probably corrupt
[    1.084545] SQUASHFS error: Failed to read block 0x873e1001: -5
[    1.084761] SQUASHFS error: Unable to read metadata cache entry [873e0fff]
[    1.084983] SQUASHFS error: Unable to read directory block [873e0fff:1586]
[    1.122564] SQUASHFS error: Unable to read metadata cache entry [873e0fff]
[    1.122708] SQUASHFS error: Unable to read directory block [873e0fff:1586]
[    1.122862] Starting init: /sbin/init exists but couldn't execute
it (error -5)
[    1.123027] SQUASHFS error: Unable to read metadata cache entry [873e0fff]
[    1.123152] SQUASHFS error: Unable to read directory block [873e0fff:1586]
[    1.123279] Starting init: /etc/init exists but couldn't execute it
(error -5)
[    1.123444] SQUASHFS error: Unable to read metadata cache entry [873e0fff]
[    1.123573] SQUASHFS error: Unable to read directory block [873e0fff:1586]
[    1.123713] Starting init: /bin/init exists but couldn't execute it
(error -5)
[    1.123900] SQUASHFS error: Unable to read metadata cache entry [873e0fff]

or

[ 4960.910693] attempt to access beyond end of device
[ 4960.910695] loop0: rw=2048, want=46, limit=40
[ 4960.910696] SQUASHFS error: Failed to read block 0x4001: -5
[ 4960.910697] SQUASHFS error: Unable to read metadata cache entry [3fff]
[ 4960.910698] SQUASHFS error: Unable to read inode 0x20c5000c

I bisected the issue to the commit "squashfs: migrate from ll_rw_block
usage to BIO"
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/fs/squashfs?id=93e72b3c612adcaca13d874fcc86c53e6c8da541

The issue can be reproduced by downloading
https://theworldsend.eu/demo.squashfs (20K) and the following command
line.
# mount demo.squashfs mnt && ls mnt && umount mnt

The same squashfs can be mounted using Linux <=5.7.8.
The kernel config is identical to the Arch Linux Kernel configuration,
build using gcc 9 and 10 on x86_64.

Best regards,
Bernd Amend

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-07-17  4:02 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-14 19:41 Regression: squashfs issues since change "squashfs: migrate from ll_rw_block usage to BIO" Bernd Amend
2020-07-16 23:07 ` Andrew Morton
2020-07-17  1:22   ` Phillip Lougher
2020-07-17  4:01     ` Bernd Amend

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.