Received: by 2002:a25:b794:0:0:0:0:0 with SMTP id n20csp2927530ybh; Mon, 5 Aug 2019 09:06:01 -0700 (PDT) X-Google-Smtp-Source: APXvYqx4K5kOrY35LTZ5BCzzLVRIO9h0YCKuQW0XVwvKnrSTpqwOFj0TQgogcORDEUYG45ETJN48 X-Received: by 2002:a17:902:a9ca:: with SMTP id b10mr69773113plr.69.1565021161053; Mon, 05 Aug 2019 09:06:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565021161; cv=none; d=google.com; s=arc-20160816; b=BHs6loIgI6H3T7QHwmOieBsxXTxF6TK1gnfPLRQ0pI5LMrNZdchh+H6XjpMQ3TfubP 0MxGqD8RTRtKgTgoYeXEJWqnja2YQJBsw1I7ak8jhUd5SkadMhEKZ/CqIbgbu1XdOmKj WknSKOPkvfdzqAO4tfgKy3rfKaI0BlxKq2X+IdCQLlcDHHI0VKvJxPKydwmuK3aDVNWn G5j5G0vr90+hmy/P6QUtnVtMhW0Gk4eFUuABgE/Be+JcDmasoJV4wF6hzDE+Cp49qII6 ZeZ5x/pVSYrZ+SebrDXc9CiEjXwHkv+JqKDVLUARYTOoaFkjs1I5BD3DBB2hpyr968qO VoSg== 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=Luvqanj9zky5zWaBDRdaqHb5ACnPld2HjC1dSw6V7mY=; b=IrgrCguX69ahbvoQpgExcogGOeb8DgF+JWQUi6pxOCvJKFLA2SjEmgd9RN0R0XFnFV n5/XEl9ILC3z8L5YjVjA2gEC92FEF9OXdOoDoieLeDuttbJGc0YDTIZUfSm6aQGSB0ld 1QGzP7b8aBO4He/hXNLFsEUCuVrFNtqC4jditenI+eGDdK/LV71jRXxYvcUa7yIx35gA vK+QkTCI7HOfVu4u9xhT8X8+dSxKNEiiNPsfADfUsDgSUz9rPtm3NUn703H8yfBBh3cW SFMrKKE7bSXJUKs4NHxnDFs4kclWERPmHOaZJxRlqKrnN/wk2X7w7U4+7M0XqPzqRC1I ljiQ== 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 br15si12888698pjb.13.2019.08.05.09.05.45; Mon, 05 Aug 2019 09:06:01 -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 S1729234AbfHEQFI (ORCPT + 99 others); Mon, 5 Aug 2019 12:05:08 -0400 Received: from youngberry.canonical.com ([91.189.89.112]:40456 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728759AbfHEQFH (ORCPT ); Mon, 5 Aug 2019 12:05:07 -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 1hufTk-0006Pg-P1; Mon, 05 Aug 2019 16:04:57 +0000 Date: Mon, 5 Aug 2019 11:04:52 -0500 From: Tyler Hicks To: Mimi Zohar Cc: Roberto Sassu , 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: <20190805160451.GB3449@elm> References: <20190705163735.11539-1-roberto.sassu@huawei.com> <20190711194811.rfsohbfc3a7carpa@linux.intel.com> <20190801163215.mfkagoafkxscesne@linux.intel.com> <20190802142721.GA26616@elm> <20190802194226.oiztvme5klkmw6fh@linux.intel.com> <20190802202343.GE26616@elm> <1565020459.11223.179.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: <1565020459.11223.179.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 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. Tyler > > thanks, > > Mimi >