Received: by 2002:ab2:3319:0:b0:1ef:7a0f:c32d with SMTP id i25csp104288lqc; Thu, 7 Mar 2024 11:33:00 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWJO6FK+ot8Ct/RcCsrzRsCK+Ss+qxtQ/aeeO+gRg/fhI2at5OxxkxKPCI/hHIm9xXiSMOPcw9A3rfQXWRCuabuIjS8wzooXhBh7h5kOg== X-Google-Smtp-Source: AGHT+IG5DMdVCbYIgzS/0mki3H+nPnrNIfOS2wkVLQJDHtRpDn62lifnCTy02DxGDGBggIf7LzTz X-Received: by 2002:a17:906:2c4f:b0:a45:cc06:d514 with SMTP id f15-20020a1709062c4f00b00a45cc06d514mr2135286ejh.58.1709839980124; Thu, 07 Mar 2024 11:33:00 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709839980; cv=pass; d=google.com; s=arc-20160816; b=G73MM6bBv0gvEhvr0PrZJOvd/HFpQEVCuhF/OYWgQlEYZiyMM8Mdvzr+HvPwWJambd oEwqD/e9VuDR7P5HJoRTVw5SSV7z7mu76w9fiezHtRpUNcEcuhgJILjgjyxkHNeEo/hU Ch76JYbjm6Oee0M+8M4HHlqcfgMVXkodB+itaG5GRLHPysC7k5JRjUhYsjXhi/SYS+Ye JVxQLeENT4k0MKVKjOz0p3Ug01O0aFs5l8uNx9voXpO+crZiBA5FXAjKhmSI0okfodAt gAOtqbDNGybyjBRBdbPcpJfMoUk+14ozbCvstmfsY1yHqNL+NnJldptcLp55soJgHenY ubZg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:references:to:from:subject:cc:message-id:date :content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:dkim-signature; bh=LE5IfwwiYNuvLcxjN8fSmk68Sujt5D1aamjwqvMYaVo=; fh=nKAep/XDSMl8dj3CYRaqsln016/c4yXm8P0CkNLe6Pk=; b=mlh4h1ibVAbdQXhP7oJAdEfPGb3pxFA8DmvjrszbtCZ6n01xfzltEaAfCxPcU8/Bg0 B98mQh7n17xm0EXxRQHQgPNYejELQEoxtCYCu24B6Z02drUru43sguI7EpCdd3/SgNcu qceKYn6TEtsFjx+bBJrhe0bu40fk2RZNg3gMY7Ji7JplMvCAbZCPamgUm7Sc4jGnW3wg /Fxy85flAZITp+7lEeP2HyhmeLAjkavrlWtTrz3ywWbhwVwC39gUN3PXoH2P2b+LvItH LuKyDFrXFGJF3snfHxEMJ8IP4xxDfBAjSACn54xalBGpttw9ZOT5WYemevY5mHXXQpEm W8GQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=DSSx0pmw; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-crypto+bounces-2573-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-crypto+bounces-2573-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id b11-20020a170906d10b00b00a44803f1802si6087827ejz.360.2024.03.07.11.33.00 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Mar 2024 11:33:00 -0800 (PST) Received-SPF: pass (google.com: domain of linux-crypto+bounces-2573-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=DSSx0pmw; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-crypto+bounces-2573-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-crypto+bounces-2573-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 am.mirrors.kernel.org (Postfix) with ESMTPS id 2E19A1F23C30 for ; Thu, 7 Mar 2024 19:32:25 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EF932137910; Thu, 7 Mar 2024 19:32:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="DSSx0pmw" X-Original-To: linux-crypto@vger.kernel.org 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 9E60E136666; Thu, 7 Mar 2024 19:32:17 +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=1709839937; cv=none; b=V6IjezSN/G+b8G/jvsPwRjWrsC4ICfI2Ghy6XhGwtlXLhKNjzfFXBvlw4BdgFyIkhLqbihMRK3Ef9nZefnHHsA682hp8j2Q3JlsmDeVlvtETlKOC9EPzVWnSIbPWz+7zU3AQ/sjm/hMwY2+M1n3B+mwqYqPw+1ZE9TCKWQUGyEM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709839937; c=relaxed/simple; bh=TXhaVJ7GnQctH6MS3SGDdX6MLHLH8awnbScWV9UkjqQ=; h=Mime-Version:Content-Type:Date:Message-Id:Cc:Subject:From:To: References:In-Reply-To; b=t6a3cnmMAoB5ZNjQKB8RyTSGXbVbJftgppZ+5xr//oNgRPGBbkqBUzCWSZfKdkPCothOfvOSU5xWBOs9ARHyKda9CRUUutNbAAYtPmmbno8rse80yxhW0VazW5wVTSTs7Ewvii3ijV/A4KXT2230q8pE4xe8uPecFrzM3iJc68w= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=DSSx0pmw; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id BACD8C43390; Thu, 7 Mar 2024 19:32:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1709839937; bh=TXhaVJ7GnQctH6MS3SGDdX6MLHLH8awnbScWV9UkjqQ=; h=Date:Cc:Subject:From:To:References:In-Reply-To:From; b=DSSx0pmwjQkO9GS/HOxdniHdntYdsOXkE9MDzZ8JuN1gglQLarMv+/BZONB7aAPKR 4+crYH1NwJi/8DnyTimwzxMnop3y1gKNG0LH9WKKamzhtAS45nM73VYLyFd9taRMUQ 9K+1/j5YTSwZFcRhOYEhxoiKjjAkUr9Ye1oCqRju5+OtmD2lDkFXeWD4QZiX07XnaY meMk+2f48dFhMhJ0SkYm+F1BeU9dARCbxMP0tsB/amewBo69FGfgrU8XITO4I4nKS5 bLQN2EZbqOAV5ZOKViiYnQaMllT2rGr04yfDYn98ch9Ko3BdYeyRHqpsfsysyXti69 SvOtPhKFoOEgg== Precedence: bulk X-Mailing-List: linux-crypto@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: Thu, 07 Mar 2024 21:32:08 +0200 Message-Id: Cc: "Shawn Guo" , "Jonathan Corbet" , "Sascha Hauer" , "Pengutronix Kernel Team" , "Fabio Estevam" , "NXP Linux Team" , "Ahmad Fatoum" , "sigma star Kernel Team" , "David Howells" , "Li Yang" , "Paul Moore" , "James Morris" , "Serge E. Hallyn" , "Paul E. McKenney" , "Randy Dunlap" , "Catalin Marinas" , "Rafael J. Wysocki" , "Tejun Heo" , "Steven Rostedt (Google)" , , , , , , , , , "Richard Weinberger" , "David Oberhollenzer" Subject: Re: [PATCH v6 5/6] docs: document DCP-backed trusted keys kernel params From: "Jarkko Sakkinen" To: "David Gstir" , "Mimi Zohar" , "James Bottomley" , "Herbert Xu" , "David S. Miller" X-Mailer: aerc 0.17.0 References: <20240307153842.80033-1-david@sigma-star.at> <20240307153842.80033-6-david@sigma-star.at> In-Reply-To: <20240307153842.80033-6-david@sigma-star.at> On Thu Mar 7, 2024 at 5:38 PM EET, David Gstir wrote: > Document the kernel parameters trusted.dcp_use_otp_key > and trusted.dcp_skip_zk_test for DCP-backed trusted keys. > > Co-developed-by: Richard Weinberger > Signed-off-by: Richard Weinberger > Co-developed-by: David Oberhollenzer > Signed-off-by: David Oberhollenzer > Signed-off-by: David Gstir > --- > Documentation/admin-guide/kernel-parameters.txt | 13 +++++++++++++ > 1 file changed, 13 insertions(+) > > diff --git a/Documentation/admin-guide/kernel-parameters.txt b/Documentat= ion/admin-guide/kernel-parameters.txt > index 24c02c704049..b6944e57768a 100644 > --- a/Documentation/admin-guide/kernel-parameters.txt > +++ b/Documentation/admin-guide/kernel-parameters.txt > @@ -6698,6 +6698,7 @@ > - "tpm" > - "tee" > - "caam" > + - "dcp" > If not specified then it defaults to iterating through > the trust source list starting with TPM and assigns the > first trust source as a backend which is initialized > @@ -6713,6 +6714,18 @@ > If not specified, "default" is used. In this case, > the RNG's choice is left to each individual trust source. > =20 > + trusted.dcp_use_otp_key > + This is intended to be used in combination with > + trusted.source=3Ddcp and will select the DCP OTP key > + instead of the DCP UNIQUE key blob encryption. > + > + trusted.dcp_skip_zk_test > + This is intended to be used in combination with > + trusted.source=3Ddcp and will disable the check if all > + the blob key is zero'ed. This is helpful for situations where > + having this key zero'ed is acceptable. E.g. in testing > + scenarios. > + > tsc=3D Disable clocksource stability checks for TSC. > Format: > [x86] reliable: mark tsc clocksource as reliable, this I don't disagree with the API part. Mimi? BR, Jarkko