Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp1998207ybh; Tue, 14 Jul 2020 12:42:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxl0M0VyO9xMpn4wZMQzhHbLlDhzfVSw585BQph0EU/jALyKhgIwwFBhN6Yno2F71aqnzYa X-Received: by 2002:a17:906:9354:: with SMTP id p20mr5929728ejw.187.1594755764266; Tue, 14 Jul 2020 12:42:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594755764; cv=none; d=google.com; s=arc-20160816; b=O99Rdt1jLMyeIpy8YK2WnA6tuVKMD5k9g6u5wsYgFuN5BqGNbxr2ubHSXY2JYZcDdA A4lraFcBy2kbCXY17tVxl/6xpxzim3itO6fgAAohu6/Vephl7KnesOiuUz3/VAaHZrne z8YdxahlnF3/M2P+v8syAKvv0QViQR7PabrXD7pEZ2Bqp3qW3YbDnmI4z5SMVTo4d50t OV5NiMxNTV0ZnWvniOqE89yGvdJVIBtrT23CtjKkml0+AFFREsd/vs7yI3ZuVzx43gT4 XuodM+x0flK2c+s3qzobTG5aOCybkjbWqh16B1gCrfTfRS1KHmksFHDCkglR8Mc8I3Li l6yA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :mime-version:dkim-signature; bh=Yfl627IA+B/fjGximssA/R316mc2EfYtR5UACcyTqEU=; b=fsycJJLJha+muc3tdku1t1MT0ePsE58tSH+F3GXo/xjtj63Wr5UqvlXRjf97J15pC6 TN/KhdEYYuP56h7zc9iWUEt3M0TZ7AgbsREYsUHwoJmu4ZbpduLtEwlc3HjHpa470Jpc S8XmCl+DEOOVat25rUveuI971BuhqBv7JQn7rsTu0tsIBbA7k2L2OVlDPVOcUOxN5Zn4 PFUahFUPlxJ6QZyNw4czv3a3o3sv7JV2nfWE5+moCzGdFFFvbSKQWrWw/gIXExkK+M+f UDLkQl/6Ohpgm6P4MO5NVHLaC98efGYS9cQUMHi5MJBkXpDdu6Tl2DUN9tihs3DalXuk 5dWA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="JghOR3/w"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dm15si15830084ejc.728.2020.07.14.12.42.18; Tue, 14 Jul 2020 12:42:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="JghOR3/w"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729726AbgGNTlT (ORCPT + 99 others); Tue, 14 Jul 2020 15:41:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46960 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729465AbgGNTlT (ORCPT ); Tue, 14 Jul 2020 15:41:19 -0400 Received: from mail-io1-xd42.google.com (mail-io1-xd42.google.com [IPv6:2607:f8b0:4864:20::d42]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2046DC061755 for ; Tue, 14 Jul 2020 12:41:19 -0700 (PDT) Received: by mail-io1-xd42.google.com with SMTP id a12so18541544ion.13 for ; Tue, 14 Jul 2020 12:41:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to:cc; bh=Yfl627IA+B/fjGximssA/R316mc2EfYtR5UACcyTqEU=; b=JghOR3/w/t7Bad3EVRgQFuuTNrxpveb/+pmXcmvRpr8kT3VdS32gz4oS09pbARW9Um mHfVM72pqiTz+45kDF631HpsK0xRi4Xx2fK3udA1l6TWZ+lznhGgzu6zP2x0Z7oSMgZW y9TYbgPVf4sZ3qrb7BaioB7FbUO73nUsGKGqcxAXuvdf2pEryou31b6sNt+Yh/fiHFbk 2Mkm6BzFMouPZ0ML54FG1ZxtVydZrETj0xnFK9L2S9F24ILZrHy2PGt7c1MmrS7nqUkd apbUxVSu+mEhD5qpWQxugtFUR3oM6cFtP64o3f40pgP99eajZSBJygzlAKTQTpvvmS4e 0Nhw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to:cc; bh=Yfl627IA+B/fjGximssA/R316mc2EfYtR5UACcyTqEU=; b=lmKr6Iz+ofGyn2slcj4ILW5HhKBflci/fXrshWifHQmvz6+98MqZ+BKayY38wRhGxb dvT/Qtr5lpec2DGpqI0az19LV3Fo+FG4BvmQ6XSv8iELg2lr0oT7WqCzsiCEDgfm0gFP xo2MRv7k3In6IUzK2XbY56PlnBohi5VuffCzpPAWA24ouCJDeBkbHHv4KBpdM3c0ye+R qhwjUhuyDQNuhG+2+cYDQXa3lVEX3VeHtweFSR81dWUGzaNGyhvpfEyLbSrT5uq/wUMT qE/q6CTMZfhyphA9XP8kpDzbVE8yzXHC+w799i/kC6FAighPK3enN9Tie2pHuFp0vY2x 9xBA== X-Gm-Message-State: AOAM532svSosEaLaDWk31ma5nifotM2Hn10b+h8H1pdrHNkGaAYKrepk mtoDDLSWKOfRObY6Lhhn9APYLuilf68LB1dI7io= X-Received: by 2002:a05:6602:1555:: with SMTP id h21mr6451215iow.163.1594755678534; Tue, 14 Jul 2020 12:41:18 -0700 (PDT) MIME-Version: 1.0 From: Bernd Amend Date: Tue, 14 Jul 2020 21:41:07 +0200 Message-ID: Subject: Regression: squashfs issues since change "squashfs: migrate from ll_rw_block usage to BIO" To: phillip@squashfs.org.uk, akpm@linux-foundation.org Cc: linux-kernel@vger.kernel.org, Bernd Amend , Stefan Rommel Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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