Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp997542imm; Thu, 4 Oct 2018 06:46:37 -0700 (PDT) X-Google-Smtp-Source: ACcGV63rH3PBUdML068cVHNSSTaRz0/QK2CSwPci3OXZXuzsOYbv5L3u/csjN6gmcyKg3ewzSYkT X-Received: by 2002:a17:902:6ac7:: with SMTP id i7-v6mr6840130plt.268.1538660797205; Thu, 04 Oct 2018 06:46:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538660797; cv=none; d=google.com; s=arc-20160816; b=DjIjqDVjZrC3l5XUWA/sSdRWH4ZUvduYLLDm8d3ymrb83p95OusxraR+V+mmitNslJ 9ieBbhAV59q5rkh6rEGrdwD5zbankmcmX5gzWkNR0H1iHCJh210YEJJ7mRHJnlCjdGl4 N53AmMo0VQfz5LxAlMYc5E5ObLqdync8p6tRex/71xHsPZOiQANlQSFsLAZcZp48IVcb 7f8B/3GOVdtZGr1DhgdxJWQmXwgYYoiau0p/e7VeYEabhc4QXV/YT1GaMQPXhvWF5GyT +FljUtgq6yh4VTZL1vcB9cLRDfvSRBfceuyxcqjn0bKB2/eYCHi8emlYFQJ0z+l5gyIa q3bA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :dlp-reaction:dlp-version:dlp-product:content-language :accept-language:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:cc:to:from; bh=JQlXrjltPdoLZIzBlg6WRw5W27cj45OhNSMWqWX7huA=; b=UBmiM2GAM/Tc1qzyabt+uGAeLPW772uPpwCebQhwvwGBFHdjnm5YD6lKZMnVAzLqTD 5r+sJuLhq17oW6sOuaTHzPO4MK4hAHrFTSBEVW74dLjqFjFLvO5PMjPMP7D+wRdDYXCa 0zOg2h1h0flklSIYGe1ihPdEnrhFbigVokR/Ni7Ys9Tg6Cot6dgUjLYsnyMMoahDYZXP +QEr2QD17jzE1ZpovZk+sIugVH6NtqFeiRj/13t+nMA04kAybE5ouNS0q7fUxdztK/Ji 8mkWZWYPFPYMxZgnIdH6qRCVOni4+TI3g9yqjaYPghkDLrC2hzVAC5pa8VyPIJPsVu5f b4bA== 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 33-v6si11064plg.157.2018.10.04.06.46.20; Thu, 04 Oct 2018 06:46:37 -0700 (PDT) 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 S1727380AbeJDUjh (ORCPT + 99 others); Thu, 4 Oct 2018 16:39:37 -0400 Received: from mga12.intel.com ([192.55.52.136]:54179 "EHLO mga12.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727264AbeJDUjh (ORCPT ); Thu, 4 Oct 2018 16:39:37 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga106.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 04 Oct 2018 06:46:13 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.54,340,1534834800"; d="scan'208";a="79851510" Received: from fmsmsx106.amr.corp.intel.com ([10.18.124.204]) by orsmga006.jf.intel.com with ESMTP; 04 Oct 2018 06:46:03 -0700 Received: from lcsmsx153.ger.corp.intel.com (10.186.165.228) by FMSMSX106.amr.corp.intel.com (10.18.124.204) with Microsoft SMTP Server (TLS) id 14.3.319.2; Thu, 4 Oct 2018 06:46:03 -0700 Received: from HASMSX109.ger.corp.intel.com ([169.254.3.28]) by LCSMSX153.ger.corp.intel.com ([169.254.8.212]) with mapi id 14.03.0319.002; Thu, 4 Oct 2018 16:46:00 +0300 From: "Winkler, Tomas" To: Roberto Sassu , Jarkko Sakkinen CC: Jason Gunthorpe , Nayna Jain , "Usyskin, Alexander" , "Struk, Tadeusz" , "linux-integrity@vger.kernel.org" , "linux-security-module@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: RE: [PATCH v5 12/21] tpm: move pcr extend code to tpm2-cmd.c Thread-Topic: [PATCH v5 12/21] tpm: move pcr extend code to tpm2-cmd.c Thread-Index: AQHUWeozFz0QOr+BiUiSikU4mA0ywaULXotQgAHdBoCAAN6dYIAArEYAgAAyobD//9ohAIAASYdw Date: Thu, 4 Oct 2018 13:46:00 +0000 Message-ID: <5B8DA87D05A7694D9FA63FD143655C1B9D9E6E47@hasmsx109.ger.corp.intel.com> References: <20180928223035.14471-1-tomas.winkler@intel.com> <20180928223035.14471-13-tomas.winkler@intel.com> <20181002005208.GH23753@linux.intel.com> <5B8DA87D05A7694D9FA63FD143655C1B9D9DFAA5@hasmsx109.ger.corp.intel.com> <20181003120141.GA7969@linux.intel.com> <5B8DA87D05A7694D9FA63FD143655C1B9D9E5343@hasmsx109.ger.corp.intel.com> <20181004113502.GA12498@linux.intel.com> <5B8DA87D05A7694D9FA63FD143655C1B9D9E6D00@hasmsx109.ger.corp.intel.com> <19c26db0-cde9-da70-1b02-7e37ca188b45@huawei.com> In-Reply-To: <19c26db0-cde9-da70-1b02-7e37ca188b45@huawei.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ctpclassification: CTP_NT x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiYTY5Y2RiMTktZTAwYS00NDI4LThjMzUtOGU1ZDhhNzFkYjNjIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiME12WlFjQnJqc0NQQnZtS2dUUEQrSGRsdnJKXC94OXI2Z1d4T2k0bVEzcXQ3MERUZ1p1NHRzbmxuUmlWWDNVMzgifQ== dlp-product: dlpe-windows dlp-version: 11.0.400.15 dlp-reaction: no-action x-originating-ip: [10.249.82.222] Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org PiANCj4gT24gMTAvNC8yMDE4IDE6NDUgUE0sIFdpbmtsZXIsIFRvbWFzIHdyb3RlOg0KPiA+DQo+ ID4NCj4gPj4gLS0tLS1PcmlnaW5hbCBNZXNzYWdlLS0tLS0NCj4gPj4gRnJvbTogSmFya2tvIFNh a2tpbmVuIFttYWlsdG86amFya2tvLnNha2tpbmVuQGxpbnV4LmludGVsLmNvbV0NCj4gPj4gU2Vu dDogVGh1cnNkYXksIE9jdG9iZXIgMDQsIDIwMTggMTQ6MzUNCj4gPj4gVG86IFdpbmtsZXIsIFRv bWFzIDx0b21hcy53aW5rbGVyQGludGVsLmNvbT4NCj4gPj4gQ2M6IEphc29uIEd1bnRob3JwZSA8 amdnQHppZXBlLmNhPjsgTmF5bmEgSmFpbg0KPiA+PiA8bmF5bmFAbGludXgudm5ldC5pYm0uY29t PjsgVXN5c2tpbiwgQWxleGFuZGVyDQo+ID4+IDxhbG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