Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp2305928yba; Mon, 15 Apr 2019 08:59:19 -0700 (PDT) X-Google-Smtp-Source: APXvYqwJzYaOnT7PCvbdOXX+CRaQlXUWkKksuyu1nb+Z9Dn3CPXYktNb+tgBs6gZBmwxpuY0qczn X-Received: by 2002:aa7:85cc:: with SMTP id z12mr76002340pfn.142.1555343959179; Mon, 15 Apr 2019 08:59:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555343959; cv=none; d=google.com; s=arc-20160816; b=bp2OXIuOWEgT/6DDb4YKQSIedw7pz/h2PFNhTCtdYPK7Fw0JBujHGM9ud7yqs/VaV6 ydOKp2EcaAwVelJldvwfN+W662/4Q1a8xuhS/wBPT3aggT4mrfBtWFJFjj/oAungz9uH I8B79n+w6wuclXb/XbTF4I7EgPwHxupLAJb619vHHRuCqpHGKn6gUb8rtMCLy6iWxHf1 qfuoTqMlrIqB5aUreraenP78NHEZEPf01cwD3ffsAcAhOfXc/6rVTXremJ+Kzm25+BPj gFWq/lIj2xrgchDfg3acl9speN1GzEvHXfDyLzyZ2mYPvMTXrGZkHHXlcJ0mJxdmBy19 S7Kw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=hRbJd7NHoXp9xCs4FiKqV7mFOmvV8YmYv0QKRd3aekM=; b=rnTmYhRphvJUyfbFvkt0rwn6RVmzTOdjuTXORWVKYJmG6zsGjV1S/jY9/wqPddYcZs 8vuGnZe2HQg9MNvjyEfx0S0WuLasW57UW86fl7I+8d8SyzzFpGXca408O6uRfqG88iHq iCz5sA8loq/384j5N6ie14+Ae0/7DuYSUYJEwlpdEwFzYNOJ9AF2lQseIMELwX+Ejeyy gQJaDwGaNk10rPyeEOKEGBIa0IdgzDCH1xGqcMXj8GalwS6HO3PS9mQu7XFWITLglCSu SLKfVasfUXJXj7gEGZ5y6316HwMV1TToR41UW+hkzqt1vToe6xBq8wsXo8hlxuPB0vhJ MLiQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=x9JR7qYk; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j72si28670849pge.491.2019.04.15.08.59.02; Mon, 15 Apr 2019 08:59:19 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=x9JR7qYk; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727812AbfDOP45 (ORCPT + 99 others); Mon, 15 Apr 2019 11:56:57 -0400 Received: from mail.kernel.org ([198.145.29.99]:37380 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727771AbfDOP4z (ORCPT ); Mon, 15 Apr 2019 11:56:55 -0400 Received: from sasha-vm.mshome.net (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 0BCCD2183F; Mon, 15 Apr 2019 15:56:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1555343815; bh=bR2KjivPoLlY6Pq+egUxPlsqFOzLQeX1Mn0byEC8zko=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=x9JR7qYkKg4dWd9FhRHhVdijDBjH5v5880HCRGnNWso/i8VQeOwt9LVxZL9M7UH1M bMYxwuhcfLNoyGS/T4+xZpeuTmbdQqrFDDnLODA6S1QLu0jpwYI2mCmilGKymBXDoc Bdvgdf+JZ6cpJ0CkKFDssF86wFiPqMN6pn/ZExU8= From: Sasha Levin To: peterhuewe@gmx.de, jarkko.sakkinen@linux.intel.com, jgg@ziepe.ca Cc: corbet@lwn.net, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, linux-integrity@vger.kernel.org, linux-kernel@microsoft.com, thiruan@microsoft.com, bryankel@microsoft.com, Sasha Levin Subject: [PATCH v3 2/2] ftpm: add documentation for ftpm driver Date: Mon, 15 Apr 2019 11:56:36 -0400 Message-Id: <20190415155636.32748-3-sashal@kernel.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20190415155636.32748-1-sashal@kernel.org> References: <20190415155636.32748-1-sashal@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch adds basic documentation to describe the new fTPM driver. Signed-off-by: Sasha Levin Signed-off-by: Sasha Levin (Microsoft) --- Documentation/security/tpm/index.rst | 1 + Documentation/security/tpm/tpm_ftpm_tee.rst | 31 +++++++++++++++++++++ 2 files changed, 32 insertions(+) create mode 100644 Documentation/security/tpm/tpm_ftpm_tee.rst diff --git a/Documentation/security/tpm/index.rst b/Documentation/security/tpm/index.rst index af77a7bbb070..15783668644f 100644 --- a/Documentation/security/tpm/index.rst +++ b/Documentation/security/tpm/index.rst @@ -4,4 +4,5 @@ Trusted Platform Module documentation .. toctree:: + tpm_ftpm_tee tpm_vtpm_proxy diff --git a/Documentation/security/tpm/tpm_ftpm_tee.rst b/Documentation/security/tpm/tpm_ftpm_tee.rst new file mode 100644 index 000000000000..29c2f8b5ed10 --- /dev/null +++ b/Documentation/security/tpm/tpm_ftpm_tee.rst @@ -0,0 +1,31 @@ +============================================= +Firmware TPM Driver +============================================= + +| Authors: +| Thirupathaiah Annapureddy +| Sasha Levin + +This document describes the firmware Trusted Platform Module (fTPM) +device driver. + +Introduction +============ + +This driver is a shim for a firmware implemented in ARM's TrustZone +environment. The driver allows programs to interact with the TPM in the same +way the would interact with a hardware TPM. + +Design +====== + +The driver acts as a thin layer that passes commands to and from a TPM +implemented in firmware. The driver itself doesn't contain much logic and is +used more like a dumb pipe between firmware and kernel/userspace. + +The firmware itself is based on the following paper: +https://www.microsoft.com/en-us/research/wp-content/uploads/2017/06/ftpm1.pdf + +When the driver is loaded it will expose ``/dev/tpmX`` character devices to +userspace which will enable userspace to communicate with the firmware tpm +through this device. -- 2.19.1