Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp3333520rwb; Tue, 16 Aug 2022 00:30:33 -0700 (PDT) X-Google-Smtp-Source: AA6agR5fdDSAgrNxYEQZykzNe0Smrla8Q70B/A1v4mIhbfqS5jbkcrK9OkH+0qSvpU0JKf7kuSTL X-Received: by 2002:a17:907:a40f:b0:730:c4ce:631c with SMTP id sg15-20020a170907a40f00b00730c4ce631cmr12166444ejc.362.1660635033558; Tue, 16 Aug 2022 00:30:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660635033; cv=none; d=google.com; s=arc-20160816; b=mE+brd7zyijDAhQ3wKXji2FO8imPwBkID26u2IGmGOkFMY8cGDh/iSpaIVUhZgcoqz OZtRhinqrnn6tsd6BSkgx/OkyA0e81Po3wnbHlvF3mc6vbANkYQfxk7qXUcG+CTiO+9j VfggJSZTjS1kYvzv5WWZSyLIHCHCUKuitjx+Ri6rb5PcUBw6D2FKGNRdn4tzU51Y74Co ld5aJGf8wdeWyqJl0/DjPMJx6KaV8hCzi5qii7PJG2H8xb1AYcskwre+UQ70pendwJQN pzp+rpgZIaRPF1Q8mAXKo/Mr+bKcbMi3LgEL8ti9qgtK+/+BFZEoKpQRbqN5mUIBS0Va HsKw== 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; bh=3agagT9TgeTxjbC2BjW/FnFCueoPQWjNcNX5/XeJv4g=; b=rEB+oHzYz78j0MsJwr7+peEXSWFsmvuENlY3QTs21hm2kQdvKE/iHXMukN+U9+cAdq plKJ0OTN59aG0UvTZLWc9YAUfuQpR2yArOciuTStno/cypJelpPwpklt1dR9K+Mu5y3C /nvQauK+I7ej9Qx1vTcJYaZZOVKILLWBgC//kJI4OYxotzdNSLwUMrkkgq7o43Mby6t3 6XTjOPmHe36VxUQkiWXsldr2GU4g3hdB1grfEOvaKCMTUBMF5bg0qVTN+1jJYRiY/TMf 43RpLQVlOJUdvfgpyYdEPxOSqDiBDBPDWGGIl1rTckuFV84cZpdiaRJXxl30Y/hQYtVU Vs8A== ARC-Authentication-Results: i=1; mx.google.com; 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 sh38-20020a1709076ea600b0072b83c76e0esi10099971ejc.252.2022.08.16.00.29.58; Tue, 16 Aug 2022 00:30:33 -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; 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 S231671AbiHPHHg (ORCPT + 99 others); Tue, 16 Aug 2022 03:07:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59172 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231589AbiHPHHT (ORCPT ); Tue, 16 Aug 2022 03:07:19 -0400 Received: from fornost.hmeau.com (helcar.hmeau.com [216.24.177.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C09799FAB9 for ; Mon, 15 Aug 2022 19:43:19 -0700 (PDT) Received: from gwarestrin.arnor.me.apana.org.au ([192.168.103.7]) by fornost.hmeau.com with smtp (Exim 4.94.2 #2 (Debian)) id 1oNmXn-00BSZV-BK; Tue, 16 Aug 2022 12:43:04 +1000 Received: by gwarestrin.arnor.me.apana.org.au (sSMTP sendmail emulation); Tue, 16 Aug 2022 10:43:03 +0800 Date: Tue, 16 Aug 2022 10:43:03 +0800 From: Herbert Xu To: Eric Biggers Cc: Robert Elliott , tim.c.chen@linux.intel.com, davem@davemloft.net, linux-crypto@vger.kernel.org, toshi.kani@hpe.com, rwright@hpe.com, Stephan Mueller Subject: Re: [PATCH] crypto: testmgr - don't generate WARN for missing modules Message-ID: References: <20220813231443.2706-1-elliott@hpe.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,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-crypto@vger.kernel.org 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? Cheers, -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt