Received: by 2002:a25:b794:0:0:0:0:0 with SMTP id n20csp2978300ybh; Mon, 5 Aug 2019 09:56:04 -0700 (PDT) X-Google-Smtp-Source: APXvYqxl8uwzKwNNAp0GgsgpbkSZ2YUppg+lrkcyLveqJ/NuWMfJSUAJwjOeL9w8Ji7z8UkpFmrA X-Received: by 2002:a62:e417:: with SMTP id r23mr71420248pfh.160.1565024164170; Mon, 05 Aug 2019 09:56:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565024164; cv=none; d=google.com; s=arc-20160816; b=DKtiRH45wN2Ia2qKNpA/ctaQg2bwXPDtJinIrm0a+XBR6ZYxeo1lABr1zK7DNBfP9P LWFs3urfxczvHXyZeoZDUPv4NGTlZ4XXmtt7EU5gwrm1hOo/NsRHPhYMVhc6BQFtmtLp zwkd5r41ZL0/lGBM+wM7UIbDicRQAlkpV9AWxTSDMDNBXgunBb6KEyABpF0lfKMQf05G Jaw8gFg/9HRJ2OJ8409t7ckPa8scInEWCe/dHPzydsLPRW6A4nxOqDgDpzVPh4bt2Dpp DHc0hhq6f5qxwFT6LhxleSjxBfBNqDk2YmBu4wxNV0qQg/zgQqu1Px6mspL1xz+61WJ3 w2Fg== 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=0DMPxC8sijerwf44eMpggRSPFHlIa1e1cZA8DNk8r9I=; b=l5O/eaeL2rGfYJyeCII3Coif5xfZrQpI/8LAEPugUsWL+ED8hwv2LyV9VEFx2rkmW0 0viF1NS258aw2POrWUellkG7KQ+d7HexTK1fB+L6WgtPXZl32XUL8ivDLdgZZtuxn+s5 bsDl5YhGw0T0e+4/9BG+ljYhd7ah5SVQP3DSsBuz2HNFnr1dUmBu378v8ga3bdbLqN18 aqtJpHeEtzi7/C9z3j9srhNLy6XTL5wnp6/EwSgRTacKl67oGXEQC1/a32MLU6t+lxFe iR2Sd4LETaWNSkq+o/sby5wQJfkILsrFE9Smlr1dpybjIUfpKJoAbu+OIzZF5AGB+nDS AruQ== 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 a190si46605519pfb.127.2019.08.05.09.55.48; Mon, 05 Aug 2019 09:56:04 -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 S1729836AbfHEQx7 (ORCPT + 99 others); Mon, 5 Aug 2019 12:53:59 -0400 Received: from youngberry.canonical.com ([91.189.89.112]:41564 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728760AbfHEQx7 (ORCPT ); Mon, 5 Aug 2019 12:53:59 -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 1hugF6-0001El-Iz; Mon, 05 Aug 2019 16:53:53 +0000 Date: Mon, 5 Aug 2019 11:53:47 -0500 From: Tyler Hicks To: Roberto Sassu Cc: Mimi Zohar , Jarkko Sakkinen , jejb@linux.ibm.com, jgg@ziepe.ca, linux-integrity@vger.kernel.org, linux-security-module@vger.kernel.org, keyrings@vger.kernel.org, linux-kernel@vger.kernel.org, crazyt2019+lml@gmail.com, nayna@linux.vnet.ibm.com, silviu.vlasceanu@huawei.com Subject: Re: [PATCH] KEYS: trusted: allow module init if TPM is inactive or deactivated Message-ID: <20190805165347.GD3449@elm> References: <20190801163215.mfkagoafkxscesne@linux.intel.com> <20190802142721.GA26616@elm> <20190802194226.oiztvme5klkmw6fh@linux.intel.com> <20190802202343.GE26616@elm> <1565020459.11223.179.camel@linux.ibm.com> <20190805160451.GB3449@elm> <0d9f2f6f-9a69-5169-a92d-9ca7de3c0d18@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <0d9f2f6f-9a69-5169-a92d-9ca7de3c0d18@huawei.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 On 2019-08-05 18:51:09, Roberto Sassu wrote: > On 8/5/2019 6:04 PM, Tyler Hicks wrote: > > On 2019-08-05 11:54:19, Mimi Zohar wrote: > > > On Mon, 2019-08-05 at 16:50 +0200, Roberto Sassu wrote: > > > > Regarding Mimi's proposal to avoid the issue by extending the PCR with > > > > zeros, I think it also achieve the goal. > > > > > > Roberto, removing the following code from init_digests() would be the > > > equivalent to the prior code, without needing to make any other > > > changes. ?Let's keep it simple. ?Do you want to post the patch with > > > the change, or should I? > > > > > > ret = tpm_get_random(chip, digest, TPM_MAX_DIGEST_SIZE); > > > if (ret < 0) > > > return ret; > > > if (ret < TPM_MAX_DIGEST_SIZE) > > > return -EFAULT; > > > > > > As I can't duplicate the problem, it would need to be tested by others > > > experiencing the problem. > > > > The bug reporter tested Roberto's last patch: > > > > https://bugzilla.kernel.org/show_bug.cgi?id=203953#c8 > > > > We should Cc the reporter on future patches or at least leave another > > testing request in the bugzilla. > > I don't see the reporter's email. Please ask him to test the new patch. Done! Tyler > > Thanks > > Roberto > > -- > HUAWEI TECHNOLOGIES Duesseldorf GmbH, HRB 56063 > Managing Director: Li Peng, Li Jian, Shi Yanli