Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp1718906pxp; Thu, 17 Mar 2022 15:24:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwnAer1ysuSyap+evmSlUDOE8NCchMED/XZXgqDyruWTukMZJs+ElgPAiEAz2uHAIDBtrdP X-Received: by 2002:a17:90b:250f:b0:1bc:e520:91e6 with SMTP id ns15-20020a17090b250f00b001bce52091e6mr18493285pjb.43.1647555853734; Thu, 17 Mar 2022 15:24:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647555853; cv=none; d=google.com; s=arc-20160816; b=U6wq6gFHs2eysBXt3JrA3GXL/0zHdgWrv4c6x5y8JAjnKhbqwSMrhOdn59NZh0BHb9 KZGuKcJekwmEADkzrZ+14h5Xin4/EduMNK5hMMRkcrr1yqLcqYv8z3oJ3TDJkr2b0srM xpYzAlXpCP2wammhvU/qZ0ENjPBQHXcfLhxOMS4aDeYmHMl173BthCZE2G6+g5WPkBHB f3r1jd9JH7hg4YSbD/rD6GU5m5ZV7HrcxGN2HUmmnvDS23qOa68ZC8G9y1WpVK7Dg7b9 AKulM6OGIxAAkVkzmQNdtLoMgRq3UZOliAhg4sUW8jvR8L3Si52g7qvnWTqmvlFPz4Cz Kfdw== 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=1AtFjoyVQrIp0lfuRnm3sqVIBMElXdjXaHNbXbV7HcU=; b=wgpLWyESa2ypH4Ms0uLpdwvATrWr6CxsB1WMULUXoQPnLlHTR2xo0/5mEX9+mN4bCu WIObFtol9hq8mk630TNjYehygwhpMrserGskke1piNV4O9W9xuH4wruhcz7u/50IPkig Pxe2cknqvjZMxbIIDqxIBbSVlB87QTb/CmGcLhNkoCB2980ENkm6pAArOL13YhuZj5iY aodBeObBPCJ/FmAYrt3inD666eVlg/fOzl/fCkCAONt0GRDwPzuEKRpg5EgOUsKxzaMW eWeRQBvsUcWpwL1BgOkhO/VIFtAj5tDQoVEvAuW+wiH9wkT/pLr22AO4WtMQ3M+2G3FC jAJA== 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 w18-20020a639352000000b003816043ef0csi3374549pgm.257.2022.03.17.15.23.47; Thu, 17 Mar 2022 15:24:13 -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 S229669AbiCQWQx (ORCPT + 99 others); Thu, 17 Mar 2022 18:16:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39902 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229469AbiCQWQx (ORCPT ); Thu, 17 Mar 2022 18:16:53 -0400 Received: from fornost.hmeau.com (helcar.hmeau.com [216.24.177.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7753AF3282 for ; Thu, 17 Mar 2022 15:15:35 -0700 (PDT) Received: from gwarestrin.arnor.me.apana.org.au ([192.168.103.7]) by fornost.hmeau.com with smtp (Exim 4.92 #5 (Debian)) id 1nUyP1-00079d-9J; Fri, 18 Mar 2022 09:15:28 +1100 Received: by gwarestrin.arnor.me.apana.org.au (sSMTP sendmail emulation); Fri, 18 Mar 2022 10:15:26 +1200 Date: Fri, 18 Mar 2022 10:15:26 +1200 From: Herbert Xu To: Philipp Zabel Cc: Uwe =?iso-8859-1?Q?Kleine-K=F6nig?= , Simo Sorce , Eric Biggers , Linux Crypto Mailing List , kernel@pengutronix.de, Guenter Roeck , Vladis Dronov , Ard Biesheuvel , "David S. Miller" Subject: Re: [PATCH] crypto: arm/aes-neonbs-cbc - Select generic cbc and aes Message-ID: References: <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: 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 Thu, Mar 17, 2022 at 10:16:16AM +0100, Philipp Zabel wrote: > > What commit adad556efcdd caused was allowing the error path in > late_initcall(aes_init) to be hit before > late_initcall(crypto_algapi_init) would start the tests. OK I know what's going on now. Yes the registration had always failed but it was silent so nobody noticed. What adad556efcdd did different was to create larvals pointing to the algorithms which will hang around until all tests complete and that is what triggers the crash during unregister (that bug during unregister has always existed too, it's just that it was pretty much impossible to trigger as usually there aren't any third parties allocating tfms during the init call). I'll continue to work on the unregister crash. Thanks, -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt