Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp3262332rwb; Mon, 15 Aug 2022 22:38:03 -0700 (PDT) X-Google-Smtp-Source: AA6agR5Kyk3fE/1hWyXJo74quT3EJ9BX+HX7vnZXZIkWMglljmcXL8/Hm+VYbWN751Eeljg1PTKL X-Received: by 2002:a17:903:2611:b0:170:953d:e03e with SMTP id jd17-20020a170903261100b00170953de03emr20959771plb.49.1660628283267; Mon, 15 Aug 2022 22:38:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660628283; cv=none; d=google.com; s=arc-20160816; b=wv1iGIkpe39UeKSasXWrCJSvywrAN3xTYh7Nv4KnPI8tb/h5tyMdH8/Q4U/8LYtbT5 rLX0AK2kv+jY6rwJe939HB2FuV5M+D9rGUJZHeLAupQGmKkbhQ7dbRU4LqD93EYFSVFG xedHsn5++1wmR7Yf8sffQWCVEEBZ/Yxztq0ht7FVumw87mPQKYvcVSeFpjM9+lyso1M6 KeQswHUn5/OyFzxui1KKdXxVxLOsMtjv992vCRdzjxb1Npm+LpvA6FZIEupilB1Spynh l9gjHbTzIDKDeN0dBgyDEDycTxQ/QT6YGxIP0mkQfxYU/cluHkixJ0hMdqPo/dlKMJ9Z sqxQ== 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=RiawTJb5rJimYuHLWmbJTfx1mhNCn6ZoK82m+W5xjEs=; b=OEvmHWE3ySDr2+SExjXpswIUACTyNkwvxUQ+gwBFnR1lVyKEb9lOGG6t1Dk+t8B8fB qfyIQ46B+vqK+uUj13RpjgEjEz+7WQmX9v3PFpVdYVRl99tzRbK0ObLATAxByyracLot gT3nrwZbsvxov6BLbm7e0N8HAqeqkCEZH7yNd//FKCyxWtfVWzm+H6h63WVnSsI6DVNV VR1/3hwQ742vtleIIG7LiOmPnI2Lpgs1atSAe9FUeFDX4xqobjMlShUTZE/W7g5WLEa0 bFysbUdLoOHguNGo52bEwhFmxZqiYKPl0pzu3YoFKbXRrfeof01qlVPCkMb41GMP4+6X OQ+Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ao+Fabt9; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k7-20020a17090a404700b001f0fb79b75csi12993545pjg.81.2022.08.15.22.37.40; Mon, 15 Aug 2022 22:38:03 -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=@kernel.org header.s=k20201202 header.b=ao+Fabt9; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232689AbiHPFO5 (ORCPT + 99 others); Tue, 16 Aug 2022 01:14:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54214 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230349AbiHPFOi (ORCPT ); Tue, 16 Aug 2022 01:14:38 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 889421EB7DC for ; Mon, 15 Aug 2022 14:30:18 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 4C841B811F9 for ; Mon, 15 Aug 2022 21:30:16 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B79E0C433C1; Mon, 15 Aug 2022 21:30:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1660599014; bh=feO2cxwFis6LOaZ6FmU3TAcTU6imAQByNOy/kl/1Ss0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=ao+Fabt9/JBtI1L/NvKuJC1KAdr+9q2qZNH1Y6gbQI/uKbQDvFQbluCT+ZbMkLwHU 7Lj7AQaGuGbnukMBocd1aYhr9HPaz63Bo9lM219AvshUjjoi3E2M6UZIf48BtTiX3A CI4+8wnTXSfpxkyjVAPH94tpay94PAqwLp8yonj5DuIWeclYXIpAqCZeSxKI7AqY3W feJGmCdi1nZPZDXu0hHu321k/d3ob1XLDRWhcZeAhD+H+6xZIOWZPhkvXh5+7VFxvf MaB8CZocsSnbyPNMQra/6URP4IsUBjrnBA1StKYFgbgz83nCa2wboiAV377Qlor21v pKd02AJ5ajntQ== Date: Mon, 15 Aug 2022 14:30:13 -0700 From: Eric Biggers To: Robert Elliott , Herbert Xu Cc: 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 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: <20220813231443.2706-1-elliott@hpe.com> X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 Sat, Aug 13, 2022 at 06:14:43PM -0500, Robert Elliott wrote: > This userspace command: > modprobe tcrypt > or > modprobe tcrypt mode=0 > > runs all the tcrypt test cases numbered <200 (i.e., all the > test cases calling tcrypt_test() and returning return values). > > Tests are sparsely numbered from 0 to 1000. For example: > modprobe tcrypt mode=12 > tests sha512, and > modprobe tcrypt mode=152 > tests rfc4543(gcm(aes))) - AES-GCM as GMAC > > The test manager generates WARNING crashdumps every time it attempts > a test using an algorithm that is not available (not built-in to the > kernel or available as a module): 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? - Eric