Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp125770imj; Wed, 13 Feb 2019 05:50:09 -0800 (PST) X-Google-Smtp-Source: AHgI3IZYmW0XWrJZCEEal5f2D0WQI+liRMw5rFD0qVjZUCJhMwBm/b555aQFg4sR60/hTJ2qefiL X-Received: by 2002:a17:902:6502:: with SMTP id b2mr668286plk.44.1550065809377; Wed, 13 Feb 2019 05:50:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550065809; cv=none; d=google.com; s=arc-20160816; b=HYo4/iJHUgicg3GEg6FTwGxr6Yc6Zd+VE2sAquAWBipAUUp3+y2nUBGIqAMOgFoERv 6D6xN6LHkBn9tQi0+GYkVX1t/5WKDKUo9ZdgDhtLg7ezT048B1D9liSWZvLx+Z4zhasA wkJZX4ZY9uRlZDxT/fLEewN7DW47scG2oPENUpPZFS8QoEeits4C6fyQnj+XJbOIS6dj MezfNVaFn0RPRqRNrIAjoOOIIpufH/sTF0GEVRrPl9Xbvv7THFO9Fn0WHb8Pi1mCdCYb wgAV60TRDOYz+3X/nkEGOhcLRQfYl1pQq3459XLmtox5KYZvGnZrNL19HjV9pnSBqaRy nePw== 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=MUNExBz46hE4tusinTkpRKxptiUOymJCifbK9JKhZ9U=; b=ok4PDUWhl3K4w9hgSuWNB9p5Zd7/nYKHo5ckaa1Jwp1V8VDWctXMcrgsadZ68elhN+ xZQxVodhSmzK9oGQ/K57T64JQKXbq4Odyj6lLH+67j3HBFDuq0GYDhSUz85j/zdeFgjk NnyLwtm466QdOq0DXgaXNu6VOEpIvq6E1qnenE08LG8LixnqwoJIdyHvmEES978/R8Vs s5M+fOivG/lMHVU3xa+U/C3Xt2IwG297HSSvXxZa3G2FS6cTVbMYdbjY7j0+Ua0+P5Tu BJnMyxzOrg2odjJBr8Evka+R7Sc1XeGCijj7Jq5PHZf9rszF2X7M8D8yBJMJRGQgrKuj 7nzA== 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 v8si6379373pfm.260.2019.02.13.05.49.53; Wed, 13 Feb 2019 05:50:09 -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 S2391782AbfBMLUQ (ORCPT + 99 others); Wed, 13 Feb 2019 06:20:16 -0500 Received: from mga12.intel.com ([192.55.52.136]:5164 "EHLO mga12.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2391766AbfBMLUP (ORCPT ); Wed, 13 Feb 2019 06:20:15 -0500 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga106.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 13 Feb 2019 03:20:15 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.58,365,1544515200"; d="scan'208";a="133948742" Received: from sorenthe-mobl1.ger.corp.intel.com (HELO localhost) ([10.249.254.151]) by orsmga002.jf.intel.com with ESMTP; 13 Feb 2019 03:20:09 -0800 Date: Wed, 13 Feb 2019 13:20:08 +0200 From: Jarkko Sakkinen To: bsz@semihalf.com Cc: linux-efi@vger.kernel.org, linux-integrity@vger.kernel.org, linux-kernel@vger.kernel.org, peterhuewe@gmx.de, ard.biesheuvel@linaro.org, tweek@google.com, mingo@kernel.org, hdegoede@redhat.com, leif.lindholm@linaro.org, mw@semihalf.com Subject: Re: [PATCH 2/5] tpm: Change calc_tpm2_event_size signature Message-ID: <20190213112008.GG7087@linux.intel.com> References: <20190211143052.3128-1-bsz@semihalf.com> <20190211143052.3128-3-bsz@semihalf.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190211143052.3128-3-bsz@semihalf.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 Mon, Feb 11, 2019 at 03:30:49PM +0100, bsz@semihalf.com wrote: > From: Bartosz Szczepanek > > Pass tcg_efi_specid_event as an argument instead of tcg_pcr_event, as the > former is what is actually needed to compute event size. tcg_pcr_event > structure describes TPM event log header (even though its name), from where > efispecid can be extracted -- it seems cleaner and less misleading to do it > out of calc_tpm2_event_size function. > > Also, use ssize_t instead of int for event log size. > > Signed-off-by: Bartosz Szczepanek Unreviewable without call sites. NAK. /Jarkko