Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp962905pxp; Wed, 16 Mar 2022 22:46:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzvAjCUKvLmxzBoyYKbawPkAGH8L9uNRZql/NuoJKN9wnAJRXcWttZ7kjj9ThNo0KPJe+We X-Received: by 2002:a17:902:7608:b0:151:849c:5345 with SMTP id k8-20020a170902760800b00151849c5345mr3506437pll.124.1647496015277; Wed, 16 Mar 2022 22:46:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647496015; cv=none; d=google.com; s=arc-20160816; b=odXDnjH136IATiFdFQjiNS7VsJB3mbyr7WeGythi82j27XrJDsxblvUN/mnpP0lb88 r46GDI0qV8bvwIELRqRamEvnFSF8Nsq+3rU7SX4uF5Pm/pTLVZo2zlSb6sIptbNHqPxX EwogMe150qKYzzxypWNx/YCQ6KtnWeeCq3xooD6jdcB6vNGnr6aU0uWlYM7uyVi9hmkA P1OTZu1BQSvhGcIStlv1i/TULJEcO2xk4RWLG0D1jnPRv4QgMIVjso6XX5aAHJi+6ENg fF4fHvVEXcIp2LbSMhyKIfEG9vtk8/q0NqlsuVbreQEv1MWd9rTQt5ltTa6m4q7io7TN 5L8A== 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=MuHa3SHHMP8RCYVzDlGS+nw1paaM8mH+s8Tg/ahRpYo=; b=bFHUZtzNoWi8jaY5+AzZHbIrkkoJ/qelnk1X1XOcHFbupggOi7uwJbyl3JMOYbzwAj BkMXbysuyxA5RV/7gcVohZvKHYG+XSJKk8IZRihwRcLqjEiAxvzx5er1X45Appi7FHGF dGJZuczhOQNJPyUOCJE55NdCpQ390ZokpR9xjI3ZdNJsYdpuwbbZ6/Hs9Ohnad4oYl8a 0cyq+oF0SXZKcPV9ijGrbrowUZC2DOVMNgsnOsfsxx6jZ0c4ZTdnGsbCpd/jnwKoE7yQ gvCeBADpETP5mh8z27vRbKizjjMBu1EobvtvfKL9R4zwqdwg0MBLxFO6cLBNuedQ2OOT cz1A== ARC-Authentication-Results: i=1; mx.google.com; spf=softfail (google.com: domain of transitioning linux-crypto-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id z15-20020a056a00240f00b004e1c208bc3csi4156743pfh.52.2022.03.16.22.46.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Mar 2022 22:46:55 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-crypto-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; spf=softfail (google.com: domain of transitioning linux-crypto-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id D166AE6160; Wed, 16 Mar 2022 21:41:46 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243024AbiCPVpn (ORCPT + 99 others); Wed, 16 Mar 2022 17:45:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52092 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1351384AbiCPVpl (ORCPT ); Wed, 16 Mar 2022 17:45:41 -0400 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8F8D31125 for ; Wed, 16 Mar 2022 14:44:25 -0700 (PDT) Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nUbRM-0000yn-KP; Wed, 16 Mar 2022 22:44:20 +0100 Received: from [2a0a:edc0:0:900:1d::77] (helo=ptz.office.stw.pengutronix.de) by drehscheibe.grey.stw.pengutronix.de with esmtp (Exim 4.94.2) (envelope-from ) id 1nUbRM-00185O-0u; Wed, 16 Mar 2022 22:44:18 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1nUbRJ-009dKV-Vb; Wed, 16 Mar 2022 22:44:17 +0100 Date: Wed, 16 Mar 2022 22:44:17 +0100 From: Uwe =?utf-8?Q?Kleine-K=C3=B6nig?= To: Herbert Xu Cc: Simo Sorce , Eric Biggers , Linux Crypto Mailing List , kernel@pengutronix.de, Guenter Roeck , Vladis Dronov Subject: Re: [v2 PATCH] crypto: api - Fix built-in testing dependency failures Message-ID: <20220316214417.khho2qno76bby3qm@pengutronix.de> References: <20210913071251.GA15235@gondor.apana.org.au> <20210917002619.GA6407@gondor.apana.org.au> <20211026163319.GA2785420@roeck-us.net> <20211106034725.GA18680@gondor.apana.org.au> <729fc135-8e55-fd4f-707a-60b9a222ab97@roeck-us.net> <20211222102246.qibf7v2q4atl6gc6@pengutronix.de> <20211229110523.rsbzlkpjzwmqyvfs@pengutronix.de> <20220316163719.ud2s36e5zwmtmzef@pengutronix.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="xg3yruzcshbn6abc" Content-Disposition: inline In-Reply-To: <20220316163719.ud2s36e5zwmtmzef@pengutronix.de> X-SA-Exim-Connect-IP: 2a0a:edc0:0:c01:1d::a2 X-SA-Exim-Mail-From: ukl@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-crypto@vger.kernel.org X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 --xg3yruzcshbn6abc Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Mar 16, 2022 at 05:37:19PM +0100, Uwe Kleine-K=F6nig wrote: > On Wed, Mar 16, 2022 at 01:10:41PM +1200, Herbert Xu wrote: > > On Wed, Dec 29, 2021 at 12:05:23PM +0100, Uwe Kleine-K=F6nig wrote: > > > On Wed, Dec 29, 2021 at 01:05:54PM +1100, Herbert Xu wrote: > > > > On Wed, Dec 22, 2021 at 11:22:46AM +0100, Uwe Kleine-K=F6nig wrote: > > > > > > > > > > I still experience a problem with the patch that got > > > > > adad556efcdd42a1d9e060cbe5f6161cccf1fa28 in v5.16-rc1. I saw ther= e are > > > > > two commit fixing this one ( > > > > >=20 > > > > > cad439fc040e crypto: api - Do not create test larvals if manager= is disabled > > > > > e42dff467ee6 crypto: api - Export crypto_boot_test_finished > > > > >=20 > > > > > ) but I still encounter the following on 2f47a9a4dfa3: > > > >=20 > > > > Perhaps you missed the last fix? > > > >=20 > > > > commit beaaaa37c664e9afdf2913aee19185d8e3793b50 > > > > Author: Herbert Xu > > > > Date: Fri Nov 5 15:26:08 2021 +0800 > > > >=20 > > > > crypto: api - Fix boot-up crash when crypto manager is disabled > > >=20 > > > As 2f47a9a4dfa3 includes this commit, this is not the problem. > >=20 > > Using the config snippet in this email thread I was unable to > > reproduce the failure under qemu. Can you still reproduce this > > with the latest upstream kernel? If yes please send me your complete > > config file. >=20 > Still happens on 5.17-rc8, config attached. I debugged that a bit further because the problem is in the way while debugging another bug. What I learned is that without CONFIG_DEBUG_BUG_VERBOSE a BUG results in hitting an undefined instruction e7f001f2 on ARM. After enabling CONFIG_DEBUG_BUG_VERBOSE this gets much more helpful: [ 1.630337] kernel BUG at crypto/algapi.c:461! Digging a bit deeper the problem is that simd_skcipher_create_compat() fails for aes_algs[1] in arch/arm/crypto/aes-neonbs-glue.c with -ENOENT and then aes_exit -> simd_skcipher_free -> crypto_unregister_skcipher -> crypto_unregister_alg stumbles over refcount_read(&alg->cra_refcnt) being 2. Is this enough to understand the actual problem? Best regards Uwe --=20 Pengutronix e.K. | Uwe Kleine-K=F6nig | Industrial Linux Solutions | https://www.pengutronix.de/ | --xg3yruzcshbn6abc Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEfnIqFpAYrP8+dKQLwfwUeK3K7AkFAmIyWi4ACgkQwfwUeK3K 7And/Af+I6LcoYaManGsaqRlBLHG5kHAPjyg2Zc8IOLjhw6QmjL8Kjf5fsXQjLMi PO8/5S5VmlVXg1qPiULAdIJaohoZTbhfwXfGx/zg2kUXgC5uw+8TtqH/3nTEyePe HOChzjOuBT4v4WZP5blpEUHCgZeEBdBCZp1YNXZXpiyVEliw3Oy6JLBXwYYxBQCH XOXoMMEmzqxFXGlFtj7A7gBiRAshMDBgSXRmery0CchExdzFmphtH7Rj5Qf2YeYq UwkoeI0wb1wvcj/b00xJJ9PBWbomnRL04JYS27ksLHUUmwsglAv/WESDetLZt46P f/ZcS77ckjjJFOUypkIRbBkCxbFHAA== =6LUO -----END PGP SIGNATURE----- --xg3yruzcshbn6abc--