Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp10512pxv; Wed, 21 Jul 2021 14:03:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx6hIh3I8fbB4wtV/Cv6lNmK5YE8lLzSjzmn7b+02WkTDcNcvPqWqhrFlGF0hk+TUpndLKu X-Received: by 2002:a05:6602:2f09:: with SMTP id q9mr21629915iow.196.1626901414254; Wed, 21 Jul 2021 14:03:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626901414; cv=none; d=google.com; s=arc-20160816; b=aKEfed5clKkaXih/su0SvO3IqSaj8Gb4iG7+XsFTazKTPDNXnwzL98tMASLKU87CHu 4L3aR5ZHiT2ecH7pgJu1tAlCDSJvqdofnehb2+YFXCsVBmNXxQTpDU+JsT27ZeuRwa4h 8umAU84OqUrlqt9Rrb7WDM1kQo1vmy8ufE0ghtlsiFJctSX5Fe67aEdHPePCXTmo5Usp cISgtyY2sniPULnksPw+EFVRXJ9zLlA83dodkl32sgosgZsE/baGB29uijNf8raHNX+o wwOAOnFUlvnaiKWcKqKvov1ZyvxH07v4ILYnva782ejmXTj3kInnycEgFYoGH6BDE+T2 Po0w== 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=XP0iAPTzXCS6/hXN5afn3pCSvhDsfbRfFxq+vdKUGU8=; b=rAY6NQ47gGjCmo3bbI+9MlrRK8m4bmdvcqpj+yw9whdaJK/zI+fEwXdvulUlntC6/E HHjBJicdJ5lYlwthmHjZ20LSsGiwr8M07wxUe2j5ka+XYeq3Gus8Obz+bbMlGg+30jIF DtsIq97xUOS3XGD6PxC/ggZAZM/6urs57T4nFAdwIs5lLLFZtGatQUE+k5byMXdNj9QU K4LP7U16R1kd0Ck5kznBLUFh9rTpbZZDhEQ3KR13FrhVObczgsH1u0Y2TMAF+s5XI+lZ hlS673FsmwqGK8ycFFxg5DqF3K1eq5FavHYJEkYc+XSYywlXvIFdv+v6pES38ms9Yz7v tK0Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=TWWXO8Wz; 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 b8si28041722jav.94.2021.07.21.14.03.22; Wed, 21 Jul 2021 14:03:34 -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=TWWXO8Wz; 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 S234850AbhGUQtL (ORCPT + 99 others); Wed, 21 Jul 2021 12:49:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41682 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229943AbhGUQtL (ORCPT ); Wed, 21 Jul 2021 12:49:11 -0400 Received: from mail-ej1-x636.google.com (mail-ej1-x636.google.com [IPv6:2a00:1450:4864:20::636]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 93B14C061575; Wed, 21 Jul 2021 10:29:46 -0700 (PDT) Received: by mail-ej1-x636.google.com with SMTP id bu12so4482179ejb.0; Wed, 21 Jul 2021 10:29:46 -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=XP0iAPTzXCS6/hXN5afn3pCSvhDsfbRfFxq+vdKUGU8=; b=TWWXO8Wznrfh3IEb+hXEjiNusl0FD/72xovtttyL5WjrF/Ze4BgxjMwxkP2/KJB6Y8 m2dHFVKSV7yt1eRra8XALcC9TGq+9kJ97VYMxIsW4EIdmRBKJqMPhsf+aeB9vzl4MCcQ g41p8gXVEk51SiDFzZ5DpUxLteBk48kOLOMLHiy2mlSDJdD6qJgB0a0+fgSw/Qb/sKhF DaH3TG9QNVSHHSm1pOHI7yNP2csO37NZv8yguDkDVZELfc05Cl1r13sG58hnLI1vhnhZ 92Uoyj884HVys25GJ2canrGoL0tpmS+CYhOKNTtJ1ssWIgAPTSMjcDba/h0+sgCarVXA DS2g== 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=XP0iAPTzXCS6/hXN5afn3pCSvhDsfbRfFxq+vdKUGU8=; b=M2Z0GaHxQouinZiYZ+GOy1+1UdhfEzZGPdmqLzDQxGn8j2yOjrkWxrHRUZYSEnm7Jm p1e2AyqcMS8HfLX1qP+eVRDjMrknCsEmBgmmD7GtsCau3e7lcDdjNWEmHWLZ4RECFLJV QWQW4hzGU2BfosySzW8MFyRaUHLBWdAIeo10pdp88c/GA/tR6IAPrLDcIYPDQsg6e29e /hGNVnFAn6mrxEs+5uig90XRXv2ZD0F9m3EQPonBlS9xyvGvklo1w7ecIwQE0rMkLeI7 c4ZV03rpRVLFiXXUgBN/UzzuMBaS9ZfWPR3+x04Uj6LOdpfZKaKgQi6BrioV+zInyc4o AjVQ== X-Gm-Message-State: AOAM530YIoMDpD3FvcDnTKQca3xWMVD+DWR5SXRKG/EbYriGMPXRbMAV 73Xjj+3TBWaKXK6UrR2JWGWY4QCyRupHTcxCGcE= X-Received: by 2002:a17:907:2125:: with SMTP id qo5mr39615957ejb.252.1626888585194; Wed, 21 Jul 2021 10:29:45 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Pintu Agarwal Date: Wed, 21 Jul 2021 22:59:33 +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 Wed, 21 Jul 2021 at 22:40, Mikulas Patocka wrote: > > > > > > 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: > > 65536 is the compression block size - it is unrelated to I/O block size. > > There's a config option SQUASHFS_4K_DEVBLK_SIZE. The documentation says > that it uses by default 1K block size and if you enable this option, it > uses 4K block size. > Okay it seems this config is set in our case: CONFIG_SQUASHFS_4K_DEVBLK_SIZE=y So, with this the squashfs and dm-verity block size exactly matches (4K) > So, try to set it. Or try to reduce dm-verity block size down to 1K. > Okay we are trying this. Thank you so much!! Regards, Pintu