Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp3942594pxb; Sat, 6 Nov 2021 03:44:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxgoksKX2iVD1p8+lkuU0KHYg1gcAsGPXFyzuLFDDFjJTyLE3BcBCPGYSk5XsrSji4C1vDo X-Received: by 2002:a6b:c403:: with SMTP id y3mr3687709ioa.21.1636195492589; Sat, 06 Nov 2021 03:44:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1636195492; cv=none; d=google.com; s=arc-20160816; b=kWEmEQXBQHqIy5PQ6sU7dlC4D3caY0sMPZDE0BwVciIfL6eNremR49JTGFk6hY2EM3 elBXJNaEoteuQf/fv8D7ym+ZH0jMonm7f738JxYkqFBPY10ORgIN8uPe65NJ3I6fCSTa wMhGT3KJIlp0GHJik9IEbWjfrpaHfF5HvX+ti7U/8iN5HTJtIsKeZHfvs4oU/bvY/HP6 ZeSh/w9LFBYOCsXqC3MnWN57ZV6+CU5XcoeenCl8YoM75xe4YsvPGfshgR3CPLNr6Xzm DQaNbYjY2JGkuFyfjCt3mG2XBasvz5B5CxVL0scZXOquDH+wVLWpkDc5l7LcWTFIoyMb +5Nw== 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=KFcandMpRzjOpWNdtfCarl5hjs6y5rH2tWa2n5svQ3I=; b=rB/W8pQqCSbUw8lOAJkbJ5m0AbNaG7k3+gz5rH91ig/fBqmSzH5w7Bw6TJQPmW/zWo F6/12UFb59Gn9JlgUv2fRWqOkb1oknL4kXIl6/xhkSjdfKjA2OBHL+sTT9LE7EcjSvcY pXdiuyWWs3xaOjhkXCyiNqhHOeXnE4d79yog0ZvNn8LgR7RQZr1k/sYI3hF5eymwRnpD ms9yKQ2bNGh0GE90KctgW+sCwE+/8EhEvVc7dymdX5Cnvv4OFMPAuRIbMefartoD6Hbj w3ZUKs7oKiD7gEYlmox3pmboptEAnB2Ua9zJaGV0Bs/msgJEby0XKBXtEus1GOf46VG0 9fVw== 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 v14si26409094ilu.170.2021.11.06.03.44.40; Sat, 06 Nov 2021 03:44:52 -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 S233397AbhKFDuI (ORCPT + 99 others); Fri, 5 Nov 2021 23:50:08 -0400 Received: from helcar.hmeau.com ([216.24.177.18]:56588 "EHLO deadmen.hmeau.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229500AbhKFDuI (ORCPT ); Fri, 5 Nov 2021 23:50:08 -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 1mjCfu-00064V-F8; Sat, 06 Nov 2021 11:47:26 +0800 Received: from herbert by gondobar with local (Exim 4.92) (envelope-from ) id 1mjCft-0004rm-8J; Sat, 06 Nov 2021 11:47:25 +0800 Date: Sat, 6 Nov 2021 11:47:25 +0800 From: Herbert Xu To: Guenter Roeck Cc: Linux Crypto Mailing List , Vladis Dronov , Simo Sorce , Eric Biggers Subject: Re: [v2 PATCH] crypto: api - Fix built-in testing dependency failures Message-ID: <20211106034725.GA18680@gondor.apana.org.au> References: <20210913071251.GA15235@gondor.apana.org.au> <20210917002619.GA6407@gondor.apana.org.au> <20211026163319.GA2785420@roeck-us.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20211026163319.GA2785420@roeck-us.net> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On Tue, Oct 26, 2021 at 09:33:19AM -0700, Guenter Roeck wrote: > Hi, > > On Fri, Sep 17, 2021 at 08:26:19AM +0800, Herbert Xu wrote: > > When complex algorithms that depend on other algorithms are built > > into the kernel, the order of registration must be done such that > > the underlying algorithms are ready before the ones on top are > > registered. As otherwise they would fail during the self-test > > which is required during registration. > > > > In the past we have used subsystem initialisation ordering to > > guarantee this. The number of such precedence levels are limited > > and they may cause ripple effects in other subsystems. > > > > This patch solves this problem by delaying all self-tests during > > boot-up for built-in algorithms. They will be tested either when > > something else in the kernel requests for them, or when we have > > finished registering all built-in algorithms, whichever comes > > earlier. > > > > Reported-by: Vladis Dronov > > Signed-off-by: Herbert Xu > > > > I can not explain it, but this patch causes a crash with one of my boot > tests (riscv32 with riscv32 virt machine and e1000 network adapter): > > [ 9.948557] e1000 0000:00:01.0: enabling device (0000 -> 0003) Does this still occur with the latest patch I sent yesterday? Thanks, -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt