From patchwork Fri Dec 15 11:06:32 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Gstir X-Patchwork-Id: 13494318 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id C0934C46CC5 for ; Fri, 15 Dec 2023 11:08:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=E1soy9vbN1taXkWc02kCKiRtcwjmd6weGPmB5+dR700=; b=BIqk8cDX3PXxBl 4H+dqXYalZ8F7E/p5SuAk2Vm2HXIM6auwZ5uvkNIK3P1jBsTXhOLWFNi+2Af4R3CVhNSXD6ygSI1U paiENXByTwh0he4FQlbFw3L3XrXR0ldEFt/iO/CFtjIL4Wg5ZjdMeDIykUGk29CaHd/31SZJRNi36 /gKcbpTd8wAgPSZgTg2qFH62uPSHtsiLHbR3k/uR0GAIuUd/Zs+AJq4w8ZJiEPX3M9GIk5kKGQGxn PMnWGE/d+2kognK1zdzdEOesHOTtXgVkjbVbKy2/lgjNjXKGIe0JMy/S0qowrZYVR+AafU0UnjW2S 7yTSFCMrfm/6gxCzyh9g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rE62W-002s02-1V; Fri, 15 Dec 2023 11:07:32 +0000 Received: from mail-wm1-x32f.google.com ([2a00:1450:4864:20::32f]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1rE62I-002rrT-26 for linux-arm-kernel@lists.infradead.org; Fri, 15 Dec 2023 11:07:21 +0000 Received: by mail-wm1-x32f.google.com with SMTP id 5b1f17b1804b1-40c6736d10fso6638535e9.1 for ; Fri, 15 Dec 2023 03:07:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sigma-star.at; s=google; t=1702638437; x=1703243237; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=zKvuKpR6kDazmh6thDgnN9OKi8VRnTOS23Ea0LWxTCY=; b=O0wKRs+KxqKxFbsf1VgfbnMHZXV825ZarlL84wxzK4DVCRhKYxs/1A7E/XvVGAuMTY 8WUOGhhY2NIZF5IylGRSYWZLReyvq7pxR8YGDSRjS+MdyM26MXpGTZiWHO0HO14RIae8 +eHZqOgTuqB1sA+T/yrYnzSxOk32luQmJXYLyaJzM8YBvq3oF/VaDFu8p2v7ZaB9CjFn owb3ekhKZyJ4/rHS+Vmw4PFibiAGBQZ9JbCu8msMIc6/PmkeSWOrgjtDcrnxnC70aea1 BO8DNkY5Hu6RmD7vkKKl8XvuCuveEP5gMaRC24xEsXa7LPd2i/AQI7cMwVGmEJKy6zQy +65A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702638437; x=1703243237; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=zKvuKpR6kDazmh6thDgnN9OKi8VRnTOS23Ea0LWxTCY=; b=VYtyHoO1Bj0ulKMJ0xe/o9Mfq47PKA6DvQYR1cWow2riMcE7MiJH3+tVX0Gj3UUIMp ccuk31DV+sh2slEyWnmEpX3DhPXFRai+lsdXEFdubCwVZh/lx+3GCLp/7A30RLoVQP9V 4sAvuuVUwTIxZeHTSTvTX36LZboiHrs/QWitr5spUydCcwJOMGB3n5GeoKUyKQ2VcL7v 1fblCYZw1F8OU7BYscGvfnjQjzeUZmD7h7BTY/7ZiyxRpAEs5cdqqKliyHbZjqPoztou wrVu9t1hD8uY8YjLXQfBC+uaDAnw4plt9EIdCzxgDTOVeNCu6BWkhPPkrpVM5hXfWvtE QN6A== X-Gm-Message-State: AOJu0Ywg0+zcMllEmrq+9ZTcDrhiYvOf2ZSVSV/+Rb+hqrDkWvJ/QXyx UVwhg3TYL7/41Vrmer8QNLnVqQ== X-Google-Smtp-Source: AGHT+IHKXg688Frx+810+en2elPMPMkwlMfj9F36utkLlJhj2Iam2iGNSmuxb5m8+dXfSkWtYdMqRg== X-Received: by 2002:a05:600c:6743:b0:40c:3e98:56aa with SMTP id ea3-20020a05600c674300b0040c3e9856aamr6248633wmb.129.1702638437141; Fri, 15 Dec 2023 03:07:17 -0800 (PST) Received: from localhost (clnet-p106-198.ikbnet.co.at. [83.175.106.198]) by smtp.gmail.com with UTF8SMTPSA id t9-20020a05600c198900b0040c490db950sm18462328wmq.47.2023.12.15.03.07.16 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 15 Dec 2023 03:07:16 -0800 (PST) From: David Gstir To: Mimi Zohar , James Bottomley , Jarkko Sakkinen , Herbert Xu , "David S. Miller" Cc: David Gstir , 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)" , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-integrity@vger.kernel.org, keyrings@vger.kernel.org, linux-crypto@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linuxppc-dev@lists.ozlabs.org, linux-security-module@vger.kernel.org, Richard Weinberger , David Oberhollenzer Subject: [PATCH v5 5/6] docs: document DCP-backed trusted keys kernel params Date: Fri, 15 Dec 2023 12:06:32 +0100 Message-ID: <20231215110639.45522-6-david@sigma-star.at> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20231215110639.45522-1-david@sigma-star.at> References: <20231215110639.45522-1-david@sigma-star.at> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231215_030718_704490_DA1F0628 X-CRM114-Status: GOOD ( 15.78 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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/Documentation/admin-guide/kernel-parameters.txt index 0a1731a0f0ef..c11eda8b38e0 100644 --- a/Documentation/admin-guide/kernel-parameters.txt +++ b/Documentation/admin-guide/kernel-parameters.txt @@ -6566,6 +6566,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 @@ -6581,6 +6582,18 @@ If not specified, "default" is used. In this case, the RNG's choice is left to each individual trust source. + trusted.dcp_use_otp_key + This is intended to be used in combination with + trusted.source=dcp 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=dcp 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= Disable clocksource stability checks for TSC. Format: [x86] reliable: mark tsc clocksource as reliable, this