Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp3350167rwb; Tue, 16 Aug 2022 00:58:44 -0700 (PDT) X-Google-Smtp-Source: AA6agR57a14iP+LYW0rm5+Q6D6rN3tR27ATlEGL8O0Xb9iJy4x7a2WdfvRh46WBd5EgiM2KJS/a0 X-Received: by 2002:a63:dd4b:0:b0:41d:e855:7137 with SMTP id g11-20020a63dd4b000000b0041de8557137mr17563174pgj.595.1660636724633; Tue, 16 Aug 2022 00:58:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660636724; cv=none; d=google.com; s=arc-20160816; b=QBMztmUyAAb+I4cFUXejwWgkm1IbETLfOdF6Udrhkw2zGewVP2NSaMGlcy8cFBm93s fe5F6PEpetxk7ICXkhg94Wa05YxhWEVYk6c95KYcsoWgVfmSbOR3nLRLyNLjPS0l1kk2 0d9BxDhxPDkCpkqf0wgyZKqkHsm1BXhgDFV/9zDLrnbpuf+jSVCEjNRFxpZQGPWjRFDB gsgaDeQD43UVV6V++t73PkDMtfkLTMP+pkiuj+uq06JGTg3jB94+T9mNdCK1X6QXnc/j 2UsWR0SXdTm1sjpHLrid8d3bbYpNN5ohQRCjU8j+V/J1+HVtEbhhz4Ye8LRTnFDxVt20 s27w== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=JUJQ7vkSNb+RnNIx9CGBZZIIU1Sz8rfGCe5AhhUa4PI=; b=R/hDSm2xOFYPZiLJ5aVAax+scq0QKk9Gnw94VN8rM8hRWIRb9RdDMi/sTZ9Rb3Zy/5 T90npVHu/PNKlUHxwBLmSQ4VYU4orxlLcrYwyi3ZHWut7iShR1gbXwQiXh609F49y0e3 AJGQOTjUWw1f294evC3Rt0IJJ/D0Nkeym/2DWIIT49/Q/EmYUFg9dpPWQNFdypbDZbwM HdO5gs4X1x939RD+3CHH7HDJJy3/1ZAvm7mZBfcE76qcPN+siBhdyf88kTeLeW41t+b1 CsqN9WkOze/3o+4VUpJIS1Pb6hkVKFpyw5VvPxc3LD3ubCZp4yRAapwkx7veQA1k360s b9wg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chronox.de header.s=strato-dkim-0002 header.b="Xn3/V+nG"; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-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 9-20020a630009000000b003c15242c486si13556463pga.787.2022.08.16.00.58.04; Tue, 16 Aug 2022 00:58:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-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=@chronox.de header.s=strato-dkim-0002 header.b="Xn3/V+nG"; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232036AbiHPHz7 (ORCPT + 99 others); Tue, 16 Aug 2022 03:55:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60770 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232155AbiHPHzW (ORCPT ); Tue, 16 Aug 2022 03:55:22 -0400 Received: from mo4-p01-ob.smtp.rzone.de (mo4-p01-ob.smtp.rzone.de [85.215.255.51]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C2404564C5 for ; Mon, 15 Aug 2022 22:09:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1660626589; s=strato-dkim-0002; d=chronox.de; h=References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From:Cc:Date: From:Subject:Sender; bh=JUJQ7vkSNb+RnNIx9CGBZZIIU1Sz8rfGCe5AhhUa4PI=; b=Xn3/V+nGJmQ+/XY59xgpShx7I5ZZoXENgolJX/0nVYszYAI3nt7fLoxf1J/glEKk9T dWN5TQgZErV1XoTvI0unbQng8UIE6OmM+MVMRa3KRUs+gDYTUzWasImDsRD4KFZBBiUh vVQzIs+UW+fa/8tyF2rHP5Tm2fBcIQr4gxzV8ER2Vp/Xdcu/KUSY2cIYPdtKejKiM3Wc EE/ZR/BAfR9JKydjem1xSj96TPeQUMCJHso39ThYE/RohEs+pyqaVitX56EvI7GpcsC8 /LVq3qgt5e2Yh/r2mRjIbVBvblRBnijGhmlK4u1CPAFUYQCxURv76QwxFsumpGfxaZjx ziXQ== Authentication-Results: strato.com; dkim=none X-RZG-AUTH: ":P2ERcEykfu11Y98lp/T7+hdri+uKZK8TKWEqNyiHySGSa9k9zmgLKehaO2hZDSTWbg/LOA==" X-RZG-CLASS-ID: mo00 Received: from tauon.chronox.de by smtp.strato.de (RZmta 47.47.0 AUTH) with ESMTPSA id k44a27y7G59kYqx (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits)) (Client did not present a certificate); Tue, 16 Aug 2022 07:09:46 +0200 (CEST) From: Stephan Mueller To: Eric Biggers , Herbert Xu Cc: Robert Elliott , tim.c.chen@linux.intel.com, davem@davemloft.net, linux-crypto@vger.kernel.org, toshi.kani@hpe.com, rwright@hpe.com Subject: Re: [PATCH] crypto: testmgr - don't generate WARN for missing modules Date: Tue, 16 Aug 2022 07:09:44 +0200 Message-ID: <2802022.gAprrWTQMp@tauon.chronox.de> In-Reply-To: References: <20220813231443.2706-1-elliott@hpe.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_PASS,SPF_NONE,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-crypto@vger.kernel.org Am Dienstag, 16. August 2022, 04:43:03 CEST schrieb Herbert Xu: Hi Herbert, > On Mon, Aug 15, 2022 at 02:30:13PM -0700, Eric Biggers wrote: > > Note that this is only a problem because tcrypt calls alg_test() directly. > > The normal way that alg_test() gets called is for the registration-time > > self-test. It's not clear to me why tcrypt calls alg_test() directly; the > > registration-time test should be enough. Herbert, do you know? > > The tcrypt code predates testmgr. So at the beginning we only had > the enumerative testing. Registration-time testing was added later. > > We could remove the enumerative testing, but I think the FIPS people > have grown rather attached to it because it ticks some sort of a box > at boot-time. > > Stephane, would it be a problem for FIPS if we simply got rid of the > enumerative testing in tcrypt and instead relied on registration-time > testing? The tcrypt code has only one purpose for FIPS: to allocate all crypto algorithms at boot time and thus to trigger the self test during boot time. That was a requirement until some time ago. These requirements were relaxed a bit such that a self test before first use is permitted, i.e. the approach we have in testmgr.c. Therefore, presently we do not need this boot-time allocation of an algorithm via tcrypt which means that from a FIPS perspective tcrypt is no longer required. > > Cheers, Ciao Stephan