Received: by 2002:ab2:6991:0:b0:1f2:fff1:ace7 with SMTP id v17csp129140lqo; Wed, 27 Mar 2024 08:40:25 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUqhI1zabuHyNm9gIStircmEERNlP76x5IuUnh5cx4m+7fIw5HS6diai6awH1GHMT3yazdqhVg26yQVbkf1rqK9kbgagemco8M4Rl1dPw== X-Google-Smtp-Source: AGHT+IE31ZDmmZa+7vJqAqhhZmfvXPcsybaBAg/4hkzFNZqh4IkYMLc3N7yvr1juXIqfLLIQVGuw X-Received: by 2002:a19:ca0f:0:b0:513:bf6e:bf05 with SMTP id a15-20020a19ca0f000000b00513bf6ebf05mr1908305lfg.14.1711554025611; Wed, 27 Mar 2024 08:40:25 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711554025; cv=pass; d=google.com; s=arc-20160816; b=WJb75ExLeAraNCrw+q2KLBUl1rO7Sb6onI9Ix2AiSlrPzvpH/uFJwAIXmxsXyLgWHs QOPS50D8b9yOJ/K5QuXtI+hYtDU+N4/+lslpDkIZ6H0idQ82CI6OL7wsdPrFS+fecXaQ 1MBRGWPaYaa7dYyumZWxjHHm6o94lNv6ob19/Tl/Mn5KGlnnM0NC5uP5JdqlP5AJEDIG VThJuSyUY+oKO5uigrifWeV+dvI45a/Lyg5NvySwsV+LztybUIZfZTHpCwtvUlfFcDi9 Hk+5FxGEzyP/v8AUlKpfie/lNYKGcxTew9x99n1xY3/uds6N/k+TLyiAlC+1RJ+w7KLU JVSA== 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=G9DNNDHb5JdG8Pzoe7DIZr1CSp+nNkMzDV/5TndqSZA=; fh=nKAep/XDSMl8dj3CYRaqsln016/c4yXm8P0CkNLe6Pk=; b=CQdzkCzbC4iH4EMZbTL9L/g4rBbwqAWsRvCzoYeAudLidAuDECPJbcr7kCijREZ68D gEzwbLb7ZIJbcIcWFeWqfV/UZYzzTWJgvDzmOHoL4hSOqgeuYnW3EJODAZd3CFH9zLj7 dfqwMOScw+2Yv7f6Pj/jc0N9NINLbtVp6RIR4u0WFGUBpzks61dRE7OFpMUMSn4DeRlq XuHg686xEiym6WibnUobHl0oyfmkSBbfOQ+dI/pbgU/116FF+kXMRLRjJudSA/IgW0V6 XgPLQ7V7srg67zdSpTmoFR6FfoTbHR1jRbq23GQzhZkznsYv/dANotq9GpdqxyUD0AKN 0/Rw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=nPlsBFY2; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-crypto+bounces-2972-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-crypto+bounces-2972-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. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id dn19-20020a17090794d300b00a47459e736esi4441252ejc.889.2024.03.27.08.40.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Mar 2024 08:40:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto+bounces-2972-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=nPlsBFY2; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-crypto+bounces-2972-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-crypto+bounces-2972-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 55EF11F310C4 for ; Wed, 27 Mar 2024 15:40:25 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EEEE7137744; Wed, 27 Mar 2024 15:32:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="nPlsBFY2" 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 9DFB3136E30; Wed, 27 Mar 2024 15:32:14 +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=1711553534; cv=none; b=EgUYA6ufWyuBy0FKGm1i7+QEHDSwsVOuulPCRFXnfRFCVGKt3ZAzdtD/rWx6I8lKhESf9DaKW0TBhHZvgbyjRKA5jpkLWUIlxT/pDhUbVbZZkxtW5vW6SOESatuSG0d5jH5vLA2p7BJWTTU2luBxu+ryE6rohmhuQbvov8ZmWeo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711553534; c=relaxed/simple; bh=fEZXobeh9Qm14atTzQRk5gNLt2hyN44gGXIHb89n/fM=; h=Mime-Version:Content-Type:Date:Message-Id:Cc:Subject:From:To: References:In-Reply-To; b=TFlpMMuzmniuG7jCghBX8eaMf4MRlV6UXD/ydJds6hIcPcw3jrDe9bJ8U5GxCCV1RntnjtgsdBYKg7+D50QwuYomyShfEM2sCM8zt1lY2/u23XCeHm/vXpXWgX6R8n7duhmA5WyCCSNbG0y81f4g0snZHrYUUteD4MOUV06+P1E= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=nPlsBFY2; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id DEE57C433F1; Wed, 27 Mar 2024 15:32:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711553534; bh=fEZXobeh9Qm14atTzQRk5gNLt2hyN44gGXIHb89n/fM=; h=Date:Cc:Subject:From:To:References:In-Reply-To:From; b=nPlsBFY2n75dYGZ/PvNEhdIEQboMUhNLh40mqEb8TvuGyF35dXMgWppBhFyu+DaZU ylw13U+FHygPCroJKf5ogRik2RJXXAo6BzC4xMkd+eL3TtykJGJcpSxIYOrd5JfZ4Y 8Y8qHCxPgrh0+z9Y0+fExYRjsYz/5+6qM/onpALTNfCcda32LPapgP982blQpcPUJ0 PESC9mSpaIt5UG2W2WsmRS5QvWWmQTovnQStsAcTe1rNhr773paC376WrEOpH6fUEs tCWOo6vvAF042rg+UD6uUfR/JDE+OECQGmYLPoM8ewWd3eaNvPhrUprFH/PwIELqFV toaX7mq5W0yjA== 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: Wed, 27 Mar 2024 17:32:06 +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 v7 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: <20240327082454.13729-1-david@sigma-star.at> <20240327082454.13729-6-david@sigma-star.at> In-Reply-To: <20240327082454.13729-6-david@sigma-star.at> On Wed Mar 27, 2024 at 10:24 AM 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 Nicely documented, i.e. even I can understand what is said here :-) Reviewed-by: Jarkko Sakkinen BR, Jarkko