Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2643628pxj; Mon, 14 Jun 2021 03:52:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwfAWXKWoC+hB6zJWgrf/15np+4OIEl+pCrIMjOqEf14b8nEnLuaqcqKJIJz/IvN/FEzt0r X-Received: by 2002:a17:906:2bd0:: with SMTP id n16mr14687830ejg.110.1623667955082; Mon, 14 Jun 2021 03:52:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623667955; cv=none; d=google.com; s=arc-20160816; b=EoghvXgqtsG++OLy+iiS5oNAM5vAjgJ1yN+TjleO4hcKVa0SvwZ7OcbpXpKKxnMwSG P5QhugJCsj0oEd8w4NJQZBfXyLsS3M6OSPowQr5wceqSGustu/pg49R9lT05pfS8MRVl m3LnTXhmqz0/AuqxYma13fpCZf2+lB/apfZRqZPMjky50vcuSKfqHVZbjVOFbNNjVgOf Mz3GiFKlsGhL/kOlrO0w22im9o2JkMj7/lD1bkgkbCsUe7ci2tkTh9kPPg4Q6tvrnm8K kc/L3/240WsCSEzNL/1glLRKTXs86JPtFTgfYt74Dh4Y16S8UKDOsdfuFH1r4MfRgVPK cDmg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:subject:message-id:date:from:mime-version :dkim-signature; bh=O8WpJQZenICGzTZvriCS7Y4CfqGQZ2ql9+HdnGk6G6s=; b=VKrQmcHlaGoeWLqBCT5jQ2U5iqEQqdqqg+TOS+D27MUVKUGpj1qmPFX1MrKFp/S0fJ NKoXxvVaYNjfPsncqb0OHIoNFPiAP+3G78pV9cTrmWD4zp/T40ng4lge+Hr18tpt/r4b H0+wY5SV3J1skGfdvcJrJeQQDCXowqRc46Iy9HcptxLckdl7pvQxhTlUYrP4KQedyKL4 FYBD+W2piZ9w67w2k6VbQV1dQ8RYsRBfjypiAPCM7GkRL4KpFUzpsSXVJb6RSww+K41C C3KGfttaw5JeofVZc78tw+jOtrs/9OhDl/rto3hmAoQDN9vwH2UtI/3cFtR9So1D0RR1 q+AA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=bdcKxFXv; 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 i24si11281271edt.81.2021.06.14.03.52.12; Mon, 14 Jun 2021 03:52:35 -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=bdcKxFXv; 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 S234569AbhFNKxY (ORCPT + 99 others); Mon, 14 Jun 2021 06:53:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34284 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233888AbhFNKqV (ORCPT ); Mon, 14 Jun 2021 06:46:21 -0400 Received: from mail-ed1-x52a.google.com (mail-ed1-x52a.google.com [IPv6:2a00:1450:4864:20::52a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DC028C061A29; Mon, 14 Jun 2021 03:39:27 -0700 (PDT) Received: by mail-ed1-x52a.google.com with SMTP id ba2so44066992edb.2; Mon, 14 Jun 2021 03:39:27 -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; bh=O8WpJQZenICGzTZvriCS7Y4CfqGQZ2ql9+HdnGk6G6s=; b=bdcKxFXvOkmDTtQXzP7mf2LQcxv/EPW1OQtkL6J73K5mTitWzIfYRVzdiSvpiQeJoX huhkHtgWgEfWZKxgGWl3xWgNoP/IMwIs7Ok+MlGlYCXMe0o+eAsLK/WqfJkOmq7XkieW M6B4qYXVOGsBidnAlv0Lep/L9Q8+s6P7zsXGKC5NWzRSgUa2Pco2QT3xSRoi5y7MekDK /+k/KrhWaCFunhe6AA/aXWMytJp83lMd6utSGelUW8/dhx8qLCUQ+SRpOIx2NgBnUef6 1Ka10/2H2cqsmvrCKBX8vIxmL5Zdhf7DSuac+57lYLvIDALS9bzCmlgBL9lerpOx0Omp f/MQ== 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; bh=O8WpJQZenICGzTZvriCS7Y4CfqGQZ2ql9+HdnGk6G6s=; b=PUZliGTrJXzF6R2yNs0e/7LXCg4MuMM17htXAaqSkA31HEZuXZLports7bzzS2alW1 LgOPvolAwLgaDZRHmtA/h6keTu9oNefI3CLDCZdjme9t1/WI4gtdM/uWeHYPIIE7JwkF m2wdrjrBcwEyAdoaDU49UgaS6F89+8LyFheYaswc9+gMuK1x3KRtVGZAHiIAOEaTu+jd 8+tNlGvkLME4O33D+4K2zubHLpYJ6/TYgwAWpG23qoXRH5U1cpOh04YN4bUc2r1aWx3p drRsZIBNxFphYFv0GJXYRJEgotH2uY680LXoHDQ19ZE3DFSC5P6G5GlyEk5A/b6LBY7f fCFw== X-Gm-Message-State: AOAM533vgRtw3cYzqTzwSdmsIYWoIypOb+en85BAeHbDLD+VUieSmEAT 0VwwkKJE8vlXDzL7RsjLtDX0Bi04NFbfv8NM9+TsfuSj/DQ= X-Received: by 2002:a05:6402:3134:: with SMTP id dd20mr16058384edb.59.1623667166346; Mon, 14 Jun 2021 03:39:26 -0700 (PDT) MIME-Version: 1.0 From: Pintu Agarwal Date: Mon, 14 Jun 2021 16:09:15 +0530 Message-ID: Subject: Kernel 4.14: SQUASHFS error: xz decompression failed, data probably corrupt To: open list , linux-fsdevel , linux-mtd , linux-fsdevel@kvack.org, Phillip Lougher , Sean Nyekjaer Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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: {{{ [ 5.608810] SQUASHFS error: xz decompression failed, data probably corrupt [ 5.608846] SQUASHFS error: squashfs_read_data failed to read block 0x4d7ffe [ 5.614745] SQUASHFS error: Unable to read data cache entry [4d7ffe] [ 5.621939] SQUASHFS error: Unable to read page, block 4d7ffe, size 7a3c [ 5.628274] SQUASHFS error: Unable to read data cache entry [4d7ffe] [ 5.634934] SQUASHFS error: Unable to read page, block 4d7ffe, size 7a3c [ 5.641309] SQUASHFS error: Unable to read data cache entry [4d7ffe] [ 5.647954] SQUASHFS error: Unable to read page, block 4d7ffe, size 7a3c [ 5.654304] SQUASHFS error: Unable to read data cache entry [4d7ffe] [ 5.660977] SQUASHFS error: Unable to read page, block 4d7ffe, size 7a3c [ 5.667309] SQUASHFS error: Unable to read data cache entry [4d7ffe] [ 5.673997] SQUASHFS error: Unable to read page, block 4d7ffe, size 7a3c [ 5.680497] Kernel panic - not syncing: Attempted to kill init! exitcode=0x00007f00 [....] }}} We also observed that some of our Yocto build images will work and boots fine, while sometimes the build images cause this issue. So we wanted to know: a) What could be the root cause of this issue ? b) Is it related to squashfs ? c) If yes, are there any fixes available already in the latest mainline ? Please share some references. Please let us know if anybody encountered this similar issue with squashfs and how did you handle it ? Note: Our current commit in fs/squashfs is pointing at: Squashfs: Compute expected length from inode size rather than block length Thanks, Pintu