Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp1502429lqo; Sat, 18 May 2024 06:08:06 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWRwO9q15X5ngrU0miX/3B71aC4l3QMnAd2R+KUmWNUlapJhQqK+AG9ieUY82xdW1a0SKphBsIj8dEATUWdhL0JctRDClX3eIvmnUYu2A== X-Google-Smtp-Source: AGHT+IEwhIoJoqj7YbZp8z4G54/KC/1KaN0FyQwQFoZJ9QqclRu7clkGwy5OnjxaZWz42qW6kmIn X-Received: by 2002:a17:90b:707:b0:2b4:fcfd:741a with SMTP id 98e67ed59e1d1-2b6cc7591aamr19459934a91.17.1716037686517; Sat, 18 May 2024 06:08:06 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716037686; cv=pass; d=google.com; s=arc-20160816; b=mTdRBYoobA82hk05ZipdYH50Y5QKZzRsSGUqO7MzyeZyVWEKafcJupC+VHcD1mwtNb g+NJI2MJPHgIa4mOqcyy6n8htcqZo3kHKB/+IhvCutMtpyTXdH6i4qoG3qiElV5c53jO rRkjbqQLTtN7rVSuK0ltNe7wsjtGnUsnP5CQtjrhpkCpVVPRC9DMZcrOfEOwpIe8dNC5 Rm87wVt4kJSQEBPy3Vh3aCrUfxGGOzncKod3YlhGWzFJFLIvOXUckQfMP+s6bKhHGPXU XglwpI09j9KXupS54VWFp6MbtBe0bmHaVFYTlVMblreIeREM/pKkNBB+Z94QaX1BpR0w ZOCQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:references:in-reply-to :user-agent:subject:cc:to:from:date:dkim-signature:dkim-signature; bh=Fb9365xfmbv15qh6QcAmjt4UMid6HmqT5omW253QKgw=; fh=0cp02kUKJDXbi19/yOXT8dNl8EmwsEGnxEvQdI4RxF0=; b=FsgBH4GXVeHBCPFMSjMYYWdELT6ofFyBmoqQYFFnIZ7hYUJ1PTBJaYH1HTRkAEa6eL 1zYZz8elrA3EVVdZaHvzljm0/NvvIvUmzaqBZ9OUVVH+cUy7mvQA7gSePo9tP5yYHEas iPTHpDslJD8/x6yTWAFOYuALCRA9d9Hm42ywdBNVeoSM8anGDtJ2/SqffsGZob0D85/m PyeJwICQLI3eyR6cptflB1F4vX435gJTPg1jkVe0UVlIbC8C61hFj048ZdAWmp+66Lez xNto2HThvyZ6+7otybOu6cfoSgtPWuC7xS51QEqPMd2wcGLMZyoN6EGLwrHeE55RzWY8 GScQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@hansenpartnership.com header.s=20151216 header.b=HgykhyYp; dkim=pass header.i=@hansenpartnership.com header.s=20151216 header.b=HgykhyYp; arc=pass (i=1 spf=pass spfdomain=hansenpartnership.com dkim=pass dkdomain=hansenpartnership.com dkim=pass dkdomain=hansenpartnership.com dmarc=pass fromdomain=hansenpartnership.com); spf=pass (google.com: domain of linux-crypto+bounces-4242-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-crypto+bounces-4242-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=hansenpartnership.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id 98e67ed59e1d1-2b628ea7892si6189917a91.89.2024.05.18.06.08.06 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 18 May 2024 06:08:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto+bounces-4242-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@hansenpartnership.com header.s=20151216 header.b=HgykhyYp; dkim=pass header.i=@hansenpartnership.com header.s=20151216 header.b=HgykhyYp; arc=pass (i=1 spf=pass spfdomain=hansenpartnership.com dkim=pass dkdomain=hansenpartnership.com dkim=pass dkdomain=hansenpartnership.com dmarc=pass fromdomain=hansenpartnership.com); spf=pass (google.com: domain of linux-crypto+bounces-4242-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-crypto+bounces-4242-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=hansenpartnership.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id DC97B2823AF for ; Sat, 18 May 2024 13:08:05 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1E1B12BCFF; Sat, 18 May 2024 13:08:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=hansenpartnership.com header.i=@hansenpartnership.com header.b="HgykhyYp"; dkim=pass (1024-bit key) header.d=hansenpartnership.com header.i=@hansenpartnership.com header.b="HgykhyYp" X-Original-To: linux-crypto@vger.kernel.org Received: from bedivere.hansenpartnership.com (bedivere.hansenpartnership.com [96.44.175.130]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 60C6C32C60; Sat, 18 May 2024 13:07:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=96.44.175.130 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716037680; cv=none; b=i9LOGWJ0JyXpDhWXfBWZy0ulBeUvFkUrNfD3xRV/5aL7dae5EOFxG6FauLyp4KZ40GvJRKdWDFL4DPqoZGEvLuK6EqTctMTIaKlWo3IPPGSS8cTOkso1XEErj9Zf9kZO0OF2U/Ps3PXNNR/CMIAejAIcTaIShiPQ1hbSw+vBY8E= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716037680; c=relaxed/simple; bh=Qf9Qwpx/MU8nA0UDjxSlvV9op3yi9qax6HPjVmnv/6c=; h=Date:From:To:CC:Subject:In-Reply-To:References:Message-ID: MIME-Version:Content-Type; b=sgFefjTca6xkHak+Puqp2/3aS0rxdyutI3lrBGBliPYvtGS9qiSqK3E0oMPATSJZAaKd6qtWugJn8qLPOCOPp9sZpWBLMU4aGRnhJ4yFm4bP4R4DYjPRI7iVb1y6nPI8lKXqy9VYB/OwHr9UTc2fSxRkYc2DDdcUCfy3sB+mG4k= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=HansenPartnership.com; spf=pass smtp.mailfrom=HansenPartnership.com; dkim=pass (1024-bit key) header.d=hansenpartnership.com header.i=@hansenpartnership.com header.b=HgykhyYp; dkim=pass (1024-bit key) header.d=hansenpartnership.com header.i=@hansenpartnership.com header.b=HgykhyYp; arc=none smtp.client-ip=96.44.175.130 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=HansenPartnership.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=HansenPartnership.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=hansenpartnership.com; s=20151216; t=1716037678; bh=Qf9Qwpx/MU8nA0UDjxSlvV9op3yi9qax6HPjVmnv/6c=; h=Date:From:To:Subject:In-Reply-To:References:Message-ID:From; b=HgykhyYpXYkU3vdXxHkNLuDXeK6DldzWZkFjnLdi/Z+joYO19EfbVnY6ErTXDeYNN VLgd0kokEDk+d9FDfiqQNcbatvqrb96ijTQkTxAyAgJJKFSn3yG0aNQJV2a5VtMxdV JmloHbEJvUPLmsYWncs2IhGW3r7dws/UY6s2uK5I= Received: from localhost (localhost [127.0.0.1]) by bedivere.hansenpartnership.com (Postfix) with ESMTP id 954AF1287275; Sat, 18 May 2024 09:07:58 -0400 (EDT) Received: from bedivere.hansenpartnership.com ([127.0.0.1]) by localhost (bedivere.hansenpartnership.com [127.0.0.1]) (amavis, port 10024) with ESMTP id djlfKy_s9EQE; Sat, 18 May 2024 09:07:58 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=hansenpartnership.com; s=20151216; t=1716037678; bh=Qf9Qwpx/MU8nA0UDjxSlvV9op3yi9qax6HPjVmnv/6c=; h=Date:From:To:Subject:In-Reply-To:References:Message-ID:From; b=HgykhyYpXYkU3vdXxHkNLuDXeK6DldzWZkFjnLdi/Z+joYO19EfbVnY6ErTXDeYNN VLgd0kokEDk+d9FDfiqQNcbatvqrb96ijTQkTxAyAgJJKFSn3yG0aNQJV2a5VtMxdV JmloHbEJvUPLmsYWncs2IhGW3r7dws/UY6s2uK5I= Received: from [IPv6:::1] (unknown [IPv6:2607:fb91:1dc2:86d0:8b7e:3b6d:e5db:1254]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (Client did not present a certificate) by bedivere.hansenpartnership.com (Postfix) with ESMTPSA id 145A11287272; Sat, 18 May 2024 09:07:57 -0400 (EDT) Date: Sat, 18 May 2024 06:07:39 -0700 From: James Bottomley To: Herbert Xu , Jarkko Sakkinen CC: Eric Biggers , =?ISO-8859-1?Q?N=EDcolas_F=2E_R=2E_A=2E_Prado?= , Ard Biesheuvel , Linux Crypto Mailing List , linux-integrity@vger.kernel.org, keyrings@vger.kernel.org, regressions@lists.linux.dev, kernel@collabora.com Subject: Re: [PATCH] crypto: api - Do not load modules until algapi is ready User-Agent: K-9 Mail for Android In-Reply-To: References: <0f68c283ff4bbb89b8a019d47891f798c6fff287.camel@HansenPartnership.com> <0d260c2f7a9f67ec8bd2305919636678d06000d1.camel@HansenPartnership.com> <66ec985f3ee229135bf748f1b0874d5367a74d7f.camel@HansenPartnership.com> <20240518043115.GA53815@sol.localdomain> Message-ID: <3A150785-8EE3-4B53-9E71-4DE49C6751B0@HansenPartnership.com> Precedence: bulk X-Mailing-List: linux-crypto@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On May 18, 2024 5:32:56 AM PDT, Herbert Xu wrote: >On Sat, May 18, 2024 at 02:04:18PM +0300, Jarkko Sakkinen wrote: >> >> Right does this mean for TPM driver that a crypto API invocation not >> having everthing needed loaded will block until this is not the case? > >All this does is disable module loading by the Crypto API (because >there is no point and it may deadlock) until such a point where >all/most drivers have finished loading=2E > >So if the algorithm is missing (which shouldn't happen because of >Kconfig selects), then it will simply fail=2E I have a curiosity question: if Eric is right and it's looking for an opti= onal hmac accelerator module, why don't I see this? The only real config d= ifference between what I tested and what Nicholas did is he's arm and I'm x= 86=2E James --=20 Sent from my Android device with K-9 Mail=2E Please excuse my brevity=2E