Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1538510rwb; Fri, 18 Nov 2022 21:51:12 -0800 (PST) X-Google-Smtp-Source: AA0mqf62q1OLq5PR+sU/RGZBbhtmODQvfTImuyVDyif5jAqwvbjC+fmNxQ6LgEW5YBz9xcPblDJW X-Received: by 2002:a17:906:6403:b0:7b2:9667:241e with SMTP id d3-20020a170906640300b007b29667241emr8631684ejm.115.1668837072034; Fri, 18 Nov 2022 21:51:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668837072; cv=none; d=google.com; s=arc-20160816; b=vhrlw6hllwKeZ7TdJXAW0g26SiCBIofrNtBrdyyG9ayHxQSROM5KwdwKmCzMv8xel/ pEE5XHZSTBjrRjkLBl165/XUmIkCwse63qZXkfEl32s9qW+pErxNIsiSuK1YR+seaG+j KxE9UbuDtlfIYpXy2JjzhqFBLBa+N9JwrpF2MXmxGuKYLyQzZzyevdIFa75lLHQRKly/ x9hrs0ivBXLMwKxc7X/tKiP0IjTFyqnqZxUeqiV7Wl4m/mmLzm0ygRbcI+BSBtHXLPrw N1U2fqIviCtWD8PKqXX9DL2MfUxsK7QIQO6/2mKyt5bzMZxQmE/Dk435qYIikVInC/PX 5pkg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:subject:user-agent:mime-version:date:message-id; bh=rlPRAVZkW0lv0j1bR7ek7n8dIpAXKQb77Rvf1EfXuh0=; b=wvQO8IsFL2U4X7C6vAxxbGGCM6RycuK811oCziGu77S8MTX6LYbTK7tEsPJcK7i6qR l6JYLt5MgbnVEFsZEkuAD6DuQBQAmz7ZVFaNuN1TFcKwvuqubGPcQKhn9yc5x1X0AFvP e6qemQhTXSx0MjypnGyuBm/u5zNlj8j3stoAeh4xWS14aQiS3FgocrE9OHsSzrde+TIZ mjq7xPMjIUkdWMl9Ip3I/RNlQavqC0SOHSpoX8Ibn2U6e8uFd9XE0JxsTdOBifaWTzDQ JGmFy4Ufo242n497NERO4X1vLD7HgQm1iP6zAaq5vbuErHINNH+2w1PqSJ/pjZIiGbod ErcQ== ARC-Authentication-Results: i=1; mx.google.com; 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; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id xh13-20020a170906da8d00b0078e2828052asi4191894ejb.638.2022.11.18.21.50.51; Fri, 18 Nov 2022 21:51:12 -0800 (PST) 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; 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; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230371AbiKSFVH (ORCPT + 90 others); Sat, 19 Nov 2022 00:21:07 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47048 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229500AbiKSFVG (ORCPT ); Sat, 19 Nov 2022 00:21:06 -0500 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C6E3B91529 for ; Fri, 18 Nov 2022 21:21:05 -0800 (PST) Received: from canpemm500009.china.huawei.com (unknown [172.30.72.53]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4NDhjP0vpxzqSMw; Sat, 19 Nov 2022 13:17:13 +0800 (CST) Received: from [10.67.109.51] (10.67.109.51) by canpemm500009.china.huawei.com (7.192.105.203) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Sat, 19 Nov 2022 13:21:03 +0800 Message-ID: <23feff35-6f2d-5cd7-57f9-ff2591a3c74e@huawei.com> Date: Sat, 19 Nov 2022 13:21:03 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.3.2 Subject: Re: [PATCH] ubifs: Fix build errors as symbol undefined To: , CC: , , , References: <20221115083335.21211-1-hucool.lihua@huawei.com> From: "Lihua (lihua, ran)" In-Reply-To: <20221115083335.21211-1-hucool.lihua@huawei.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit X-Originating-IP: [10.67.109.51] X-ClientProxiedBy: dggems705-chm.china.huawei.com (10.3.19.182) To canpemm500009.china.huawei.com (7.192.105.203) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_PASS 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 ping 在 2022/11/15 16:33, Li Hua 写道: > When CONFIG_UBIFS_FS is enable but CONFIG_UBIFS_FS_AUTHENTICATION is not set: > ERROR: modpost: "ubifs_bad_hash" [fs/ubifs/ubifs.ko] undefined! > > Fixes: 16a26b20d2af ("ubifs: authentication: Add hashes to index nodes") > Signed-off-by: Li Hua > --- > fs/ubifs/Kconfig | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/fs/ubifs/Kconfig b/fs/ubifs/Kconfig > index 45d3d207fb99..93bda1057fdc 100644 > --- a/fs/ubifs/Kconfig > +++ b/fs/ubifs/Kconfig > @@ -13,6 +13,7 @@ config UBIFS_FS > select CRYPTO_HASH_INFO > select UBIFS_FS_XATTR if FS_ENCRYPTION > select FS_ENCRYPTION_ALGS if FS_ENCRYPTION > + select UBIFS_FS_AUTHENTICATION > depends on MTD_UBI > help > UBIFS is a file system for flash devices which works on top of UBI. > @@ -91,6 +92,7 @@ config UBIFS_FS_AUTHENTICATION > select KEYS > select CRYPTO_HMAC > select SYSTEM_DATA_VERIFICATION > + select SYSTEM_TRUSTED_KEYRING > help > Enable authentication support for UBIFS. This feature offers protection > against offline changes for both data and metadata of the filesystem. >