Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp2537761ybi; Thu, 4 Jul 2019 13:19:03 -0700 (PDT) X-Google-Smtp-Source: APXvYqw9qEYrjN/FHpxt6OlyaL2sctE9Hyso2a6sk4GNBFa1dalp2Cx0eoHpE0Ntuf0M32nLi6dE X-Received: by 2002:a17:90a:26ea:: with SMTP id m97mr1409692pje.59.1562271543573; Thu, 04 Jul 2019 13:19:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562271543; cv=none; d=google.com; s=arc-20160816; b=UbOoUXQmiYnbFgzyyzkxf2u4A1AAQGxunYphziwR79VE+16fxYyLiRwBp14Nt408Y5 a8hF5x+YtxFCxyW3P2RIjfm2XrbGqfeZfFcqVjlL8IzmOxW6zFY2nIxrnImE4AUmjjn2 fEdtfDqhIjijzr//SjE8xAdXfxeDoLhYDLzBNTu10Uk8zq/IFbD74MkKShkVVIY5TgZs /6/mQ8Ultqet/qoibq6sDeLR+/VEgJ8WQ9Zko8dISi2jr0/4ompJPDAVLopnSneYS0p5 vZ+Wik08RNyqtrM5Vu2IQ2NwgGYLB2ofiyMU0yI5p9iJvGh5/uBqOHCgObpGYGqs2wGo DJCA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=r1DN0hRorr5wrieXm1UBqKCsc6miGA75BoQM/AuQuhg=; b=gnTfW/+gQqpfr1zW7ib3ZnL04xMRfwXjrA+c3pwodFLRjI6J4AwLTAzQtGWsmxj3uQ 9Uh/KM8+XjcN3g00aQtMCZSS7SCK2HwsRiI8Izpf7XbFJ13gLuRmBPg3/BeJj/kABkPL 3T2C/4Dk4KRIoplFXRfR/I4c1b6HLOLZcik9/Gy1kbViFtvwVDnyBASWuSeF1WUkcQ+p MglmquohZ8dYBwxaPrR8jztsCygQBiBPPGyy/j8iWjB+QXGclRoZ7keP2LoamP0bt6+G cl8qgfRT5K62Awbhgdsk+En1TWVztyPixZjkoSnIEq1HRzJhmDWTTUyWWIC+BD7ZWEN0 mTBA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=canonical.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c17si5930414plo.46.2019.07.04.13.18.48; Thu, 04 Jul 2019 13:19:03 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=canonical.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727256AbfGDT7Q (ORCPT + 99 others); Thu, 4 Jul 2019 15:59:16 -0400 Received: from youngberry.canonical.com ([91.189.89.112]:50461 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726038AbfGDT7P (ORCPT ); Thu, 4 Jul 2019 15:59:15 -0400 Received: from 162-237-133-238.lightspeed.rcsntx.sbcglobal.net ([162.237.133.238] helo=elm) by youngberry.canonical.com with esmtpsa (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.76) (envelope-from ) id 1hj7sn-00065o-5y; Thu, 04 Jul 2019 19:59:05 +0000 Date: Thu, 4 Jul 2019 14:58:58 -0500 From: Tyler Hicks To: Mimi Zohar Cc: Roberto Sassu , Jarkko Sakkinen , Michal Suchanek , linux-integrity@vger.kernel.org, Peter Huewe , Jason Gunthorpe , Arnd Bergmann , Greg Kroah-Hartman , Dmitry Kasatkin , James Morris , "Serge E. Hallyn" , James Bottomley , David Howells , Tomas Winkler , Armijn Hemel , Stefan Berger , Jerry Snitselaar , Thomas Gleixner , linux-kernel@vger.kernel.org, linux-security-module@vger.kernel.org, keyrings@vger.kernel.org Subject: Re: [PATCH] Revert "tpm: pass an array of tpm_extend_digest structures to tpm_pcr_extend()" Message-ID: <20190704195857.GB6105@elm> References: <20190701131505.17759-1-msuchanek@suse.de> <8e4cc105b748c5395132b4d3d29d0d9b30a8720c.camel@linux.intel.com> <1562240882.6165.78.camel@linux.ibm.com> <1562255201.6165.143.camel@linux.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1562255201.6165.143.camel@linux.ibm.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hey Mimi! On 2019-07-04 11:46:41, Mimi Zohar wrote: > Hi Jarkko, > > On Thu, 2019-07-04 at 07:48 -0400, Mimi Zohar wrote: > > On Thu, 2019-07-04 at 13:28 +0200, Roberto Sassu wrote: > > > On 7/4/2019 12:03 PM, Jarkko Sakkinen wrote: > > > > On Mon, 2019-07-01 at 15:15 +0200, Michal Suchanek wrote: > > > >> This reverts commit 0b6cf6b97b7ef1fa3c7fefab0cac897a1c4a3400 to avoid > > > >> following crash: > > > > > > > > Thank you. I think this the right choice for the moment. I fixed > > > > a trivial checkpatch.pl error and added the mandatory tags. Can > > > > you check quickly v2 (just posted)? > > > > > > > > I already made it available in my master and next. > > > > > > Could you please wait few days? I would prefer to fix this issue instead > > > of reverting the whole patch. > > > > Nayna posted a patch late yesterday titled "tpm: fixes uninitialized > > allocated banks for IBM vtpm driver", which addresses this bug. > > Now with my review, and with Sachin Sant's and Michal Such?nek > testing, instead of reverting this patch could you pick up Nayna's > patch instead? It looks to me like the revert would also fix a bug that is keeping the eCryptfs module from loading when the TPM is in an "inactive" state: https://bugzilla.kernel.org/show_bug.cgi?id=203953 I just noticed that it was recently discussed here, too: https://lore.kernel.org/linux-integrity/1562244125.6165.95.camel@linux.ibm.com/T/#t I believe that the revert would fix it because the call to init_digests()/tpm_get_random() would no longer be in the path of loading ecryptfs.ko (which depends on encrypted-keys.ko, which depends on trusted.ko). If the revert isn't used, we'll need a different fix for bug 203953. It should be an easy fix but I don't want it to be forgotten. Tyler > > thanks! > > Mimi >