Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp6745007imu; Mon, 3 Dec 2018 02:00:19 -0800 (PST) X-Google-Smtp-Source: AFSGD/VIeB5uJoHoAkbhObzdJ8CvuglQMlkGrr5T0dQ0QWak1kVxttHZJxy8dblnR8Ikiz466TnG X-Received: by 2002:a17:902:50e3:: with SMTP id c32mr15492230plj.318.1543831219862; Mon, 03 Dec 2018 02:00:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543831219; cv=none; d=google.com; s=arc-20160816; b=UZYPeXdO7I9b0htxG+KxRDGRN1C0RlQlKgL5mftck6TXsBu6nckZZyI+IuaxyNroeE vkiqZoPOcNewCY3vRjPUOTRUMwR5uzh+sR7bcxXgX2W/aP97ibLyQstHkkkRlWCIgWYo xwibyq9yzU8QIQaf0F0OSIfM8XCkdV/yGRMOOnwxOZS2nDbgYhDIjg1U1r90P+X3V7n2 1fIC59kaJ090tt88M3gZzIyXOAJ/8yPAJxQjJ2zjUXd+1FnPqLd4JAlE+G9TDUHzFvJn WAU16+ANMRWXwLdnoM0TQgLP/x9lyQrO3KBBaJ90rlRh920exuaGV9LRjmKluRCrPsJQ U2ew== 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=oqes1t4BSBLQLcExsGW/0qArEukCp9tSKjIrwav+ddo=; b=aJFbpLVSbYWnAAHrp/cXxwYeH/Oh307PwqdR1K4FY5MJpln5toac5Jb2/VgRubBd+Q JkFdf4VGVWEtEV4Lk6PzIY2ndvHWEt7yHW0qnWcBzer9bi8/WegSxkw3XjZeR25wruNz l80r/sJuEllSAutwvLZRy9+oYO0uSjpvRZeCFw7fRIdVUiNSLLCg71cU53AQ3L0jmuaj OfNkSuUfXivsllGADfR1db0mY1kkYW18giAGWNA5dZ3LKKGL83hLAp+TYdBBU5rBp1GC PkhP1quGZf2GW7zLkYUYuw1Fcl0pWCE3F7IgKkiA9jxzgkXQ1fLKmp8+iVNmpsFN4W2j fZvg== 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 n2si13502310pgr.67.2018.12.03.02.00.05; Mon, 03 Dec 2018 02:00: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 S1726129AbeLCJ7n (ORCPT + 99 others); Mon, 3 Dec 2018 04:59:43 -0500 Received: from lhrrgout.huawei.com ([185.176.76.210]:32789 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725945AbeLCJ7m (ORCPT ); Mon, 3 Dec 2018 04:59:42 -0500 Received: from LHREML712-CAH.china.huawei.com (unknown [172.18.7.108]) by Forcepoint Email with ESMTP id 1D36A7FE4866D; Mon, 3 Dec 2018 09:59:18 +0000 (GMT) Received: from [10.204.65.144] (10.204.65.144) by smtpsuk.huawei.com (10.201.108.35) with Microsoft SMTP Server (TLS) id 14.3.408.0; Mon, 3 Dec 2018 09:59:11 +0000 Subject: Re: [PATCH v5 2/7] tpm: remove definition of TPM2_ACTIVE_PCR_BANKS To: Jarkko Sakkinen CC: , , , , , , References: <20181114153108.12907-1-roberto.sassu@huawei.com> <20181114153108.12907-3-roberto.sassu@huawei.com> <20181116133851.GB4163@linux.intel.com> <1602133e-6a41-ea97-d985-6eca0831898d@huawei.com> <4a55ba02-87e6-9258-038e-e4c57f00f033@huawei.com> <20181130194149.GA18584@linux.intel.com> <20181130194527.GB18584@linux.intel.com> From: Roberto Sassu Message-ID: <95aa61ad-6319-8d9a-dc08-153d80402dfa@huawei.com> Date: Mon, 3 Dec 2018 10:59:10 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.3.0 MIME-Version: 1.0 In-Reply-To: <20181130194527.GB18584@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.144] 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/30/2018 8:45 PM, Jarkko Sakkinen wrote: > On Fri, Nov 30, 2018 at 11:41:49AM -0800, Jarkko Sakkinen wrote: >> Even after looking at the spec the last field does not make sense as the >> event after digests and digests are not in union. It is just not right. >> >> The comment does not fix that. > > You should remove the last field and rename the struct as maybe > struct tcg_pcr_event2_head. If we ever need the very last field > we can create struct *_tail. > > Not your fault but there is clear bug in the struct definition > that should be fixed in a commit of its own. Given that I explain the problem in the new patch, I would also remove TPM2_ACTIVE_PCR_BANKS in the same patch. Is it ok? Thanks Roberto > No new comments are needed. > > /Jarkko > -- HUAWEI TECHNOLOGIES Duesseldorf GmbH, HRB 56063 Managing Director: Bo PENG, Jian LI, Yanli SHI