Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp3383977rwb; Sun, 30 Jul 2023 06:36:43 -0700 (PDT) X-Google-Smtp-Source: APBJJlGfasI1//smovvwRkmUhtQ9Gv6Xh9pZXpxMb3R9CII/s5T4HCsPfyDfbBuKJvUxnYBGY4Mc X-Received: by 2002:a05:6a20:1450:b0:131:3598:f4e9 with SMTP id a16-20020a056a20145000b001313598f4e9mr8685127pzi.32.1690724202731; Sun, 30 Jul 2023 06:36:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690724202; cv=none; d=google.com; s=arc-20160816; b=u0GJYsBOhEc5ekDQfkY+3kI6hRtEp4BDSfJogNAb/+sGFJvYTfVLEk+ZiVVxCGy8cT 6Ik/hcOGp80Ib4W8AuqQ3KLXFl96IWHtsyB1in86zDkEa9IbxoFfH5j+eSS8ZPnlMzER +uMrh7UWMx4E9srxMGryhPy9hVvzAveTkPs0cEZowo8hHrXSOCGwT5WqTSnrVUpH6JVD iYUoISmUwPD1VpcXCGLQ9pAalL03+5yVLQVIvPCJlPd5gKr1femwYQwOu6EPbvVD6m1K 6GPHyO9xygobeExIouAJSoO8gihdvu7sr7HE4l7BnQZJ8AKbr/eD9v2FRxasTh98paef YFUw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=wKmV5oKq3eQa34EEq3vhXnvcf+gTycZdUiuF4zsNDFY=; fh=8A+2kTAIF9ibnVaEgZG8oLThvIWkJm9MDWRtr0msmIg=; b=kEXxlzs/mi/pK1arDkRY4gXMoZLPjE3Ml7N8I+4UW70fhzOw6IqW1Zpo/YBBxy0+R+ Zqt2BDLxViCawUczcUshF5CMY0m3WvLpXDhIL7YdhmgPG57aFDCpk5V5h9OA/7/cFwa0 eOyq4FOuyJiPXyjVZGd9Tm2PDf6ga95X3Gey+slWaz5mdKXdzPINpVbuX2CJhmJFNOf5 grYJbi1XuHSQhAUvy83Nz7TfsDrW8Jfg5YPZYFQ2L704Mj+F6h0v96V2xtpQJGe+Tqxz ew+1/ul3oOqoeGbzVvwucjangQpI9EphFSmPFjUaByW7Vw4+TKdb5uaV62gMjamStb0d oGUQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@t-8ch.de header.s=mail header.b=oYCE3PKH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t36-20020a634624000000b0051b65f4d94asi2124223pga.484.2023.07.30.06.36.27; Sun, 30 Jul 2023 06:36:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@t-8ch.de header.s=mail header.b=oYCE3PKH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230145AbjG3Nbe (ORCPT + 99 others); Sun, 30 Jul 2023 09:31:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58520 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230002AbjG3Nb1 (ORCPT ); Sun, 30 Jul 2023 09:31:27 -0400 Received: from todd.t-8ch.de (todd.t-8ch.de [159.69.126.157]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 835CD10FA for ; Sun, 30 Jul 2023 06:31:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=t-8ch.de; s=mail; t=1690723883; bh=yo4I6s5/JIPLqK8K6k5zbNM/vTwpF+NR0NjfEi911yw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=oYCE3PKH6dTdwp7caJgSksAupi4XvmTaFkgMI9PFU+ZnueloH0T1AZRScEJBD3QSj pTvpAmLgjoc+abV5T8ZhqUqV9QNN6k2r9qv3uCRsuwePmWnS5hYkpe3kmpeJOdMX4c Ab7lPQtG3eUy169iPFFTZWhOWQKFCqk4fRrBtbww= Date: Sun, 30 Jul 2023 15:31:22 +0200 From: Thomas =?utf-8?Q?Wei=C3=9Fschuh?= To: Jingbo Xu Cc: hsiangkao@linux.alibaba.com, chao@kernel.org, huyue2@coolpad.com, linux-erofs@lists.ozlabs.org, linux-kernel@vger.kernel.org, Karel Zak Subject: Re: [PATCH v2] erofs: deprecate superblock checksum feature Message-ID: References: <20230717112703.60130-1-jefflexu@linux.alibaba.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230717112703.60130-1-jefflexu@linux.alibaba.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2023-07-17 19:27:03+0800, Jingbo Xu wrote: > Later we're going to try the self-contained image verification. > The current superblock checksum feature has quite limited > functionality, instead, merkle trees can provide better protection > for image integrity. The crc32c checksum is also used by libblkid to gain more confidence in its filesystem detection. I guess a merkle tree would be much harder to implement. This is for example used by the mount(8) cli program to allow mounting of devices without explicitly needing to specify a filesystem. Note: libblkid tests for EROFS_FEATURE_SB_CSUM so at least it won't break when the checksum is removed. > xxhash is also used in the following xattr name filter feature. It is > redundant for one filesystem to rely on two hashing algorithms at the > same time. > > Since the superblock checksum is a compatible feature, just deprecate > it now. > > Signed-off-by: Jingbo Xu > --- > changes since v1: > - improve commit message (Gao Xiang) > > v1: https://lore.kernel.org/all/20230714033832.111740-1-jefflexu@linux.alibaba.com/ > --- > fs/erofs/Kconfig | 1 - > fs/erofs/super.c | 44 +++++--------------------------------------- > 2 files changed, 5 insertions(+), 40 deletions(-) > [..]