From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-dy1-f173.google.com (mail-dy1-f173.google.com [74.125.82.173]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3F0D73F44FA for ; Fri, 15 May 2026 21:14:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.125.82.173 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778879701; cv=none; b=SHykdrt41y7Q7+TrXATph508skXcq4m3oy3a1bCqrxYM0SI6V+ZdoEKoFNW6KKDBFk8n1qFxojLhOxMI0muqTO1OfQ29rQfHabROsB1yo3ZXOXKHHurIxYBEqC5jhVgeeppCF7C/siWH9yL5lby2TaGFCB4/3waKEgG/gIthyUI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778879701; c=relaxed/simple; bh=/w4xIQd+FodWBf21xbEabPQcoqxxR+rnVAOAKm/PKP0=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=ndl16D8FAAaYLgj3Fr0JrPorchM+XjkVCDXAvzXtVeJ8DxHS7/n6e8RjewVB1orwxnrhDpN1X9mfb1aOBBIiP6omflVLFFyNKGl/8dDLsrJ9KLbzTlqSNZyrugkmfJzY2pmNyPoE7zrkyKd42JqOpEe0UPyLwuNYahxGYTjWngg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=NAUkQYe1; arc=none smtp.client-ip=74.125.82.173 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="NAUkQYe1" Received: by mail-dy1-f173.google.com with SMTP id 5a478bee46e88-2f3c623322bso1043640eec.0 for ; Fri, 15 May 2026 14:14:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1778879698; x=1779484498; darn=vger.kernel.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=aFOHDGCsOHbtZzrbMRrMDpLy4uq6fKhTRLiSKMVovBw=; b=NAUkQYe17YCwOkozqdU8CpMHWdUFgHS6zfI0Ca2ILTLzMf2tiipFVvSkcGZcm/Vgv9 f8KEgse7WVm8d40kJddfU5qHJ7TbmtZZ9ZkaGR+rzkMct56vQpK5+h3Fsjqf42Di81AP zXblzjiLSj9yR7kZYhaSZlfFC+m78FgXqQNMD2x7IUyePyMWN5Ejv6UozaIP747+A4Af olt8sJ2zM8qz67HNBxVo8J3K33CGhOndM/yfhuS40Pm3WRAfEiYHCe+zPCzvX2U0wWSz ZRjNUNmR1iPXSD1f82xgt6JlXOYaYMNiuh0+zcrN7zOI6ZQzCGbFqcQipX9Qf8piThzb ybFw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1778879698; x=1779484498; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=aFOHDGCsOHbtZzrbMRrMDpLy4uq6fKhTRLiSKMVovBw=; b=dEMfin6r3t5DgsOr0RIpdFKbAb0B7l/CSmPg/w54Ee9rpBuPPwhIi1eHp4ul+BVZp0 vHwZePSypGRS7nplITygxti+wNGEXP/iNOxnlpaKUs4frwqbpz7Wm/qG7AGv4OL8jbwt QvK4wKfffULDtIvsTCun0T15pJNgiPgmR4lm+lhKHS+BQEOdGHgp+VgJmrVxxj6YGgFb IcDAgt51HLj1B+W2cXT/9WcYWsnQZQih2VTez4voQMEBNpIXZd8Ka9DLCBfkfMyOIQXO 5q9M+gmsn/TwhhHRjv38q7BG1Ow4d2mO9SYVGbT03XTTU1WHN1Piane76K/8ozqOaENT g7nQ== X-Gm-Message-State: AOJu0Yw07wYYrzQHO25RPnCzNYJP/Q10IF/VIR+Sfx6EF1+vWitH/SKf hBGlBI+WPMz28Py9/0wQZnEn0HX9iMpeJIPuItynisjccThTCe6wmF/CpwPadxD7 X-Gm-Gg: Acq92OFPtS2ngfIGv9R7Do5J27yrY41PckZ6BYLWeXQv7P+SbZFDthVl/Odc00X5NCc UIrKdsTy7awHERzyTiYZLysHlh8kLHizDAFgDedb4wpbVrwJgdTOJzBWns+h+87Y83IdoLWDSP0 2BpGLo2uKoX1qBE1zkjR4BnyEfp3iub3CdxZ2fMnJlLwg8JzQCmCGYmJxv3WMTdVWtolkmEtS+Q q20xUAMzNHEDGdBAPUNhkK+kMWfVLQhrJex4dnpM/C/NcMKblu73f3WQ6+77noyhGl/3jYyYlA3 DwoXw11JKQaOrHinl0fqza45+1oGbhESerVU0blMgMXrOh8Doo0WWq4VsVKM9FTgkRwYzHf3RZZ I/1DiWon6l/ZtYjwawuRR5cJVD/OePbzgs4cikMktRTT6aItI1xOZqLh0d9Idh1XDuhLVrk0zAr bqhEw2VnMqC1T8SDR7JFxqfdsAVwTMg8x7OpDb39JW+g== X-Received: by 2002:a05:693c:8386:20b0:2df:919f:ce59 with SMTP id 5a478bee46e88-30398678a48mr2108609eec.19.1778879698427; Fri, 15 May 2026 14:14:58 -0700 (PDT) Received: from mimas.lan ([2603:8000:df01:38f7:a6bb:6dff:fecf:e71a]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-302973bbd50sm7961724eec.20.2026.05.15.14.14.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 May 2026 14:14:58 -0700 (PDT) From: Ross Philipson To: linux-kernel@vger.kernel.org, x86@kernel.org, linux-integrity@vger.kernel.org, linux-doc@vger.kernel.org, linux-crypto@vger.kernel.org, kexec@lists.infradead.org, linux-efi@vger.kernel.org, iommu@lists.linux.dev Cc: ross.philipson@gmail.com, dpsmith@apertussolutions.com, tglx@linutronix.de, mingo@redhat.com, bp@alien8.de, hpa@zytor.com, dave.hansen@linux.intel.com, ardb@kernel.org, mjg59@srcf.ucam.org, James.Bottomley@hansenpartnership.com, peterhuewe@gmx.de, jarkko@kernel.org, jgg@ziepe.ca, luto@amacapital.net, nivedita@alum.mit.edu, herbert@gondor.apana.org.au, davem@davemloft.net, corbet@lwn.net, ebiederm@xmission.com, dwmw2@infradead.org, baolu.lu@linux.intel.com, kanth.ghatraju@oracle.com, daniel.kiper@oracle.com, andrew.cooper3@citrix.com, trenchboot-devel@googlegroups.com Subject: [PATCH v16 16/38] x86: Secure Launch Kconfig Date: Fri, 15 May 2026 14:13:48 -0700 Message-ID: <20260515211410.31440-17-ross.philipson@gmail.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20260515211410.31440-1-ross.philipson@gmail.com> References: <20260515211410.31440-1-ross.philipson@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Add an x86 Kconfig option for compiling in/out the Secure Launch feature. Secure Launch is controlled by a single on/off boolean. Signed-off-by: Ross Philipson --- arch/x86/Kconfig | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig index e2df1b147184..fd9edb0651d9 100644 --- a/arch/x86/Kconfig +++ b/arch/x86/Kconfig @@ -1989,6 +1989,21 @@ config EFI_RUNTIME_MAP See also Documentation/ABI/testing/sysfs-firmware-efi-runtime-map. +config SECURE_LAUNCH + bool "Secure Launch DRTM support" + depends on X86_64 && X86_X2APIC && TCG_TIS && TCG_CRB + select CRYPTO_LIB_SHA1 + select CRYPTO_LIB_SHA256 + select CRYPTO_LIB_SHA512 + help + The Secure Launch feature allows a kernel to be launched directly + through a vendor neutral DRTM (Dynamic Root of Trust for Measurement) + solution, with Intel TXT being one example. The DRTM establishes an + environment where the CPU measures the kernel image, employing the TPM, + before starting it. Secure Launch then continues the measurement chain + over kernel configuration information and other launch artifacts (e.g. + any initramfs image). + source "kernel/Kconfig.hz" config ARCH_SUPPORTS_KEXEC -- 2.47.3