Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp10439924rwb; Fri, 25 Nov 2022 04:46:43 -0800 (PST) X-Google-Smtp-Source: AA0mqf6Ii1GS5+6jGXWzRh8Wcx+44WTI7aLxFchSyS445RSOM321ycavp4gXSfagFu54eDILZ4CM X-Received: by 2002:a17:906:49c2:b0:7aa:23ac:608e with SMTP id w2-20020a17090649c200b007aa23ac608emr15392770ejv.450.1669380402948; Fri, 25 Nov 2022 04:46:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669380402; cv=none; d=google.com; s=arc-20160816; b=mMkTj/akiLEhlCwqlALDXl4Lu/9cvJ9hpOuUnHKjOtt1Xr7R73fsPoOqSfB2hhDfeD 4O6BwiOqU+Md4s1tKc5+BHcSthmKhMmj95iI8YsUgaEsVIStdtqCSonFmX9ZFn23tzoz lrKcm1NXCRiDz79rI6lvyDIVCUNLAqA5UUP4MNnwPRXE5BUgFQYTh122QTtFmbkEAD/J XfsAeZs+/+YJNpij3Y6+xolUsB2eeYCHkqldpRe1fd+gTcFvOV1vL1rGZx74XigVCdL8 bTcrdNnoPQ5OARc9p5QoWjRrBJhSdyN+0uJo3+q+euyz3vywgAyM+Jby043iC+koS/OP lJbQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=ybSOQI0ikBobTb6iwMn3i0oTsrjg3ST1dvjjiBfvEbg=; b=jE75OselKVlL4VASlEkUnW9m0Hx0ldn+NoRhG7oEdsuCkr7MipXUgFd00vdmnLIzB/ uUe8qi6HR31pOk6BXeIjB9rKAjRCitZicuJCP0ciQEWzSnmEYGZwKwNU2ZCmIi1kz/Zr JVUIBt65MmxA6j8HwIw2NVY1rSWY1ZgChzqOE7uRlqBY77/0CUNUkuYK6N/K7udwzFLN FIivmxjINCjtbYICXxWMpLhtYkWOdaCI0pdufIYwFLeIyXNNp3eQXb/oskyQJkTT6B7K Np1insFKO8Stlk3yf3j8LGkENsO4QOb2UchS68ZhBTpIaDT02n/phizL7U1ovJVSi47o T5eQ== 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=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id xi7-20020a170906dac700b007a9b7e68634si3650224ejb.515.2022.11.25.04.46.21; Fri, 25 Nov 2022 04:46:42 -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=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229953AbiKYMSv (ORCPT + 87 others); Fri, 25 Nov 2022 07:18:51 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42906 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229894AbiKYMSt (ORCPT ); Fri, 25 Nov 2022 07:18:49 -0500 Received: from out30-132.freemail.mail.aliyun.com (out30-132.freemail.mail.aliyun.com [115.124.30.132]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5EBCE3054A; Fri, 25 Nov 2022 04:18:48 -0800 (PST) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R161e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018045176;MF=tianjia.zhang@linux.alibaba.com;NM=1;PH=DS;RN=11;SR=0;TI=SMTPD_---0VVfOILX_1669378724; Received: from localhost(mailfrom:tianjia.zhang@linux.alibaba.com fp:SMTPD_---0VVfOILX_1669378724) by smtp.aliyun-inc.com; Fri, 25 Nov 2022 20:18:45 +0800 From: Tianjia Zhang To: Mimi Zohar , Dmitry Kasatkin , Paul Moore , James Morris , "Serge E. Hallyn" , "Jason A. Donenfeld" , Herbert Xu , linux-integrity@vger.kernel.org, linux-security-module@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Tianjia Zhang Subject: [PATCH] ima: Fix hash dependency to correct algorithm Date: Fri, 25 Nov 2022 20:18:40 +0800 Message-Id: <20221125121840.88176-1-tianjia.zhang@linux.alibaba.com> X-Mailer: git-send-email 2.24.3 (Apple Git-128) MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-9.9 required=5.0 tests=BAYES_00, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2, SPF_HELO_NONE,SPF_PASS,UNPARSEABLE_RELAY,USER_IN_DEF_SPF_WL 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 Commit d2825fa9365d ("crypto: sm3,sm4 - move into crypto directory") moves the SM3 and SM4 stand-alone library and the algorithm implementation for the Crypto API into the same directory, and the corresponding relationship of Kconfig is modified, CONFIG_CRYPTO_SM3/4 corresponds to the stand-alone library of SM3/4, and CONFIG_CRYPTO_SM3/4_GENERIC corresponds to the algorithm implementation for the Crypto API. Therefore, it is necessary for this module to depend on the correct algorithm. Fixes: d2825fa9365d ("crypto: sm3,sm4 - move into crypto directory") Cc: Jason A. Donenfeld Cc: stable@vger.kernel.org # v5.19+ Signed-off-by: Tianjia Zhang --- security/integrity/ima/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/security/integrity/ima/Kconfig b/security/integrity/ima/Kconfig index 7249f16257c7..39caeca47444 100644 --- a/security/integrity/ima/Kconfig +++ b/security/integrity/ima/Kconfig @@ -112,7 +112,7 @@ choice config IMA_DEFAULT_HASH_SM3 bool "SM3" - depends on CRYPTO_SM3=y + depends on CRYPTO_SM3_GENERIC=y endchoice config IMA_DEFAULT_HASH -- 2.24.3 (Apple Git-128)