Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp1033753iob; Fri, 13 May 2022 20:25:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzsbfZuwn1Z4eTG1O+SLXtY8lp5e3LWzxMmJALnZpfgl3sh7F63pQk+vYDfE8Ywqh3kRIdR X-Received: by 2002:a5d:4645:0:b0:20a:db5d:258f with SMTP id j5-20020a5d4645000000b0020adb5d258fmr6015302wrs.135.1652498755875; Fri, 13 May 2022 20:25:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652498755; cv=none; d=google.com; s=arc-20160816; b=ICuuG2n2bCV9Wv3AWye73wIhweLlT44+H54ec7yYGb72gnp2Je1E8uRJBjB2t+2eAa oE3IRdaj+1tatlCO8T1FRwNwUyYhk5R0Szbg3SffF8XgjB7PSvekljyzoRWN2urN0cxC Zn8qSx0/guCLCnUNG53sLE603a4aAJKuwRQqykMsMG1uWnyjnnIrlzYcBCQ2dyBPpQZE 2NomN5aiHNjr/gtF/yJfhcbMNjzrCy4PFQMVWzDtl98idyL9KB/xy19/oFEdlZtqDZeZ BXXt76h30CuVcyTa41c77+maqqjng5OZiW0F7flkESevMyTEWIs7ifCm+NOGO/xY3S/z XuKA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=5Cpd7CptKiDObZhU3OZ1vptsWYLkMUlTuuBfmIG9Axk=; b=gBdBPWqNWZCxXXYMWj7iyHGns5y1ytFBKn3KwKs/2dFfaco4W8evR/KOHgWQcDCil9 zgwY7a6YdVuluXW8GVxAInO3LsehO99Ifb/hUlr0GI1FWZe7MlKnalyvPU2XaQWPzYlm NEeaKJULO5dafzLIFfvHHu71VE1bNtYjRaIm2b3kwRpF6jVik4CinC2+QF07RpSgb4ON 57KFpl3Al3TCaoXFhIMf9VovKneOdCjynKJMLdf5ks2TBiOVe4l04ZchAGKFYdTuNqQQ p5AGe84Q1nYT9otVBb85pILD+Yo+9bUhyicc1Llr5lxt6GJ3YPFopykAfMxdKgsPfIQt GcKA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=W4+pFJg5; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id t16-20020a5d5350000000b002060b2c217fsi3285292wrv.24.2022.05.13.20.25.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 May 2022 20:25:55 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=W4+pFJg5; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 986512E040D; Fri, 13 May 2022 17:03:17 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1383221AbiEMSBQ (ORCPT + 99 others); Fri, 13 May 2022 14:01:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53416 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244159AbiEMSBP (ORCPT ); Fri, 13 May 2022 14:01:15 -0400 Received: from sin.source.kernel.org (sin.source.kernel.org [145.40.73.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EC8FE53B6E; Fri, 13 May 2022 11:01:13 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sin.source.kernel.org (Postfix) with ESMTPS id 56167CE32C7; Fri, 13 May 2022 18:01:12 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6D195C34100; Fri, 13 May 2022 18:01:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1652464870; bh=bT9WSf6Q+kU3vx6ueinWSpS4WAwrSc/VPDx8rqRStic=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=W4+pFJg5Hw8C3SdIDJU44wYbaJzEdL7WJargPWrFnv4voHOWNoH02serFgqUNbvWp 6JPhSoVj25s+4V6LD5h+nYc8eSGeMu5Drv5WHtRIFZ8g2YuepmdjX7THLQjVOh2qNG p20Z+sARLjeYLDdrwhegvEyAxORRake8WR6y5tG8sDXl65tLaf6U/SMxI7a271giuR 4gO2p+pxHcitNTG4AmTYZSu9ni5EH4vlxGv/G1trkxsvxX7ReJSKcNGSOYt8sj3NOY 3KOEAAH1Rg9yKheOmPvLPgzGHGL/O3HqnSxn0kKa/x2t0KDBAQXtgIYm8W3lsj7sIw WHm88OX8nVsBA== Date: Fri, 13 May 2022 20:59:40 +0300 From: Jarkko Sakkinen To: Lino Sanfilippo Cc: peterhuewe@gmx.de, jgg@ziepe.ca, stefanb@linux.vnet.ibm.com, linux@mniewoehner.de, linux-integrity@vger.kernel.org, linux-kernel@vger.kernel.org, lukas@wunner.de, p.rosenberger@kunbus.com, Lino Sanfilippo Subject: Re: [PATCH v4 2/6] tpm, tpm_tis: Claim and release locality only once Message-ID: References: <20220509080559.4381-1-LinoSanfilippo@gmx.de> <20220509080559.4381-3-LinoSanfilippo@gmx.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, May 11, 2022 at 09:29:57PM +0200, Lino Sanfilippo wrote: > > > On 11.05.22 at 13:27, Jarkko Sakkinen wrote: > > On Mon, May 09, 2022 at 10:05:55AM +0200, Lino Sanfilippo wrote: > >> From: Lino Sanfilippo > >> > >> It is not necessary to claim and release the default locality for each TPM > >> command. Instead claim the locality once at driver startup and release it > >> at driver shutdown. > >> > >> Signed-off-by: Lino Sanfilippo > > > > We are doing what we're being because of Intel TXT: > > > > https://lore.kernel.org/tpmdd-devel/20170315055738.11088-1-jarkko.sakkinen@iki.fi/ > > > > Unfortunately cannot accept this change. > > > > I do not see how the patch affects the crb code since the only changes concern the > tpm_class_ops of the tis core. AFAICS crb uses its own set of tpm_class_ops > which are still used to claim and release the locality. > > Or do I miss something? Ugh, yes breaking everything when TXT is used with tpm_tis. > Regards, > Lino BR, Jarkko