Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp388140pxk; Thu, 24 Sep 2020 08:02:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxeAyXGUDkr1eTAOxYCgSs8JZJ/7sixSPB15kkTS0Kj8M66GiEa96OOSpbntjAZLZGjdqb6 X-Received: by 2002:a1c:234d:: with SMTP id j74mr5018430wmj.157.1600959742002; Thu, 24 Sep 2020 08:02:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600959741; cv=none; d=google.com; s=arc-20160816; b=DCEAzaKXPMAgz4VVHXESzK8V5hA9jYfU1YwyLjBAA0C+oToPtcCfcQomeyCA8secja s1KMe7qgWsR28c5tk1uMh+pK0GvkZoo8qxGCohehKiz5Js0JB4RRgF9t+NofBr7iTuI6 AlyzJkWLjDLjh2jmGlK8au90C/911wr9MBXDxjLzKhHL74O7WGTu9eEzahRwTmg20XpN Nvv7FXMgOX4/sxT9RCuf3u7hIW3acZIdX7YeFZNch6dhk0Or5sler+1k1JobhtxsjMNz iotm69pIIGbNUhzOaf/wUxe6X5zyDkt8HLc+xDKqJ/4+o29DIu5MwHKfTRCK8B4CBhzm POPA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from:dkim-signature; bh=13WiYyuHylIHc8b1AvafzrXZ3VZ7lUwT8kAQzpDo+aw=; b=iO2oS2US6MRV65U5SG8fSGoIMpron3l6aAKUERBdqxszs4UE4sjJPcGZITkmqDq7bH QuJByru1NbstEgM3lnOF95d0udZXoAuMCV47GPlR2mND5dOmXhdvyW1bE5JTJbp3hiYN WvBFx6mFcYtN1oUnYbBv0FE1/g3PDIWNUDdiXPB7r7dOTCQLPAKvvC0/d6ZQT6wqsLQK UVrjvxZyV+Ra0bYrUrckfTOXGYN5GsuR+QysGJgSOvlck0jyYmSU0knda7tuVysG/1bY t1VSTNGl/jQGz/mthIAPNVwPYTCtE5zfzRK6IfEw43F9m/r4+TOYxqRxqhJvnIb8WUuP b0+w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2020-01-29 header.b=rrLFfCwG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id gc10si2226639ejb.614.2020.09.24.08.01.32; Thu, 24 Sep 2020 08:02:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2020-01-29 header.b=rrLFfCwG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728502AbgIXPA2 (ORCPT + 99 others); Thu, 24 Sep 2020 11:00:28 -0400 Received: from aserp2120.oracle.com ([141.146.126.78]:57810 "EHLO aserp2120.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728164AbgIXPA2 (ORCPT ); Thu, 24 Sep 2020 11:00:28 -0400 Received: from pps.filterd (aserp2120.oracle.com [127.0.0.1]) by aserp2120.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 08OExGKU057807; Thu, 24 Sep 2020 15:00:12 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : cc : subject : date : message-id : in-reply-to : references; s=corp-2020-01-29; bh=13WiYyuHylIHc8b1AvafzrXZ3VZ7lUwT8kAQzpDo+aw=; b=rrLFfCwGt5vfQPO5UdVtqNplwrSDc9m2VMX3H6bzqsDHY65IPQy0z8KC+A+pKcWKvSsP 1OO1N3aFtGDCNwi+N+NOe3csElclXxUIzyyHQhA4ZRu/bzVbDgrlpyxDksjmmG/iKHu3 JYfv0cdqfhXFgsOLcwsTGM+teyX4yG0//iUDm2i/MIoif6i+rHzgi/OWPbMSkDI3O93K ZiMNloK2NcnqBTG5MCzjF6r60TFFUchb4H1k9zVl6iqnQ/NikbQT/xg2uKJYqLMwBjuu vM+zpmqcNEp+FDI3bTG/k7VSAcN+U65qrxi948MAWfY5v1PpGt6hHyTKjeQjtk46vkkw AQ== Received: from aserp3030.oracle.com (aserp3030.oracle.com [141.146.126.71]) by aserp2120.oracle.com with ESMTP id 33q5rgq5k0-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 24 Sep 2020 15:00:12 +0000 Received: from pps.filterd (aserp3030.oracle.com [127.0.0.1]) by aserp3030.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 08OEuTx5126380; Thu, 24 Sep 2020 14:58:12 GMT Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by aserp3030.oracle.com with ESMTP id 33nujr18a4-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 24 Sep 2020 14:58:12 +0000 Received: from abhmp0014.oracle.com (abhmp0014.oracle.com [141.146.116.20]) by aserv0121.oracle.com (8.14.4/8.13.8) with ESMTP id 08OEw8fd022539; Thu, 24 Sep 2020 14:58:08 GMT Received: from disposition.us.oracle.com (/10.152.32.81) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Thu, 24 Sep 2020 07:58:08 -0700 From: Ross Philipson To: linux-kernel@vger.kernel.org, x86@kernel.org, iommu@lists.linux-foundation.org, linux-integrity@vger.kernel.org, linux-doc@vger.kernel.org Cc: ross.philipson@oracle.com, dpsmith@apertussolutions.com, tglx@linutronix.de, mingo@redhat.com, bp@alien8.de, hpa@zytor.com, luto@amacapital.net, trenchboot-devel@googlegroups.com Subject: [PATCH 01/13] x86: Secure Launch Kconfig Date: Thu, 24 Sep 2020 10:58:29 -0400 Message-Id: <1600959521-24158-2-git-send-email-ross.philipson@oracle.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1600959521-24158-1-git-send-email-ross.philipson@oracle.com> References: <1600959521-24158-1-git-send-email-ross.philipson@oracle.com> X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9753 signatures=668680 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 bulkscore=0 malwarescore=0 mlxlogscore=999 phishscore=0 adultscore=0 spamscore=0 suspectscore=0 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2006250000 definitions=main-2009240114 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9753 signatures=668680 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 impostorscore=0 clxscore=1015 suspectscore=0 phishscore=0 malwarescore=0 priorityscore=1501 mlxlogscore=999 adultscore=0 bulkscore=0 mlxscore=0 lowpriorityscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2006250000 definitions=main-2009240115 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Initial bits to bring in Secure Launch functionality. Add Kconfig options for compiling in/out the Secure Launch code. Signed-off-by: Ross Philipson --- arch/x86/Kconfig | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig index 7101ac6..8957981 100644 --- a/arch/x86/Kconfig +++ b/arch/x86/Kconfig @@ -1968,6 +1968,42 @@ config EFI_MIXED If unsure, say N. +config SECURE_LAUNCH + bool "Secure Launch support" + default n + depends on X86_64 + help + The Secure Launch feature allows a kernel to be loaded + directly through an Intel TXT measured launch. Intel TXT + establishes a Dynamic Root of Trust for Measurement (DRTM) + where the CPU measures the kernel image. This feature then + continues the measurement chain over kernel configuration + information and init images. + +choice + prompt "Select Secure Launch Algorithm for TPM2" + depends on SECURE_LAUNCH + +config SECURE_LAUNCH_SHA1 + bool "Secure Launch TPM1 SHA1" + help + When using Secure Launch and TPM1 is present, use SHA1 hash + algorithm for measurements. + +config SECURE_LAUNCH_SHA256 + bool "Secure Launch TPM2 SHA256" + help + When using Secure Launch and TPM2 is present, use SHA256 hash + algorithm for measurements. + +config SECURE_LAUNCH_SHA512 + bool "Secure Launch TPM2 SHA512" + help + When using Secure Launch and TPM2 is present, use SHA512 hash + algorithm for measurements. + +endchoice + config SECCOMP def_bool y prompt "Enable seccomp to safely compute untrusted bytecode" -- 1.8.3.1