Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2541994imu; Sun, 9 Dec 2018 04:08:52 -0800 (PST) X-Google-Smtp-Source: AFSGD/UTvLo/3MCnS9WgR6vbtmSQ/m9utjEOo4eWrvb6Xtqoi46bpHNs2N9qTbVNRISHPe9Qg6rH X-Received: by 2002:a17:902:d911:: with SMTP id c17mr4175078plz.151.1544357332032; Sun, 09 Dec 2018 04:08:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544357332; cv=none; d=google.com; s=arc-20160816; b=T6URutamZKP694c2cxHIbq6zMZhWj4UTPcFQGfKmxQ6296XMEPsXajNwwOLQKeKzQv GDWfJ5lbeIcrQnFSg68cS0QTI+isRiZz+2Qh6UotgcwH+PwPVQjPxNp3J/r+POE1nhEz VSDloPwF+HF9FxB7XxPzIizwGDThVmRRQc3zCaMK0tU7fC77dlinBXGQ9mbgG5NAEE8k pRZJ7i+KS9+YaoBAExvSkNgAtgQlsI7GVrVl/Ca1YaRceOKM4+xy3lqrYY3MrOVRouWM H2f3uA7ZRmfkFbfAzEZIWQ+TyvwkJyIBaEaMjMntZZt8eWvWY2DnHkyClisNENa6vk83 7sZQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :from:references:cc:to:subject; bh=KByuNKmYa1QjEtqcO1Hk/CoOASkxPjlsCpx+87fucjQ=; b=pEAIQqz5zW2GJCZsJQon709nNyYqg/F/uAaeWvqNw5QU7BklgB12uBP6HdK8pao4qH 4bzwTM6ewGHW1JhGpOsEsxO1HPARRNw8W/bcCYY3UKFw92Qf1RWq6yHjv9OElBInGlnB hfFKoI9epwYFe7qZpOaQY4ab54MIe26H/ZIbUzpK3ukUMSawIEXJIoiD4kHlTpfIuezY iMD50Xhry7uL+qdnZDqAZvcoDJCSxRqGjV845sFpMRylfWk+D5yEVnjE0ldnkwCewDvi NMnsKFPHkaI0vr5jrQDKo59jxFyUFyhjBHtDXXuJmqTgB5A0jAQwea/T/XrC3uOVmc+B NevQ== 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=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y12si6842415pgh.289.2018.12.09.04.08.36; Sun, 09 Dec 2018 04:08:51 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726214AbeLIMIC (ORCPT + 99 others); Sun, 9 Dec 2018 07:08:02 -0500 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:57032 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726113AbeLIMIC (ORCPT ); Sun, 9 Dec 2018 07:08:02 -0500 Received: from pps.filterd (m0098399.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id wB9C4XQm106786 for ; Sun, 9 Dec 2018 07:08:01 -0500 Received: from e31.co.us.ibm.com (e31.co.us.ibm.com [32.97.110.149]) by mx0a-001b2d01.pphosted.com with ESMTP id 2p8v6u2jsc-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Sun, 09 Dec 2018 07:08:00 -0500 Received: from localhost by e31.co.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Sun, 9 Dec 2018 12:08:00 -0000 Received: from b03cxnp07028.gho.boulder.ibm.com (9.17.130.15) by e31.co.us.ibm.com (192.168.1.131) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Sun, 9 Dec 2018 12:07:57 -0000 Received: from b03ledav002.gho.boulder.ibm.com (b03ledav002.gho.boulder.ibm.com [9.17.130.233]) by b03cxnp07028.gho.boulder.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id wB9C7ugd20840476 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Sun, 9 Dec 2018 12:07:56 GMT Received: from b03ledav002.gho.boulder.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id D48DF13604F; Sun, 9 Dec 2018 12:07:56 +0000 (GMT) Received: from b03ledav002.gho.boulder.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id E0DC6136055; Sun, 9 Dec 2018 12:07:47 +0000 (GMT) Received: from [9.85.68.82] (unknown [9.85.68.82]) by b03ledav002.gho.boulder.ibm.com (Postfix) with ESMTP; Sun, 9 Dec 2018 12:07:47 +0000 (GMT) Subject: Re: [PATCH v6 4/7] tpm: modify tpm_pcr_read() definition to pass a TPM hash algorithm To: Jarkko Sakkinen , Roberto Sassu Cc: zohar@linux.ibm.com, david.safford@ge.com, monty.wiseman@ge.com, linux-integrity@vger.kernel.org, linux-security-module@vger.kernel.org, linux-kernel@vger.kernel.org, silviu.vlasceanu@huawei.com References: <20181204082138.24600-1-roberto.sassu@huawei.com> <20181204082138.24600-5-roberto.sassu@huawei.com> <20181204234024.GC1233@linux.intel.com> From: Nayna Jain Date: Sun, 9 Dec 2018 17:34:25 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 MIME-Version: 1.0 In-Reply-To: <20181204234024.GC1233@linux.intel.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-TM-AS-GCONF: 00 x-cbid: 18120912-8235-0000-0000-00000E35FAB5 X-IBM-SpamModules-Scores: X-IBM-SpamModules-Versions: BY=3.00010199; HX=3.00000242; KW=3.00000007; PH=3.00000004; SC=3.00000270; SDB=6.01129232; UDB=6.00586684; IPR=6.00909363; MB=3.00024611; MTD=3.00000008; XFM=3.00000015; UTC=2018-12-09 12:08:00 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18120912-8236-0000-0000-000043A476EC Message-Id: X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-12-09_04:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=951 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1812090116 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 12/05/2018 05:10 AM, Jarkko Sakkinen wrote: > On Tue, Dec 04, 2018 at 09:21:35AM +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 > Reviewed-by: Jarkko Sakkinen > > Mimi, Nayna, can you help with testing this (because of the IMA change)? Tested-by: Nayna Jain Thanks & Regards,     - Nayna > > /Jarkko >