Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp675766pxb; Thu, 23 Sep 2021 08:24:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzz/xl97WCQWfZjgOue6+wqDN9DJgNfqWnIL0b1RZYjzvH/mLFZfGNuD5daMMrUEJCCBjkL X-Received: by 2002:a17:906:69d5:: with SMTP id g21mr5814669ejs.233.1632410645479; Thu, 23 Sep 2021 08:24:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632410645; cv=none; d=google.com; s=arc-20160816; b=BV9EOefG9J0OOGj7Gnkcw65k2Noyje+SgQ3dCYnWbDinEpqEunShBNa1xx/LmTvJkr B9mxfcpryJGNKgc5Qhs4UPpR+g89e9SgaJg06/RDdfwXBqj/pW/vc7yRxCnsGWCOcwg1 zxGz1avTEISgYPu17GIyoIV0/qlDqcYO9ukC++Oy181PkMLH2n0Yx6GxonpV63ZLOGRE CyuGjE2VWiJUXUDH/JkajxbfPVc4NOKBRDRo/4tJc0ZHChlFRZcSyaItzLGEZOKXnOrV 6G3uhLzj9ES3Jo7DIWmJxgUi41+NvMF/7d3FcZaksFFeS0dUlOUAyLQNFxDwq6Q3tagG 6KMQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:mail-followup-to:message-id:subject:cc:to :from:date:dkim-signature; bh=W5LNZLBv08rnF+Z9LoPVfAAWv8DomJsVrlOLOBltLQ4=; b=uxoKRzUcmkluFZc0rpM/EXWzrduK4SkyQBOcDU24XtTEkg4cA0/SLWF4keu4rIj7i/ Zg9FcbBWyoTIhRSfVYqdX4j/07X3AF5YufcZPq51pxYDvBrFnhD1Fr01Z/Sw0Mjoyn4e m78dJSzApwR8vohKccqSyFS6EfKpNm6unFXqaepj47DVCP2i7Ucf8EZ+LG5+MkG4ZTU2 scktsSlkAdlGMP6BMZrL9nyrV30UU09k6IbqUniTV+3wWXK7n1fZix1d0gEkNZBh9zTH KJ2AthRjstf76jvTyQeJV8IIBpdTuSEudEmamlh5XqSwlVs+Kj1AG4NCtyMV3OK02tb4 ZkOg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Vb34QMoh; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f25si5515206edj.309.2021.09.23.08.23.39; Thu, 23 Sep 2021 08:24:05 -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=@kernel.org header.s=k20201202 header.b=Vb34QMoh; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241972AbhIWPVO (ORCPT + 99 others); Thu, 23 Sep 2021 11:21:14 -0400 Received: from mail.kernel.org ([198.145.29.99]:59942 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241947AbhIWPVK (ORCPT ); Thu, 23 Sep 2021 11:21:10 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 3162B60F12; Thu, 23 Sep 2021 15:19:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1632410378; bh=bxMbjbmYYlx+gwAQqIXMFemqzoYdMwKRAZ+eUGI26/8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Vb34QMohIOyVon1B7SCV4j1uJ+VDUB7CR0IPaLvORzuFVP5Z64hqaug+KkQsYH79V kNEqRAQaSKTOxZZ7hHjEvrFlD+ciVlgzN4NUeWKSv38bjWgoZTRXZTxP84PMEMSIVU /wu0Q+Jd0qzwuHbzzemg5N8JocPZtOnhPPpn9hn/mt+y52w7tWX6YKu6kHtgB6HrBH sN9EdwLGy/DlO/M3LiipYqdCWRVUnW5WukRRySaKRk5Oi3pmWQHXOwUrofOwh9dtp0 uHDSsYqUnArWhDprfSBS+JxNZfBNjH8z4MYrAURvdUGK9HRGtsBdYCWIJSKSnKSkXL G+HNOwLRMTg5Q== Date: Thu, 23 Sep 2021 23:19:20 +0800 From: Gao Xiang To: Chao Yu Cc: Gao Xiang , linux-erofs@lists.ozlabs.org, Liu Bo , LKML Subject: Re: [PATCH] erofs: fix misbehavior of unsupported chunk format check Message-ID: <20210923151919.GC1852@hsiangkao-HP-ZHAN-66-Pro-G1> Mail-Followup-To: Chao Yu , Gao Xiang , linux-erofs@lists.ozlabs.org, Liu Bo , LKML References: <20210922095141.233938-1-hsiangkao@linux.alibaba.com> <926fb1a9-174e-26de-c9ed-70aa0a01d394@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <926fb1a9-174e-26de-c9ed-70aa0a01d394@kernel.org> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Sep 23, 2021 at 11:09:25PM +0800, Chao Yu wrote: > On 2021/9/22 17:51, Gao Xiang wrote: > > Unsupported chunk format should be checked with > > "if (vi->chunkformat & ~EROFS_CHUNK_FORMAT_ALL)" > > > > Found when checking with 4k-byte blockmap (although currently mkfs > > That means for 4k-byte blockmap, chunkformat should be zero, right? Yeah, correct. It's a regression of 4kb chunk blockmap.. > > > uses inode chunk indexes format by default.) > > > > Fixes: c5aa903a59db ("erofs: support reading chunk-based uncompressed files") > > Cc: Liu Bo > > Cc: Chao Yu > > Signed-off-by: Gao Xiang > > Reviewed-by: Chao Yu Thanks! Thanks, Gao Xiang > > Thanks,