Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp1125424pxv; Thu, 22 Jul 2021 23:44:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxJ/okeWQhtFxW9DLaBqfRwVOIaMKKbguZM4OJJFarymkpxHpKeFr0m3vA+VsjsfaOeqlxR X-Received: by 2002:a05:6402:2789:: with SMTP id b9mr3803752ede.201.1627022667147; Thu, 22 Jul 2021 23:44:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627022667; cv=none; d=google.com; s=arc-20160816; b=CplIgMjCHnNcQkuJ5aJVBm830S206KMQeuum0ht2i3fB/8SWI5+rVK3Buwa79/56gx E0tVdkRl9jJi1vAdiI8l72mbyGGpRpi0i5W9oZc4zYDHFkVZk8Pn/OfmDQbGgk6rCbJi pZmLfPmx1pcxROWyoWtqSdenLOFNYc0M/g8rviAcGJTSvq6hAXu8ikoFpawvCrh7UYvh Vuw7FJZTNrTQ3zPahMJ82gD74rSYAekk//k23IsQMWbcA6XnBXqRv4SJl/dkxxSEn1fA 7gWJn5FVSgPgogrF5i04epHbLN/HNqKHCLuCH55ds4eSnqBofVMKBeSi+Sik5oSpiTYd nrxQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=WAbrDBGlXOc4X7ABYkTm8bNWxHzmGnxBzNoleo8Ev+U=; b=lPCmn4qX6+TE61WixceJEyJRs19f9iwW3ZWAiIAcx0uv1b1qDV/CDEV13Bt0cI/VVb 7RQ7J4IomodxzYviiwbBURQHNq6BpFAiDU6XNGYxf07aIFGMFXcxvhBehkCsSmJb2qBr Rkp6GB3AynMfl/KmG4thuESw7KkXAMwVge7fQZJeyZ+n3VRimF0xql2hi+97eT/1G7S2 7idbjowW3zer3KLrl8ZhojK/DiudVMScd8BMmrSrHlherL/ETY7fh/EedexiP8/luGZy 5JJRUwNYIf6SbrlZnanJgd2tsEtMGfiIGr6ipfrbJRWaslBNSbtGFYCeuXn9sECS9q12 Pq/A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h9si31380350ede.105.2021.07.22.23.43.41; Thu, 22 Jul 2021 23:44:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233988AbhGWGDD (ORCPT + 99 others); Fri, 23 Jul 2021 02:03:03 -0400 Received: from helcar.hmeau.com ([216.24.177.18]:51488 "EHLO deadmen.hmeau.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233973AbhGWGDD (ORCPT ); Fri, 23 Jul 2021 02:03:03 -0400 Received: from gondobar.mordor.me.apana.org.au ([192.168.128.4] helo=gondobar) by deadmen.hmeau.com with esmtp (Exim 4.92 #5 (Debian)) id 1m6ouC-00076e-Fk; Fri, 23 Jul 2021 14:43:32 +0800 Received: from herbert by gondobar with local (Exim 4.92) (envelope-from ) id 1m6ou8-00025Z-KF; Fri, 23 Jul 2021 14:43:28 +0800 Date: Fri, 23 Jul 2021 14:43:28 +0800 From: Herbert Xu To: Daniel Latypov Cc: davem@davemloft.net, linux-crypto@vger.kernel.org, brendanhiggins@google.com, davidgow@google.com, linux-kernel@vger.kernel.org, kunit-dev@googlegroups.com Subject: Re: [RFC v1 1/2] crypto: tcrypt: minimal conversion to run under KUnit Message-ID: <20210723064328.GA7986@gondor.apana.org.au> References: <20210715213138.1363079-1-dlatypov@google.com> <20210715213138.1363079-2-dlatypov@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210715213138.1363079-2-dlatypov@google.com> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On Thu, Jul 15, 2021 at 02:31:37PM -0700, Daniel Latypov wrote: >> == Questions == > * does this seem like it would make running the test easier? I don't mind. tcrypt these days isn't used so much for correctness testing. It's mostly being used for speed testing. A secondary use is to instantiate templates. > * does `tvmem` actually need page-aligned buffers? I think it may be needed for those split-SG test cases where we deliberately create a buffer that straddles a page boundary. > * I have no clue how FIPS intersects with all of this. It doesn't really matter because in FIPS mode when a correctness test fails the kernel panics. > * would it be fine to leave the test code built-in for FIPS instead of > returning -EAGAIN? The returning -EAGAIN is irrelevant in FIPS mode. It's more of an aid in normal mode when you use tcrypt for speed testing. Thanks, -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt