From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 49C8A1B95B; Sat, 18 May 2024 11:04:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716030263; cv=none; b=UfOFMH2L7ZzC3uM98jMF5d+ho0M4yg4St37bJpJ+VA+SF+iEguB//BLA7+en0WqJj9+Te8kPu6nHgjf63jZVkOXdun2tSXMENWXQI/TtTgH1/RUzrM4r9Yv1DdmXyNkegjaH/BNAup4i01nSakmX5n2q8rCUem5Yymr9v6fUegk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716030263; c=relaxed/simple; bh=rYsvq9af1ElTO55bIIOmCkL8EzQiQvpxZzQSooTJeao=; h=Mime-Version:Content-Type:Date:Message-Id:Cc:Subject:From:To: References:In-Reply-To; b=FqJ5xwrfujvMkL2uH71h9hJqoyu3ZYe7evkj7FbZWqXOszdy8aZteRn6u/PBMdwuvJDAunroCbwZ95OSA+QWAzLkqLk6DwEpFpWnOt9M2KCOWgFwFrC5VbRiIitQaVjtSYgMw//YH9coiyrGmHbhSXKdO+7Hy+vGeahZVc/IBYw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=nXmJ2jLo; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="nXmJ2jLo" Received: by smtp.kernel.org (Postfix) with ESMTPSA id F06A6C113CC; Sat, 18 May 2024 11:04:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1716030263; bh=rYsvq9af1ElTO55bIIOmCkL8EzQiQvpxZzQSooTJeao=; h=Date:Cc:Subject:From:To:References:In-Reply-To:From; b=nXmJ2jLoQyJEokvaO+wsoUaYyZ3TABkEIV47lr3GOirywjGFltECefkJM+BalDP7j j4Mkhx529MULMgRY6w8XoYc6KyDT9IchSdaL7TCOiGF4qLk0tvuR7lT/7M+Vojn+Nc sjcDUlRMQN2oM+yrzBpxZmfURKoK6grYHBp0pQw/FWVe8ySo+M96aM/ZCDRIOywiED S3PSe3gLaHyUHzjZYFbzNV1LaNg7CONlCjgugPAjNl562mqZyBwMC42ax6PwaOzsA3 MUzgHlXmHvJ4uF7cDetMzkfogvcvrqmxTAN3gwIM63HsTwxBAxDdoHDn8xUQ6SraUb clT8lyNLnaCXA== Precedence: bulk X-Mailing-List: linux-integrity@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Sat, 18 May 2024 14:04:18 +0300 Message-Id: Cc: =?utf-8?b?TsOtY29sYXMgRi4gUi4gQS4gUHJhZG8=?= , "James Bottomley" , "Ard Biesheuvel" , "Linux Crypto Mailing List" , , , , Subject: Re: [PATCH] crypto: api - Do not load modules until algapi is ready From: "Jarkko Sakkinen" To: "Herbert Xu" , "Eric Biggers" X-Mailer: aerc 0.17.0 References: <20240429202811.13643-19-James.Bottomley@HansenPartnership.com> <119dc5ed-f159-41be-9dda-1a056f29888d@notapiano> <0f68c283ff4bbb89b8a019d47891f798c6fff287.camel@HansenPartnership.com> <0d260c2f7a9f67ec8bd2305919636678d06000d1.camel@HansenPartnership.com> <66ec985f3ee229135bf748f1b0874d5367a74d7f.camel@HansenPartnership.com> <20240518043115.GA53815@sol.localdomain> In-Reply-To: On Sat May 18, 2024 at 10:03 AM EEST, Herbert Xu wrote: > When the Crypto API is built into the kernel, it may be invoked > during system initialisation before modules can be loaded. Ensure > that it doesn't load modules if this is the case by checking > crypto_boot_test_finished(). > > Add a call to wait_for_device_probe so that the drivers that may > call into the Crypto API have finished probing. > > Reported-by: N=C3=ADcolas F. R. A. Prado" > Reported-by: Eric Biggers > Signed-off-by: Herbert Xu 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? BR, Jarkko