Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp5729526pxv; Wed, 21 Jul 2021 12:28:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxFJv4LXFiXywE2/eBoqV1vYWwOrMH82l9nO+fEuL3bk4JTjWYWWE/azvYHzggM9v3q7Uxk X-Received: by 2002:a5d:8d83:: with SMTP id b3mr14957951ioj.179.1626895718973; Wed, 21 Jul 2021 12:28:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626895718; cv=none; d=google.com; s=arc-20160816; b=PDzRM2rl2frYgOertVjVNlctRBQZ35Sv2Uc7n90yRMxCExHUm7RCoo9nxQe3lN3ghg 0in+35nygd7RinyWEffaGUQKC8x0IrF8hqQ9Qsyhu5JO86w3Mq24Wcqmk1zwNgkfcIEp tqHOOB1dUrpNmIoIkWJvgGVjcJz3f34Nia8I4q2w5EZ4ZiL5+CU5ASqt82CnN1E34lrj VwTikx+kKTqb+caPpP8ADLY5nMAa4G8933v+RPlA/4aQaL2xlLmwLSBSIO2JKXWP9Ni7 3g6yWRfSAC+HjqA7ssL4UU0PT1woAGQL5MLPGc7y8F2SyrId1nsUFiUEAlqGOTuQxr+N OTtQ== 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=3QH0L1galc4dXmyAjj6SONbiSv0qVq6f5DQ4NUtGEno=; b=q1hTpBt0ONX+13L5WBBFELTf9xFX6jogluVSRYfo1Lq8P2DdTEp8id0EjGg7dptbux aiSkqPeUxaq93siXqZT425QaB/reM5mPa4Vn7v/C1oH4DQU635U8EoeXC8oVJnh8rZeY O9Ad9DtjDVv986dnFBOhN/6OTZEiuIjf5+V9/FG148Cl1BSS7Q0mi8+5nJSMwGnNLjL5 jRsZv+vLSVNJ/mVWSOmOddo+ndEh7gD/DvrZXC8HWs0Xtpspaez9N5dF+y1X0eZVni4L ECuthtZqh70JTjfpFS2+K1ibJuQlFDAky3hmWuMTBeAyyn2V4/qKgOktXL7oFJdFBUpF rfqA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ksK3cQEk; 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 b12si26162497ioj.88.2021.07.21.12.28.27; Wed, 21 Jul 2021 12:28:38 -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=ksK3cQEk; 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 S239444AbhGUOX1 (ORCPT + 99 others); Wed, 21 Jul 2021 10:23:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34970 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239473AbhGUOUe (ORCPT ); Wed, 21 Jul 2021 10:20:34 -0400 Received: from mail-ed1-x534.google.com (mail-ed1-x534.google.com [IPv6:2a00:1450:4864:20::534]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BCBB6C061575; Wed, 21 Jul 2021 08:00:51 -0700 (PDT) Received: by mail-ed1-x534.google.com with SMTP id x17so2751020edd.12; Wed, 21 Jul 2021 08:00:51 -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=3QH0L1galc4dXmyAjj6SONbiSv0qVq6f5DQ4NUtGEno=; b=ksK3cQEkcbM2A1jLvr4UuKTvyNMRVEzp0tvWg8di9oPfOkQHQy6xwZLfWylwgHXeky zT5+pr/Vo1E5ZvqpCBJ76fS1+G1yypiU54zm2N54vDXPS4tmEzVUY1Xhl8/gOc3dOq/Z DOmdcOMb6d85MqtiR8FoXDdcafAr+rlf+lWJ5C0q+TGyAfHgwVZa6hDATsFxBTdOX4qj xZC16RQwxKt+eCQdTc47xPXWJD+ObiE8Z0zUEoI7M2Q3WT5Rt/dZTDxr75xcq1E1ey8i kcqOU0q8BmVtpv3lBZR396OEXoDJtCUMwPIpQX4BxHiNydCqSlzCcjiSURY1NtDsvfxI ZZmQ== 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=3QH0L1galc4dXmyAjj6SONbiSv0qVq6f5DQ4NUtGEno=; b=Dq8q+eltPKNOhyPaJ8dYHAbDzy39ZGWzGA6DOAtPBvt5+IBAvGqJ+2M3GAxgR+38mG 3L4gGZ+ADhXlgqZnMbdCxjLqt+XiU+cdZpkPOfnAengxy1oi+Ur4hpWJClj5SvPXevC2 1ee9N1XeODFUw9pevOZ4MXvQp23GQRh0b9G65efq7F8L/8W3pQt6zr/APinu/jeVZAvJ Y2VL4G8DMwyCQgk0CY9CJDxe+tUol/o8A7F48/OiceAjrlq3A/ovP+1jH+La+7TZ0vCU 5A0Vdvt/33xT3fLEJx07HgyKV5qcJLrSo21DM8KQa016uT1defjuhXGYeWwaKWhZwl/u xAuQ== X-Gm-Message-State: AOAM531/Kl1Znb54H2mQqGnxrA7W0K3pYHl/CNFdR8upMyPLoRvC8dra tu1KzXVZboAZFTAUTPf8DdXUSrsv/Pe2tMe6/7k= X-Received: by 2002:a05:6402:19a:: with SMTP id r26mr47901608edv.230.1626879650292; Wed, 21 Jul 2021 08:00:50 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Pintu Agarwal Date: Wed, 21 Jul 2021 20:30:38 +0530 Message-ID: Subject: Re: Kernel 4.14: Using dm-verity with squashfs rootfs - mounting issue To: Mikulas Patocka Cc: open list , Phillip Lougher , linux-fsdevel , linux-mtd , dm-devel@redhat.com, Kernelnewbies , agk@redhat.com, snitzer@redhat.com, shli@kernel.org, Sami Tolvanen Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 20 Jul 2021 at 17:12, Mikulas Patocka wrote: > > Hi > > Try to set up dm-verity with block size 512 bytes. > > I don't know what block size does squashfs use, but if the filesystem > block size is smaller than dm-verity block size, it doesn't work. > Okay thank you so much for this clue, It seems we are using 65536 as the squashfs block size: ==> mksquashfs [...] - comp xz -Xdict-size 32K -noI -Xbcj arm -b 65536 -processors 1 But for dm-verity we are giving block size of 4096 ==> [ 0.000000] Kernel command line:[..] verity="96160 12020 d7b8a7d0c01b9aec888930841313a81603a50a2a7be44631c4c813197a50d681 0 " rootfstype=squashfs root=/dev/mtdblock34 ubi.mtd=30,0,30 [...] root=/dev/dm-0 dm="system none ro,0 96160 verity 1 /dev/mtdblock34 /dev/mtdblock39 4096 4096 12020 8 sha256 d7b8a7d0c01b9aec888930841313a81603a50a2a7be44631c4c813197a50d681 aee087a5be3b982978c923f566a94613496b417f2af592639bc80d141e34dfe7" Now, we are checking by giving squashfs block size also as 4096 In case, if this does not work, what else could be the other option ? Can we try with initramfs approach ? Thanks, Pintu