Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp2501146imm; Wed, 3 Oct 2018 05:02:40 -0700 (PDT) X-Google-Smtp-Source: ACcGV62wf3UFNyijOS9UcnT89i2HJA1d9pkVayQ/B+WBYJQ487NnRDgo4WgWaalXD5+n4wXCX+/G X-Received: by 2002:a63:9d01:: with SMTP id i1-v6mr1050344pgd.98.1538568160455; Wed, 03 Oct 2018 05:02:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538568160; cv=none; d=google.com; s=arc-20160816; b=EotXXraitdVMZfSuLJdDDxX2pnhPsaxo1g+vkJNBQjuMwCy9bDlVVKEXp2TLk0/Lta FcBA4mBtY2n03xy9fxIf2P4CkAqY86ArgFNRxVd4XM8Ok9l1olknHXmWkrasFp9axXOH NqweUphPnSmbN9xZoaB4WWcWZvnXAF0mbgT4bn7RKHFr+P2HkaipTeIryjZzb78ivooO TR2u42Tzu+jdkq/bw1Ch36H1/gjfPDBzOXAgQdmytT3oR113MN8cjTAQcZlVRVRvBR9X iZd6zN/c/lKNZs9qDVZrWZ5Z/0wd0htg/ZrTgErELO2EJEYmMgi08y75xfl/G6EjTcaz UEwg== 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=ID2HrwXHfSe8DbbNIAy520Dv/gTetXkrzB3gntpzcME=; b=NcwbBbMO14n4Q6RF6qIjRAm8aHTnItsjtRl6WZ2LeepcNeu3z+HJnjskAlvbYJVvqA azz+Xu7qoqiI08xnyhD6Fn0G3vr8AZ7uc3YiMze6DcIEPEA35qInavxjsmvx/CrXGeHC SpUHwOmgeZtJjKLkSgqgma2GsrH39mXSbW/DdT8lIv5s2uue7Pw9rshghIEUIhwcP3M1 8APKPkM0cZwUuJQSKAkSloC6kFC0yQKvRxX9FXicRWElHrj2cWj4sz1oJUaaZGBX7cs0 FivXfHBHV+OwGVNHz3iiJUSZvYtAoey0TypSwqA9KEokoym1JSiAO1K/8Z/fHmlNRX5u 0ekA== 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 c22-v6si1344615pgk.292.2018.10.03.05.02.25; Wed, 03 Oct 2018 05:02:40 -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 S1727374AbeJCSuL (ORCPT + 99 others); Wed, 3 Oct 2018 14:50:11 -0400 Received: from mga07.intel.com ([134.134.136.100]:43142 "EHLO mga07.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726847AbeJCSuL (ORCPT ); Wed, 3 Oct 2018 14:50:11 -0400 X-Amp-Result: UNSCANNABLE X-Amp-File-Uploaded: False Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga105.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 03 Oct 2018 05:02:04 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.54,336,1534834800"; d="scan'208";a="85399694" Received: from hoffmann-mobl.ger.corp.intel.com (HELO localhost) ([10.249.38.250]) by FMSMGA003.fm.intel.com with ESMTP; 03 Oct 2018 05:01:44 -0700 Date: Wed, 3 Oct 2018 15:01:41 +0300 From: Jarkko Sakkinen To: "Winkler, Tomas" 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" , "roberto.sassu@huawei.com" Subject: Re: [PATCH v5 12/21] tpm: move pcr extend code to tpm2-cmd.c Message-ID: <20181003120141.GA7969@linux.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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5B8DA87D05A7694D9FA63FD143655C1B9D9DFAA5@hasmsx109.ger.corp.intel.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Oct 02, 2018 at 04:58:25AM +0000, Winkler, Tomas wrote: > > > > > > On Sat, Sep 29, 2018 at 01:30:26AM +0300, Tomas Winkler wrote: > > > Add tpm2_pcr_extend() function to tpm2-cmd.c with signature required > > > by tpm-interface.c. It wraps the original open code implementation. > > > The original original tpm2_pcr_extend() function is renamed to > > > __tpm2_pcr_extend() and made static, it is called only from new > > > tpm2_pcr_extend(). > > > > > > Fix warnings in __tpm2_pcr_extend() > > > tpm2-cmd.c:251:16: warning: comparison between signed and unsigned > > > integer expressions [-Wsign-compare] > > > tpm2-cmd.c:252:17: warning: comparison between signed and unsigned > > > integer expressions [-Wsign-compare] > > > > > > Signed-off-by: Tomas Winkler > > > > We do not want the signature change, especially because as we are working > > on getting Roberto's changes in and also because it has absolutely a zero > > gain. Who cares if those functions take different parameters? I don't. > > Yes, we do care this series tries to have a clean cut between 1.x and 2.x specs. Please, let's finish one transformation and then move to another. > I understand that Roberto will have to rebase anyhow, if this series goes in first, if this is hard I can do it myself, it's trivial. > > Tomas I'm happy to tune this minor stuff. I'll wait for Nayna to test the one patch and make those adjustments :-) Would not make sense to roll another series for these changes. /Jarkko