Received: by 2002:ab2:7855:0:b0:1f9:5764:f03e with SMTP id m21csp391808lqp; Wed, 22 May 2024 07:39:50 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUyGl1j6cGKQjCXvhJ6Fs3IzKaOhbF9MAl7HsEr3ELwb9md0xeJgZIchkPn5mIvcqImtxNlLBVR3eYKp46q+YJ7U9yT8JtrZtnD/thpRg== X-Google-Smtp-Source: AGHT+IFjeCxgqIbJ7u/boz071j0XWeaySR5f/4haG2ljOKw8gAqf75yS0UERrmKyQp6OGTlLeMPf X-Received: by 2002:a05:620a:5685:b0:792:d9f0:5572 with SMTP id af79cd13be357-7949944438dmr255536985a.20.1716388790437; Wed, 22 May 2024 07:39:50 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716388790; cv=pass; d=google.com; s=arc-20160816; b=J8MePGj9HTCNXRN5TwY/mkpYB9yFcuCvehsNMSLhno+AmwIilaIOhfA5kzFdVkiZkU 0MdJrzEqMvoLp73NSpoFqfdIlmXbdNQ+FH51iXMvMPs5E43r5MZp3LZXRCKc/Py7ejyp 1708lilFsep30Qv18jp5ifONMI+lSFSXTzMtZ35aAJtBtxdwj82QFqs74QyeKZersFyL N70X1Cl+4sjlvx7D/1FkGThiOYGTyHHQ4n11C35Ttcd1T6V3LLfx2DqeBu6mJWv78VJ6 MDfILnSsvxuDfTgOs4X1XV0449iegyh+uvWsf3uDjj4mMM90sRNsXF2y3snQVa9PGB6O EM2g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:references:to:from:subject:cc:message-id:date :content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:dkim-signature; bh=bc32uUKCMt2hp00S6NAo5BP4d6ECu1MknBMrUdm9D8A=; fh=+0MIkfyLH9VsjV6wJ6SrqpABvaisCEVqiihk8QJqKVw=; b=sCrAI5K307lpkHwojtXncCT9P/ScV2t5ECC9GKlBVvTP0Ac0ueZy4Mq/5g8n17N/SH 99p3Ds7KzQMzpv4dtKe0mC8KzyR/R+OW2LYNnlXf34yfLCD6iZ0WDtlQCQDufbNJ6/6j gk1HoykFH6rUJ1b/fmJv+1QhTun7KlnFmSLYEpv5AQ8pxvGQ4IzJGL9PIADMlBZ/Xn+d MFHZipDUNhLyweOOMRIh1dnSJvLpDnZ2xNPKjC/2Qm/W36irtgf3rmMTIcRdroV5h5lJ BaUAYrdKKQRVhKniQ5StbSmdkqsTCrnLyItkXfMCtl/xkqy+EAQ05SdETRWbSaFYW987 GiBA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ZBMSTYpD; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-186374-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-186374-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id af79cd13be357-792bf30b5f0si451211785a.350.2024.05.22.07.39.50 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 May 2024 07:39:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-186374-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ZBMSTYpD; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-186374-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-186374-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 2D6651C20B53 for ; Wed, 22 May 2024 14:39:50 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 61A841C69D; Wed, 22 May 2024 14:39:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="ZBMSTYpD" 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 80A7717550; Wed, 22 May 2024 14:39:41 +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=1716388781; cv=none; b=lxOu4G0o0Olh7XUOo/eh6or7ZMnjATLwcNF2TAjyG8vl10z1CS2d2fQjDkJlNNv1KD6T+gLJ5f5OptS4GcYfBjXgq9irPvMxLTv6l3E9jGqTQhFcx4ocDOAH1nmpt8TA+vw/Usmh527KGWLI4qY6XnDtbySRH5+ScAjcl+8jS/I= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716388781; c=relaxed/simple; bh=hmqWc34qySE/ifAYgUKNgLhNP/qYm75CqrN0pa8Ttrs=; h=Mime-Version:Content-Type:Date:Message-Id:Cc:Subject:From:To: References:In-Reply-To; b=A0YGFfdMwAbm3oztBVwSe+ieCLq+B/tBfF9cHB4nJiA8y+0B73sMAW/AxHiEqKEOWtfUHlESvCMdX09EiimIJBSfvRhCSZJAFL2hDrZashy9M31dxDGHIaRZUHPq01E+I/1gkFE03gkmsiYN8gg9ozjedKp5nhLLtKTtUB63vCQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=ZBMSTYpD; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id BF499C4AF09; Wed, 22 May 2024 14:39:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1716388781; bh=hmqWc34qySE/ifAYgUKNgLhNP/qYm75CqrN0pa8Ttrs=; h=Date:Cc:Subject:From:To:References:In-Reply-To:From; b=ZBMSTYpD7JiEJeqp2nKxkkEnq1evNKDPKrvJMV/LAknznCysVJzafPCJfSQwT9uys UkTf7A6tZWTHtM64n1r3C5auETya1bVUY8HJDqqXRxfxsbfxgOp8LOEvwoBwuJ/jGB eCeQj4dFz5QbBHuIWYWnS0y5TSV1dRdgRSGm12S1jmf7avqUH9ZudjaHlFYW9EGLqy DEssBHRhGf3zl5B/Ij7gFOptPD1GllTfZZefjq+pdHUXliNIjJA3Pl79pnI1Ey6eCG K6ss4pNI6c3UAblNwQS59VGjzpGUj5ep3T5EoqrlyinBEi9UwPUKFMD/w8nAXDz6b+ xGVO6/QsLmuLg== Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Wed, 22 May 2024 17:39:36 +0300 Message-Id: Cc: , "Peter Huewe" , "Jason Gunthorpe" , "Mimi Zohar" , "David Howells" , "Paul Moore" , "James Morris" , "Serge E. Hallyn" , , Subject: Re: [PATCH 1/3] tpm: Disable TCG_TPM2_HMAC by default From: "Jarkko Sakkinen" To: "James Bottomley" , "Vitor Soares" , X-Mailer: aerc 0.17.0 References: <20240519235122.3380-1-jarkko@kernel.org> <20240519235122.3380-2-jarkko@kernel.org> <850862655008f84ef0b6ecd99750e8dc395304d1.camel@gmail.com> <17dc838120b56ce342c34611596c7b46dcd9ab5a.camel@HansenPartnership.com> <2dd8d49516ec9c7cb8c1182b5b8537b1e82d7067.camel@gmail.com> <56e52200bd9ede6bcdcc907d24bd4a3e0dddd24f.camel@gmail.com> <0d925d801d8988bb55afa476fb0564b052d54e62.camel@HansenPartnership.com> In-Reply-To: <0d925d801d8988bb55afa476fb0564b052d54e62.camel@HansenPartnership.com> On Wed May 22, 2024 at 5:20 PM EEST, James Bottomley wrote: > On Wed, 2024-05-22 at 17:11 +0300, Jarkko Sakkinen wrote: > > For tpm_crb we should actually disable HMAC at some point. It is > > essentially a performance regression for it. > > You'd think that, because of the shared buffer and no bus, but you > never quite know. For instance several confidential computing early > implementations used the crb interface set up by qemu (i.e. over shared > buffers which are readable by the host). For them the only way to get > security is with sessions. Even with the default Intel CRB, the TPM > transaction isn't handled directly by the main CPU, it's offloaded to > the ME (which we all know google loves because of its tight security > boundary). It is entirely possible to imagine a software interposer > running in the ME snooping the CRB buffer. A very different type of > attack from the LPB interposer, but plausible non the less. > > James Should have put "consider". I've tested with crb and spi and have not noticed anything get stuck. One more reason to run tests with that Celeron CPU from 2018... BR, Jarkko