Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp4283654imu; Fri, 30 Nov 2018 14:19:41 -0800 (PST) X-Google-Smtp-Source: AFSGD/VbF56L++JZX0YRWkzQ3JDC4vtDHUFndN4aPC0xyy5aLVRmm3xq1jkCc7hVq/S09/nOG1Ys X-Received: by 2002:a63:ac46:: with SMTP id z6mr6274783pgn.162.1543616381134; Fri, 30 Nov 2018 14:19:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543616381; cv=none; d=google.com; s=arc-20160816; b=NnCDq2E3cwJvNZtzwXbSqP2bUHVUwoOxg5oA/za8UdhA8vZlWEd9FxipllG5ZKjwrv 7oohHrpccSQs5jxrH13y6d4dIdtNr0phB9gw7z6zgBtBEfAvbGMOPDGeOlCwhG5U5sis 0Ce8HCbC4ilRoi8snrq8bQqRmTTZCct3+TutngrrNXoP2JFDYiAwN+dKTAyS/hx45NhV +2AdFKIWdcXtFNKKYQwnfJL4aylQF4gI8dNfDPVd7UfvhI4HanZnRy0GKXBI4AW2UbZW qs0+2NqG1zhTZZwG+WUpwww1xED8AtsW6mjQ67t3YsmE2NYxajjsXqhcG+Ry2RxjJzrH Ql1Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:organization:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=sBe1FXhCgVV2/3xctLUFRR5ERh84YtHxPI0CbXOiZDg=; b=QaayRkPEjSUTRZnpQhft0gNMj0psaBLdp3LrHWEBIDlfXuBTmOCZ56ro0DqwESv9NN Uyx9l1E13rzmso8xxRX9gVFHdpwfpForOMGJVD34M1wd9gU3QT9wdXfqrtUuVTqb1tv1 Sn4XyZv5GyImeC85WctR9eAPcxfp+pOaJ3jbi82tmCjWqlW06aLc2gnTftXF/CHTJ9px h0cvKD8cvru2ZwCd/2IQKgSYZPFU4qF+XHYKh4DpgYL3Rs3xgsfMGMuHKfz9+BF03jd0 q40ZnFNkIooBI9VbHH5+8E+TLmzeD2VviclN9FFlFme43XHCEjUeOuEDbXL7gFcg4isk vM+w== 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=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v189si5538244pgb.398.2018.11.30.14.19.26; Fri, 30 Nov 2018 14:19:41 -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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726812AbeLAJ3a (ORCPT + 99 others); Sat, 1 Dec 2018 04:29:30 -0500 Received: from mga02.intel.com ([134.134.136.20]:39004 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725867AbeLAJ3a (ORCPT ); Sat, 1 Dec 2018 04:29:30 -0500 X-Amp-Result: UNSCANNABLE X-Amp-File-Uploaded: False Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 30 Nov 2018 14:18:43 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.56,300,1539673200"; d="scan'208";a="294224132" Received: from jsakkine-mobl1.jf.intel.com (HELO localhost) ([10.241.225.27]) by fmsmga006.fm.intel.com with ESMTP; 30 Nov 2018 14:18:42 -0800 Date: Fri, 30 Nov 2018 14:18:43 -0800 From: Jarkko Sakkinen To: 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 Subject: Re: [PATCH v5 2/7] tpm: remove definition of TPM2_ACTIVE_PCR_BANKS Message-ID: <20181130221843.GA26088@linux.intel.com> 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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181130194527.GB18584@linux.intel.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo 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 Fri, Nov 30, 2018 at 11:45:27AM -0800, 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. > > No new comments are needed. I checked and did not find the field even used anywhere. Can you peer check this and then just remove it? And yeah maybe the struct should have _head suffix. /Jarkko