Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp2156665lqo; Sun, 19 May 2024 16:51:50 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWZ7jfpXKYoZCiD0yAnegFaGaWB5O4swL30RKHNrd1nVrG4MTp+LWOK9GznKTYh1oaQOhSBMUbMB+35yHztpN2nIj6m7Ra+i3dcImOL7g== X-Google-Smtp-Source: AGHT+IEE3BqWrzZQLtyDIpROfR/J9Nhq6kf5Egqckg76oS5CmJQCPjTusuOT3vQojTv+ytwPwKGf X-Received: by 2002:ac2:4905:0:b0:515:9ee7:ce45 with SMTP id 2adb3069b0e04-5221016b5cemr23740565e87.49.1716162709938; Sun, 19 May 2024 16:51:49 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716162709; cv=pass; d=google.com; s=arc-20160816; b=U1GuppfZ/CtjlOF0fMbZN26ei/qD1QXC3noSrQmvEYzc8SygS5DMRB1WcqkAdPpJfv JNLWkHwi+5n4yJ+d7Qfu2fN5WP/og6j2qDk1ZrBgdN8jIw6dnY9ndhwrdNl9xmvpPRGA k6sSFTH/n5FD/aTeUpr5qtLcaISz2cpXoPTtdBcc961mJUPF73Y0pRkv2gppWqzSjjkH Qbh9QTVoL/xBNyVyFh3KkOgfJsiUmisI+PgandmOVACZ0jJuIPjgRdF7tP85V9x9Awk7 g9hAYZshyogH2OaSX2F2OVmx9LnYEIx3ZFsfSOBqRx13dOQs5F9FOOFZAM1oQ8Rj5ihy 4W+g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=jOgK0gWcxRz0JopMHKy7mDckkfeBFIqTk6i2jRethN8=; fh=w5BtDrAxNwQn9fmCCPDUSAOF3o01wPYHxKh+z87et1o=; b=uOlRQEReNHGQqBRnRkcJZ6ZAu3G2sUwYEYemx+vDmNMuQlMm9KbWDNFUMSQ3OmpR9o IPY3CJVXxGdmRmL2fSui/qeW691DChQCV8o/Tnjas9+LqOJHGt60PHtTSEHtnkWGD+VC dlF7zbYnOZKpYsODJMmTieNzvBL2YvPK7nJ3fx3EexTNCkMEbt777uqPNyXYiP/PaHnq VBGvMMP8CIvt90GJZNecqfiv38zKt+i7Jr2f5VFvbd4gy4QGOc23qqtDzxzXbt6K4q7T Y4rQ2YxfMjCoCbEfmP5Pd4vYdG1K4FRQbIogKHHzqtcokvpa6GN1BZXMRj6PhpbDU7pT vUoA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=JBTyPX8Q; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-183308-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-183308-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 4fb4d7f45d1cf-57511b34050si4017216a12.610.2024.05.19.16.51.49 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 19 May 2024 16:51:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-183308-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=JBTyPX8Q; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-183308-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-183308-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 A065C1F21192 for ; Sun, 19 May 2024 23:51:49 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 80A151DDF8; Sun, 19 May 2024 23:51:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="JBTyPX8Q" 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 931F9FC01; Sun, 19 May 2024 23:51:32 +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=1716162692; cv=none; b=qNMFrA9a+5fjdDROYzHdsCS17diPluFP1WAeSyrqFH9PMYrij1JSgir+N0Z/YoJL+hgfKYM2+KroyuDtr2GqX7VZ1bcb28Tbif3Xl/tSPh0r5t4sw/jZtsY/8dEPWb0JBz/koeSWHH8In5e50xvJiACn+Bvge2uv/9IKfFhcN80= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716162692; c=relaxed/simple; bh=0a/VB7iwxfJ/j0uJ9oRqOBqUkIqRfPU0lYVZ0FT1bQ0=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=cOYOD1SlTsiitAYGlq+z5VRNbpg3ZoY0bWMCVFrdVuxS5J9kRgYAhjdryUHmW3siDvANHEBqSwmdyjdHUnI69/OjJWQMnlMagyDQeyBTG03rpJ6+xhzexiyMlafaZ2aMQgSuJjN/OIWWAcllRYlme7CbhSs9B9VdTGHwGsLlRY8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=JBTyPX8Q; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8750DC32786; Sun, 19 May 2024 23:51:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1716162692; bh=0a/VB7iwxfJ/j0uJ9oRqOBqUkIqRfPU0lYVZ0FT1bQ0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=JBTyPX8QDYW67IOTT36BBtjpZeM0IrtGh7dSJEdLU1y5nJ8v8UdMN/y5Kxt+LDi8X Ql+iBG8xHy5ohPAGL3q+ohl8puthjrgpcuS71IRmMW/JnGZYiOlfL7rbTgfYdzNxAs lHR9XqMvtl3YaiwMOoadYr1OaJ3rbRl30RY2YXkI9sNyETHAC+u/whffVT9xSsqC7f wDNbqQNrDQ5C54blSzdrwCDI7NqLgc9HdKe+zq4jVZa2C09CkmMRFCGHdlHVH4LYrE I1FIZseAJozmfH1KvfkMaoMmOOsLeoOxP3mOBhkmqujTM7Ic6hqb4DTKB5bo9KpHKL SmIDOGLPmNH4A== From: Jarkko Sakkinen To: linux-integrity@vger.kernel.org Cc: keyrings@vger.kernel.org, James.Bottomley@HansenPartnership.com, Jarkko Sakkinen , Vitor Soares , Peter Huewe , Jason Gunthorpe , Mimi Zohar , David Howells , Paul Moore , James Morris , "Serge E. Hallyn" , linux-kernel@vger.kernel.org, linux-security-module@vger.kernel.org Subject: [PATCH 1/3] tpm: Disable TCG_TPM2_HMAC by default Date: Mon, 20 May 2024 02:51:19 +0300 Message-ID: <20240519235122.3380-2-jarkko@kernel.org> X-Mailer: git-send-email 2.45.1 In-Reply-To: <20240519235122.3380-1-jarkko@kernel.org> References: <20240519235122.3380-1-jarkko@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Causes performance drop in initialization so needs to be opt-in. Distributors are capable of opt-in enabling this. Could be also handled by kernel-command line in the future. Reported-by: Vitor Soares Closes: https://lore.kernel.org/linux-integrity/bf67346ef623ff3c452c4f968b7d900911e250c3.camel@gmail.com/#t Fixes: d2add27cf2b8 ("tpm: Add NULL primary creation") Signed-off-by: Jarkko Sakkinen --- drivers/char/tpm/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/char/tpm/Kconfig b/drivers/char/tpm/Kconfig index e63a6a17793c..db41301e63f2 100644 --- a/drivers/char/tpm/Kconfig +++ b/drivers/char/tpm/Kconfig @@ -29,7 +29,7 @@ if TCG_TPM config TCG_TPM2_HMAC bool "Use HMAC and encrypted transactions on the TPM bus" - default y + default n select CRYPTO_ECDH select CRYPTO_LIB_AESCFB select CRYPTO_LIB_SHA256 -- 2.45.1