Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp142247imu; Thu, 8 Nov 2018 06:17:19 -0800 (PST) X-Google-Smtp-Source: AJdET5fn9Bjj005Lr521mpbYt2Wr5n+SRP7VBhA7PvNgiFuKmSclrihbPq/5W8CStsEHX3PgcGis X-Received: by 2002:a17:902:d88f:: with SMTP id b15-v6mr4566453plz.207.1541686639136; Thu, 08 Nov 2018 06:17:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541686639; cv=none; d=google.com; s=arc-20160816; b=UkUC1KEe49v1lE1BG0WQ4QuNzMSysrw59K0ICa8bZ1zpKmieSGB03cq4uNiKiwug5h 4rbWUu03DwUMEzZBioSoWKWuJY/bRmgLLAUl+N0OACK99cnslYbADReRSMVm4y8qWuBH xz7vUwvvz/ELeiCXcNAuwHAsT+hiVwKaKFsL8QuDEEdArNCSy4GAIGoZecu1iF1qymj3 MhFTwDpbFBH8c2dH/xIjaqbm1W8zoKRQulot44X8ukLpgUR4ne0RsP8rnnjz0rHGwTmk Dioq1TiBTKWVy6F18KCa669fdxPbPEd9+BHDJXUg16qAS6F5ypxMpN7nmuVbyndyW5LS J7KQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=DxoQ5yIaIsmissiVeOcvho+piV0rQ/pCMjj1Krd2BB0=; b=sm1kp1T45d8PZ28L9M7+gcPUIDGva5DbR1E3tVduhKNEf6rS6w3MjjMmC7Uj9+lX9U y60R+LVbizmbaLsB2OOL3lIKgWWVb0y5D7iGvscfT0UMhEJrKSJas+tns4tBHedi27Xf /qbYwKLUK0yNDoZPaX01O48iyY4ApJwK3Es8pC2VUy8y1K39v+KtiLDbC72X4Kr+kBcA yxP8sUiQ40+irhe82/xtm8s+0vo4aQ7gCWOAkar/EY1PVlHz9UhcNC/nkW1sQlNPXfp2 V72KYdhfwk35hwPUHZu+4pwsaLXZxADUSBkpsOYO+DLEZ9WXPlwjLblbFy9p/Ob2H4Y2 Z2vA== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d8-v6si4103602pgh.45.2018.11.08.06.17.03; Thu, 08 Nov 2018 06:17:19 -0800 (PST) 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727446AbeKHXv7 (ORCPT + 99 others); Thu, 8 Nov 2018 18:51:59 -0500 Received: from lhrrgout.huawei.com ([185.176.76.210]:32722 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726359AbeKHXv7 (ORCPT ); Thu, 8 Nov 2018 18:51:59 -0500 Received: from LHREML714-CAH.china.huawei.com (unknown [172.18.7.107]) by Forcepoint Email with ESMTP id 67FCDF31B9936; Thu, 8 Nov 2018 14:16:14 +0000 (GMT) Received: from [10.204.65.142] (10.204.65.142) by smtpsuk.huawei.com (10.201.108.37) with Microsoft SMTP Server (TLS) id 14.3.408.0; Thu, 8 Nov 2018 14:16:07 +0000 Subject: Re: [PATCH v4 4/6] tpm: modify tpm_pcr_read() definition to pass a TPM hash algorithm To: Jarkko Sakkinen CC: , , , , References: <20181106150159.1136-1-roberto.sassu@huawei.com> <20181106150159.1136-5-roberto.sassu@huawei.com> <20181108140454.GE8922@linux.intel.com> From: Roberto Sassu Message-ID: <7a43680a-a216-a191-62a3-c2fb4e72d699@huawei.com> Date: Thu, 8 Nov 2018 15:16:03 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <20181108140454.GE8922@linux.intel.com> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.204.65.142] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11/8/2018 3:04 PM, Jarkko Sakkinen wrote: > On Tue, Nov 06, 2018 at 04:01:57PM +0100, Roberto Sassu wrote: >> Currently the TPM driver allows other kernel subsystems to read only the >> SHA1 PCR bank. This patch modifies the parameters of tpm_pcr_read() and >> tpm2_pcr_read() to pass a tpm_digest structure, which contains the desired >> hash algorithm. Also, since commit 125a22105410 ("tpm: React correctly to >> RC_TESTING from TPM 2.0 self tests") removed the call to tpm2_pcr_read(), >> the new parameter is expected to be always not NULL. >> >> Due to the API change, IMA functions have been modified. >> >> Signed-off-by: Roberto Sassu >> Acked-by: Mimi Zohar > > Does not apply to the current upstream (with tpm1-cmd.c). Unfortunately, I cannot fetch the repository as infradead.org only supports the git protocol (I'm behind a proxy). Roberto > /Jarkko > -- HUAWEI TECHNOLOGIES Duesseldorf GmbH, HRB 56063 Managing Director: Bo PENG, Jian LI, Yanli SHI