Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp5974236pxb; Thu, 27 Jan 2022 03:52:25 -0800 (PST) X-Google-Smtp-Source: ABdhPJzJXAMpLAhGcA/v3IhFMxOE2DOFhbiWm1zGHOSjLCXGVRpmL6c39+CZ1RjGHywY1dsgh8HR X-Received: by 2002:a05:6402:1c95:: with SMTP id cy21mr3296404edb.172.1643284345716; Thu, 27 Jan 2022 03:52:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643284345; cv=none; d=google.com; s=arc-20160816; b=ZfiJWXe5Nd11/SH3T0DMK5hfxA8EHC/BNXyR8Is+4b4ekbqGxV+16j4a/vKDlO92Jq ABUqLR2UtvvDHxhusrKivTn9TAZF+o3OK5Ov+J4MqutesOqD9AIfx+svTIydbynx3poz DuUQsWRO3Ez6+aAVYUHrhpK/J6h1ydm/gCT8MkfOGBvF8TnG6pxA/WuEWVFIt9L8UB5o bGZ3k9X1SZEpuKEzf4B150C3DjGT/oBsrpSTWqFdz1M16bzCG1yC/G+/LF4j1jzCAmBG N5tTXeLEBmnzEV5JkimiawrGSULyXoOUC0H+7NfeJgghfxqa4uR7FaAh8odoTaICr5Ye KLxQ== 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=CJlbWzmC54CH4qV3GssXym9tOJHgOxIk82nn0W3IFOI=; b=Pa5jeNWJrHslwg04CsXf3TbJXcZhpC8S/6DhmtqaDcNx9D2H4xYmbstD7cs06YXmpC 77rY5mbA09FvzZEIRwG4gqOV2fCa8HVVhjt0a9DAno9d2NyNvhCoQHsKMjfJMd3Dfea/ De7Cc/G+y69AiCeNoBEp5phGzWdUbSJ6qudh67YLf091SZ8JPJtIR+dBeMI+1spPN1kE LzqV7Ld10ZGbzXNn6yalblr+CYjvshgfkITio0kb/SPVWhBHrdTpH8n76Jg5EQ4oQ9E+ WSvLcYW7iZykSODM1E13W4oxlOiTugzIiscunKhwDmglei+Un1bdeDY5X45XtwMBQL0+ qBog== 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 e7si1230059ejs.718.2022.01.27.03.52.00; Thu, 27 Jan 2022 03:52:25 -0800 (PST) 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 S236050AbiA0Ehz (ORCPT + 99 others); Wed, 26 Jan 2022 23:37:55 -0500 Received: from helcar.hmeau.com ([216.24.177.18]:60506 "EHLO fornost.hmeau.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229750AbiA0Ehy (ORCPT ); Wed, 26 Jan 2022 23:37:54 -0500 Received: from gwarestrin.arnor.me.apana.org.au ([192.168.103.7]) by fornost.hmeau.com with smtp (Exim 4.92 #5 (Debian)) id 1nCwXd-0007s1-BG; Thu, 27 Jan 2022 15:37:50 +1100 Received: by gwarestrin.arnor.me.apana.org.au (sSMTP sendmail emulation); Thu, 27 Jan 2022 15:37:49 +1100 Date: Thu, 27 Jan 2022 15:37:49 +1100 From: Herbert Xu To: Philipp Zabel Cc: linux-crypto@vger.kernel.org, kernel@pengutronix.de, "David S. Miller" Subject: Re: [PATCH] crypto: algapi - Remove test larvals to fix error paths Message-ID: References: <20220126145322.646723-1-p.zabel@pengutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On Wed, Jan 26, 2022 at 04:01:04PM +0100, Philipp Zabel wrote: > On Wed, 2022-01-26 at 15:53 +0100, Philipp Zabel wrote: > [...] > > This can happen during cleanup if the error path is taken for a built- > > in algorithm, before crypto_algapi_init() was called. > > I see this happen on ARM with CONFIG_CRYPTO_AES_ARM_BS=y since v5.16-rc1 > because the simd_skcipher_create_compat("ecb(aes)", "ecb-aes-neonbs", > "__ecb-aes-neonbs") call in arch/arm/crypto/aes-neonbs-glue.c returns > -ENOENT. I believe that is the same issue as reported in [1]. Good catch. We definitely need to fix the crash from the unregister while the algorithm is still being referenced. However, the fact that the simd create is failing is probably a bug too. Could you take a look at that aspect and whether the failure is related to the testmgr changes in question? Thanks! -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt