Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3531446pxj; Tue, 15 Jun 2021 03:02:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJys5mlkaVEEzMzFMmjmnjg41Woy5B9tgccglqHsdkl3HLXzk+qISLD1rO2P+zTi1U/KhqmL X-Received: by 2002:a05:6402:4cf:: with SMTP id n15mr22964871edw.162.1623751378701; Tue, 15 Jun 2021 03:02:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623751378; cv=none; d=google.com; s=arc-20160816; b=oQHkNlrCX5n2tLCcGL8pakAP9x1CpP2yr4CzYnj7yGLH6MMpyYJWmXndonXhfFC88D Mns6a5+yzv8RClLGxDSvr8+q5CNi2VqxLlM5KtggvzJB2yKsDPV66y6s8xERRReggkBJ BjmcebQi034NxZ73rxMTA8n9LR1QPb8T6ynjCk8hJDlEF1vRE/FSCw0MRJSH76Lzie16 mnsw5dZYfeiRzHptSKWD+ES/7vvs5vRbSxmRCbXYAvlByeQ84s3uZUQVmvhlSE62KKDi 95JWPYKNDwFkEIpT2exydgA5mGyssmNjyAgVZC8tGh0hD1SX8ApRg94pgEq98AYHNVxF j8+g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=6z4408/6oQsiDbv7fByF9r7biAOY0o4N+GInpU23pkI=; b=o9jrEuKSnEdofNe9XCpPHfxv5lfFiWYKsyP7YPZvqW5Lc8/XoCv33Sf3tyhpKJAuTR rM6Mq6c5MtiAY7REg1rfgAg7767LXRqKsFJKUVw7nzrBSeHc1uqupycRbytDXTpxb3A9 ykBhC84JjShz4aBUo9MPWtEyWHYNjHs2inVZIeUYgP03fiYMpXSDRbcuXqT4q7Elsku9 qmP6XDstD+vqwBd+c1H7ACOKk9sxVZocwBAyFmKXJ/2dqmc1axrLomRqFN9dJy1kHD9B cp/t4ee7+CmrK/fuYP7swUXnGPhLyRWsS2JaTz+l7N0JJjQ1Lla0euAzxWnKNsC+kG4r R7jA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=H06GhBmx; 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 aq5si13070093ejc.19.2021.06.15.03.02.35; Tue, 15 Jun 2021 03:02:58 -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=H06GhBmx; 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 S231374AbhFOKDV (ORCPT + 99 others); Tue, 15 Jun 2021 06:03:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33084 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231308AbhFOKDT (ORCPT ); Tue, 15 Jun 2021 06:03:19 -0400 Received: from mail-ej1-x62e.google.com (mail-ej1-x62e.google.com [IPv6:2a00:1450:4864:20::62e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 06663C061574; Tue, 15 Jun 2021 03:01:15 -0700 (PDT) Received: by mail-ej1-x62e.google.com with SMTP id ho18so21578897ejc.8; Tue, 15 Jun 2021 03:01:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=6z4408/6oQsiDbv7fByF9r7biAOY0o4N+GInpU23pkI=; b=H06GhBmxY91XwIBiT6QAmQpAftMWvSYiSkZ1ikjQiL/ABWIc6qzGO96hKW2gZMGb8i LPGM6p3HrLH5zBeTr2aFA0tc7/l3iZL3/+l4qB8ZwulLOQD6sIaU1oJA8GKcNaMWsbws lFSjtNYGjK63ptwBFN6XZPDIMY0jwp+KT/8bJMylNwfW3yTyqtzDS4rgcNqti4cqu8hF 8F/XzvIhvRLhlw0Jw9BjtkyUHnGGJaIToVlmnZ7F3q3QjBRHXYnfJW4kOUCUtrc4W3nd GZRDASpUW3UpxKzXgTBfVY7kj4UzzdGgjJq/j3NKG1CqGI9Zg0Ql29g3cC7NLxBnJp/+ JdPQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=6z4408/6oQsiDbv7fByF9r7biAOY0o4N+GInpU23pkI=; b=LO6ee3JC4uo0tiYbDDRIKnYnuIseQ4BuJRSgZHtpWgme3KCRm9MzZBmAyHy8TXpJ8Q GGpk4BeYdC71KDdudKBh7iVSP8souO9ZVwpIaf7mwfk5LNQnxDKoC4T/kvItEUQ/wvpN VZYZN4N2mGrna03zJySk1O5AXSRuoKnkG4VuOlvtzHIK/jxGr4+BrhPz9q3U2KavWMQ8 RW/P6zVItC9HqPrPJVEAw8O/rV+A9We1Ypu3gc3HP2Ti7wmqGLLly8c+is1MxpM7YYmH /Hs6K/Q4wPFfvZW4ogHd/EiwhKuQknv2NLYDIhGQAtQ3jlFFZ9b/reQbJI9KFixUbOiY Vrhg== X-Gm-Message-State: AOAM531L5T8/p2TDAPestyLdZv9kgdzlEqM+XlIiBcrBGyP1X+2PHKHT tPNHXezKoI+iz+2WZSYhfPGsRNX6LNWaSf/orRk= X-Received: by 2002:a17:906:c293:: with SMTP id r19mr20197055ejz.252.1623751273558; Tue, 15 Jun 2021 03:01:13 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Pintu Agarwal Date: Tue, 15 Jun 2021 15:31:01 +0530 Message-ID: Subject: Re: Kernel 4.14: SQUASHFS error: xz decompression failed, data probably corrupt To: Florian Fainelli Cc: open list , linux-fsdevel , linux-mtd , Phillip Lougher , Sean Nyekjaer Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 15 Jun 2021 at 10:42, Pintu Agarwal wrote: > > On Tue, 15 Jun 2021 at 03:53, Florian Fainelli wrote: > > > > > > > > On 6/14/2021 3:39 AM, Pintu Agarwal wrote: > > > Hi All, > > > > > > With Kernel 4.14 we are getting squashfs error during bootup resulting > > > in kernel panic. > > > The details are below: > > > Device: ARM-32 board with Cortex-A7 (Single Core) > > > Storage: NAND Flash 512MiB > > > Kernel Version: 4.14.170 (maybe with some Linaro updates) > > > File system: Simple busybox with systemd (without Android) > > > File system type: UBIFS + SQUASHFS > > > UBI Volumes supported: rootfs (ro), others (rw) > > > ------------------- > > > > > > When we try to flash the UBI images and then try to boot the device, > > > we observe the below errors: > > > > Someone in The OpenWrt community seems to have run into this problem, > > possibly on the exact same QCOM SoC than you and came up with the following: > > > > https://forum.openwrt.org/t/patch-squashfs-data-probably-corrupt/70480 > > > Thanks! > Yes I have already seen this and even one more. > https://www.programmersought.com/article/31513579159/ > > But I think these changes are not yet in the mainline right ? > > So, I wanted to know which are the exact patches which are already > accepted in mainline ? > Or, is it already mainlined ? > > https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/log/fs/squashfs?h=next-20210611 > From here, I see that we are only till this: > ==> 2018-08-02: Squashfs: Compute expected length from inode size > rather than block length > @Phillip Lougher, do you have any suggestions/comments on these errors ? Why do you think these errors occur ? Also, I noticed that even if these errors occur, the device may boot normally. However, for some people it does not boot at all. Thanks, Pintu