Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2547851imu; Sun, 9 Dec 2018 04:16:25 -0800 (PST) X-Google-Smtp-Source: AFSGD/VUrPOvypmMSBD6GqZuPfm5o+Bxueyzc+7uoUrryLTvf52XXMWwfq0qnfYYxooSmeojmxqt X-Received: by 2002:a17:902:5ac2:: with SMTP id g2mr8467357plm.313.1544357785350; Sun, 09 Dec 2018 04:16:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544357785; cv=none; d=google.com; s=arc-20160816; b=XcUJSwshDu2Omk6Nn4UZmQsItxQZOmzwJGdbzyjUmZ/5Fd2s3bBui0aQ5SQ5p+WYq4 pdReLRa7g14MGdmqDkoWb+iVIBMi6TkDXnyfZuvwCegy99fWf/ZhIM5FWtuNa/GcXhet +FEUeVSE7HI2TdQFpiaoJYL7rAYh/BFdiK3qzsR6ZkVZULlPyWsx1kiOV7pBFvXAKPs9 aeR/0F88iiG1O75H5EirrHpTv6dNEaKGKmSv/rmn4aONZ5d3qfoK+GC7NBwAREfT+2+3 mLPpX8nUemEhYjE3G36SlvLornpE3DMBHI/0noQb1YcMi3ZzobOLrMt/AMDoKbHf3yO1 aoFw== 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=6bOhgipisKC8nzp61sNotXrdhI1hiGDMgkevKMNgDW0=; b=rB35S0QIaloCI8XsVc9Z23Usthv5pNGsbc7sDjj7xLR9s7OoHEj9a+St1UPUerg9Nv tc3eQ9WNAUX33Lhl2tI7rDi+QB5/cdshWWmZUvztXf0OSjhgzB662OlpG5BPUl6dfYhB FxD2qtzSKfDbj6v8fYF747bONGrsJJa7UwaZycBJFw/uWQp+ybQBhTELrZC5oxkvvl4V oQuJrrFpii8Bu1k5/Y2L4PN1wHfrS4AaXSHe1rghGWfhg/AwA95NVF35YfLjoBS7i/WZ udwOY8dbkA/NIjzxFiQ2lDH8WjxNZ+n2aH9D3N5x2CuKSyRsJuAP/DUOyZ/CbgKardTe ieTg== 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 144si7395239pga.322.2018.12.09.04.16.09; Sun, 09 Dec 2018 04:16:25 -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 S1726249AbeLIMOX (ORCPT + 99 others); Sun, 9 Dec 2018 07:14:23 -0500 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:37952 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726158AbeLIMOX (ORCPT ); Sun, 9 Dec 2018 07:14:23 -0500 Received: from pps.filterd (m0098421.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id wB9CEJZT124133 for ; Sun, 9 Dec 2018 07:14:20 -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 2p8v97td02-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Sun, 09 Dec 2018 07:14:20 -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:14:19 -0000 Received: from b03cxnp08026.gho.boulder.ibm.com (9.17.130.18) 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:14:16 -0000 Received: from b03ledav002.gho.boulder.ibm.com (b03ledav002.gho.boulder.ibm.com [9.17.130.233]) by b03cxnp08026.gho.boulder.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id wB9CEF8M24051868 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Sun, 9 Dec 2018 12:14:15 GMT Received: from b03ledav002.gho.boulder.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 3AAE4136053; Sun, 9 Dec 2018 12:14:15 +0000 (GMT) Received: from b03ledav002.gho.boulder.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id B12FA13604F; Sun, 9 Dec 2018 12:14:11 +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:14:11 +0000 (GMT) Subject: Re: [PATCH v6 2/7] tpm: add _head suffix to tcg_efi_specid_event and tcg_pcr_event2 To: Roberto Sassu , jarkko.sakkinen@linux.intel.com, david.safford@ge.com, monty.wiseman@ge.com Cc: zohar@linux.ibm.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-3-roberto.sassu@huawei.com> From: Nayna Jain Date: Sun, 9 Dec 2018 17:40:49 +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: <20181204082138.24600-3-roberto.sassu@huawei.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-00000E35FAF8 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.01129234; UDB=6.00586685; IPR=6.00909365; MB=3.00024611; MTD=3.00000008; XFM=3.00000015; UTC=2018-12-09 12:14:18 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18120912-8236-0000-0000-000043A47991 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=635 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1812090117 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 12/04/2018 01:51 PM, Roberto Sassu wrote: > TCG defines two structures, TCG_EfiSpecIDEventStruct and TCG_PCR_EVENT2, > which contain variable-sized arrays in the middle of the definition. > > Since these structures are not suitable for type casting, this patch > removes structure members after the variable-sized arrays and adds the > _head suffix to the structure name, to indicate that the renamed structures > do not contain all fields defined by TCG. > > Lastly, given that variable-sized arrays are now in the last position, and > given that the size of the arrays cannot be determined in advance, this > patch also sets the size of those arrays to zero and removes the definition > of TPM2_ACTIVE_PCR_BANKS. > > Signed-off-by: Roberto Sassu Tested-by: Nayna Jain Thanks & Regards,     - Nayna