Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp1464317lqo; Sat, 18 May 2024 04:34:40 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXZ93YUU4Qbmvfo/a3qyQ1+O4cKkQp7O2KkyUISBUp27IhPwfJ8AuBwcD9flYdQYzyduUOSLUTm3JJqrjblZay9JUZg3Hr8FrLdCFo9og== X-Google-Smtp-Source: AGHT+IGYRQ+0h5N3lw1C+fsnvYBnB4HeO0XjRTl+Nh6hIiLPRdhtLiYER+PT9+G29EBSF8eDdN78 X-Received: by 2002:a05:6512:3da2:b0:522:2fa0:c3f5 with SMTP id 2adb3069b0e04-5222fa0cd89mr19727268e87.62.1716032080011; Sat, 18 May 2024 04:34:40 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716032079; cv=pass; d=google.com; s=arc-20160816; b=guDitwyf40kfwKsuBvP2E5pWA3VkMEyfgC/o4Ebg83T/4Sf0mA/pZv9/8Uh5UGdAz3 JujEprG1/j1LHs+B3uOkIJ5Da2zLKtWWC0YT2kluOYE/xJ+BohJtdHHta69sig8ITE4T fRorscmPs7GDG9J3lrhgMn+XCiN/+H5Q90f9kJo8NuvEXzWqA3a0PWL6syk8VAIXzbvr OH2n78qYQwOCoPbLLZ5atx8RrLYtur/rGm+cIyM+MvxvC0beb9YaBReiBhvjn8x7J94u 1iKsHpUd6G0osDCiRtGgJXlS0a6SBtx6MzjgEIR0VOiZ/PwbWxijodt9jb5zyBVOe/ln LFUA== 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:message-id:date:subject:cc:to :from:dkim-signature; bh=6+hfxtfRlxJDktcJQPIcH6s/Drm+qi7DfHbuhzfz/P4=; fh=uziFHAbi0yFJcc2bR5U80G9G721fGW7c0KB+3o+iS3g=; b=M1d7Lw80CVULHlujBO7BZlf7JW2vyqcZlLdGLWwiOFJeQgo1gQj2im0ycbLU0kzABd 8w84563CwWKPo8GxuHjetEZFr7RpnEbuacC0850PSTnd8DDoICojR01bMsPxZOyz017i pR5wr25/tZKS4CdiqN6OrzndLacGLdVavjA/e+CwwP2Z1/leDrS6mmyp72r5huCEhLgY cBHG3YBEhm5MdBsQR6TC9UEIMHn4PjRh/JgW+gbz7z607Sq28cDxavRY7chxXVlpUBrI mfJjmb4dlxqxZjmk9N7bgOjRQwxJWt7Lg03ZXOLysX5uec0R9JtgCkpD5EV/VysRswGy hiVQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=OiDzSSuc; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-182831-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-182831-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. [147.75.80.249]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-57520a2c460si1459485a12.159.2024.05.18.04.34.39 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 18 May 2024 04:34:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-182831-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=OiDzSSuc; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-182831-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-182831-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 B6B201F21879 for ; Sat, 18 May 2024 11:34:39 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C091D3A8C0; Sat, 18 May 2024 11:34:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="OiDzSSuc" 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 E6B4D39FC1; Sat, 18 May 2024 11:34: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=1716032073; cv=none; b=fwbWQCth9qRRwkoGMdmyZ6WZOLddky4xOaJNljfaspTlGhAkNuANZgc4kZzPZ5kUigBOt49qcTkW6cMR5qhh0eR/kBB8uK5SRtBnoH0r6PBpYULFaNYO6NgN0iPA4LeZRHnkJJ3QaCYpv9tsnWgwRF2p5vEqg0UjaHcOcuZlx4E= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716032073; c=relaxed/simple; bh=lh54TV2ei8xvwUkn4mkrDUhs2EQCaYP+o8zISbosFVo=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=pNruluUG8h/Njfq9LvG35s3sAR13vAXbZQ6cgpIdP/ezTIVaDnd/4txwzNOloheFjhqvUFPiFSfO13hBAMTeuBAUXMZxqzjo2s+a9yjqBWRTcypcAKdrBjY3IHuwY5IUhq6W52JH0upQWbxGw+YLVb7TWodeXCMdYFkURMrhMP0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=OiDzSSuc; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id E2BADC113CC; Sat, 18 May 2024 11:34:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1716032072; bh=lh54TV2ei8xvwUkn4mkrDUhs2EQCaYP+o8zISbosFVo=; h=From:To:Cc:Subject:Date:From; b=OiDzSSucr/DxyvTLqvETRdx5EVpumXoBBJiMPCxfLsYaEKZgPCrWhQPjzo+8jgfhC vC3Ql87au/4nFYBr3hiOtAvIAoE36UaLXvD9BVStKz+oD8W/GoelAnoYWm/Nagbp6q 7rh5LG71FshBVpSSKb6z8WwJSR8txuQQPArLvWea51iZOh2fvrYU8znCii+mAg6L4Y W2hacrzNGKepwiiqZIqTfeirpwX/b5DJL9xJ2oKXQFThGACWMGzN4Bh+cnTKYLM9Z/ N/qSDoOLx4gMaL3aRAFH1gtnG2RaYVzGJQmCaCtJbnv3Nxtkhs2v9BwRJ/Jjya2DjW bh2C6zZi+y0Jw== From: Jarkko Sakkinen To: linux-integrity@vger.kernel.org Cc: keyrings@vger.kernel.org, Jarkko Sakkinen , Vitor Soares , Peter Huewe , Jason Gunthorpe , James Bottomley , linux-kernel@vger.kernel.org (open list) Subject: [PATCH] tpm: Disable TCG_TPM2_HMAC by default Date: Sat, 18 May 2024 14:34:24 +0300 Message-ID: <20240518113424.13486-1-jarkko@kernel.org> X-Mailer: git-send-email 2.45.0 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.0