Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp3048278lqo; Tue, 21 May 2024 05:35:27 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUpw0tLJyKOVYUh7B3W8vvOgN6E2P6HpnMf4xrGMybIDSzqU3BwOsfO0zeQ+HKaXlEP1tPVrY8Z/HXhDJzbJyIc2Blw4A0IKSsDGCSSBg== X-Google-Smtp-Source: AGHT+IG77ZIqsugbPkOmibFxKVBhXzjZzsEji3WjutQ1/O7KUSILUt9gwyy7KBtqb8FHCwJ+uO3w X-Received: by 2002:a17:90a:fe16:b0:2b2:9744:5c70 with SMTP id 98e67ed59e1d1-2bd603a953dmr12483985a91.13.1716294927081; Tue, 21 May 2024 05:35:27 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716294927; cv=pass; d=google.com; s=arc-20160816; b=VA6Co2w3U3XaNOir/ivdUssMQh7GKQVaREHpGdHtYBNPZAPiffcMzYFrZJXVTlQ/9n CsgPbqjWCzBZm2uVlT+c01x79B+bkYvzBNrODdwgEKp5QCeX4HRLhj/uopHCk+iNWgsn 34hN9otxYiPnQjGR5FojbpFG6mEvYMF9lrzzjeA+GArJZpLOndiEJh8WsZbiaEYryTva 5vLW5mBj7OCBpmHTcqlrg5wmvh3Kl9yGLGq1GJ/9oZSkqUWqDHtvk3m18sCf3v8qV82c Dd27fF5a0r05rCuC/eoPgw3OQjWc4aNFnfZ/HBspxNOeWIncjzXZxT0dVImQbXoC81EQ 9vxg== 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:user-agent:references:in-reply-to :date:cc:to:from:subject:message-id:dkim-signature:dkim-signature; bh=4gpIOVWy2gMmE84xRxGYRt1B4E6MGac1ILXwVJ7ZJ1U=; fh=PBJszKfOuF7bnu4KMjYiO7NcHK+w2SF3QXhw73B4aug=; b=0095eTUrTEgtrcMwYchIgrZTU5r2uP2/LGaaGitOccE4gkAcW/elTD9gFTF3ciJpi7 3KCJRs7EhazkARIsElUk/rrZjh1hMT3C4913v3d0FLFNUAAjKQ0FRCBYEf6ASwp5LQQE 3hzDLdjVIigk4qqD3rpbft/vhLDnpcjX3/UsL2WiNLm2SsUtdOgLuzdoB71myqn0K9kt wLPEXA3wLS7XiSEShfzEEwhwxhOSB9mxE+SUJib0ye71as3xLzZOj74TxjZm/gw2g4// FipjYmeIISVVgRjQ3eLaAiQT/TPDHZbmaJfv4nFVd6TlMtYmCnwivkJS0UgjN738sfFF CXGA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@hansenpartnership.com header.s=20151216 header.b=rV6VPLZb; dkim=pass header.i=@hansenpartnership.com header.s=20151216 header.b=rV6VPLZb; arc=pass (i=1 spf=pass spfdomain=hansenpartnership.com dkim=pass dkdomain=hansenpartnership.com dkim=pass dkdomain=hansenpartnership.com dmarc=pass fromdomain=hansenpartnership.com); spf=pass (google.com: domain of linux-kernel+bounces-184952-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-184952-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=hansenpartnership.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id 98e67ed59e1d1-2b671163385si1233434a91.81.2024.05.21.05.35.26 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 May 2024 05:35:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-184952-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@hansenpartnership.com header.s=20151216 header.b=rV6VPLZb; dkim=pass header.i=@hansenpartnership.com header.s=20151216 header.b=rV6VPLZb; arc=pass (i=1 spf=pass spfdomain=hansenpartnership.com dkim=pass dkdomain=hansenpartnership.com dkim=pass dkdomain=hansenpartnership.com dmarc=pass fromdomain=hansenpartnership.com); spf=pass (google.com: domain of linux-kernel+bounces-184952-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-184952-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=hansenpartnership.com 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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 4BEA8B2376B for ; Tue, 21 May 2024 12:33:28 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 921AE7641B; Tue, 21 May 2024 12:33:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=hansenpartnership.com header.i=@hansenpartnership.com header.b="rV6VPLZb"; dkim=pass (1024-bit key) header.d=hansenpartnership.com header.i=@hansenpartnership.com header.b="rV6VPLZb" Received: from bedivere.hansenpartnership.com (bedivere.hansenpartnership.com [96.44.175.130]) (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 BB69128E7; Tue, 21 May 2024 12:33:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=96.44.175.130 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716294799; cv=none; b=PSVWQiOkAsWZIp/44ANqRo+4dd70Cv/vA6f9Ll9iA3vsmZuqaijzGovom1f+RC4T9uyWAhSS3Zpjy9ze3hPbk0hcHgkN92fSGwEd8ha7p5F6/6Ur4H1S922qMSCjexuWjN4T2aKWOHwX1v4KMJo7+Zg4LV5SIqAmPVply3cT4ZM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716294799; c=relaxed/simple; bh=4vgdnofIwNb1ajkPrbOT3Lbl60nVqFJx34gAkwyuadw=; h=Message-ID:Subject:From:To:Cc:Date:In-Reply-To:References: Content-Type:MIME-Version; b=Z/bDkrZ+R2MgHDryzUeLq8YfxvXpbGSeCNwOqAif7mYbfn/h7nu3qDwBfAmrmMDgCMMQzGclSnWtTkIuYbIFYwVD1iL+4/jZvRkL+/k2P9nJAhNYMgTECCgOiDH51E5hvO0WSja7Dt7WShb6/tf3tJ17PGwCr1vWOGw0KNcuom4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=HansenPartnership.com; spf=pass smtp.mailfrom=HansenPartnership.com; dkim=pass (1024-bit key) header.d=hansenpartnership.com header.i=@hansenpartnership.com header.b=rV6VPLZb; dkim=pass (1024-bit key) header.d=hansenpartnership.com header.i=@hansenpartnership.com header.b=rV6VPLZb; arc=none smtp.client-ip=96.44.175.130 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=HansenPartnership.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=HansenPartnership.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=hansenpartnership.com; s=20151216; t=1716294796; bh=4vgdnofIwNb1ajkPrbOT3Lbl60nVqFJx34gAkwyuadw=; h=Message-ID:Subject:From:To:Date:In-Reply-To:References:From; b=rV6VPLZbcuitBrYL9HiTHXTUIHK4acf3fvSRb+IP3bLyn9wvZQ6CcnMgX/v+9kWN3 Ye16A4Mmp86Rmb+HoQfQeallNhoDqUPfvnOj+i+iobx5zLbbNEjJPNWk0Ijy/JryDB intlJ6gWa7w5GhiyBgj0td1wEZjbGqjUv6iwT8dQ= Received: from localhost (localhost [127.0.0.1]) by bedivere.hansenpartnership.com (Postfix) with ESMTP id DFD5412872E9; Tue, 21 May 2024 08:33:16 -0400 (EDT) Received: from bedivere.hansenpartnership.com ([127.0.0.1]) by localhost (bedivere.hansenpartnership.com [127.0.0.1]) (amavis, port 10024) with ESMTP id m6rnL6AmJ_J8; Tue, 21 May 2024 08:33:16 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=hansenpartnership.com; s=20151216; t=1716294796; bh=4vgdnofIwNb1ajkPrbOT3Lbl60nVqFJx34gAkwyuadw=; h=Message-ID:Subject:From:To:Date:In-Reply-To:References:From; b=rV6VPLZbcuitBrYL9HiTHXTUIHK4acf3fvSRb+IP3bLyn9wvZQ6CcnMgX/v+9kWN3 Ye16A4Mmp86Rmb+HoQfQeallNhoDqUPfvnOj+i+iobx5zLbbNEjJPNWk0Ijy/JryDB intlJ6gWa7w5GhiyBgj0td1wEZjbGqjUv6iwT8dQ= Received: from lingrow.int.hansenpartnership.com (unknown [IPv6:2601:5c4:4302:c21::a774]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (Client did not present a certificate) by bedivere.hansenpartnership.com (Postfix) with ESMTPSA id 8614412872C0; Tue, 21 May 2024 08:33:15 -0400 (EDT) Message-ID: <17dc838120b56ce342c34611596c7b46dcd9ab5a.camel@HansenPartnership.com> Subject: Re: [PATCH 1/3] tpm: Disable TCG_TPM2_HMAC by default From: James Bottomley To: Jarkko Sakkinen , Vitor Soares , linux-integrity@vger.kernel.org Cc: keyrings@vger.kernel.org, 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 Date: Tue, 21 May 2024 08:33:14 -0400 In-Reply-To: References: <20240519235122.3380-1-jarkko@kernel.org> <20240519235122.3380-2-jarkko@kernel.org> <850862655008f84ef0b6ecd99750e8dc395304d1.camel@gmail.com> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.42.4 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 7bit On Tue, 2024-05-21 at 10:10 +0300, Jarkko Sakkinen wrote: > This benchmark could be done in user space using /dev/tpm0. Let's actually try that. If you have the ibmtss installed, the command to time primary key generation from userspace on your tpm is time tsscreateprimary -hi n -ecc nistp256 And just for chuckles and grins, try it in the owner hierarchy as well (sometimes slow TPMs cache this) time tsscreateprimary -hi o -ecc nistp256 And if you have tpm2 tools, the above commands should be: time tpm2_createprimary -C n -G ecc256 time tpm2_createprimary -C o -G ecc256 James