Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp126322imj; Wed, 13 Feb 2019 05:50:42 -0800 (PST) X-Google-Smtp-Source: AHgI3Ib9h/wpFvTELLyOjEbHSNJ7Yz/axMRp0eeOzOZ5iinDxe/i/IgQcOGNZ4fRhpgnEu3TW2WB X-Received: by 2002:a62:f204:: with SMTP id m4mr636394pfh.58.1550065842359; Wed, 13 Feb 2019 05:50:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550065842; cv=none; d=google.com; s=arc-20160816; b=zmnav9B7Uz1C2f1fcHWqmYLsZuquowBEMowy8qGfU+cLp6IYs98XgD58M4w46Z75fH zIX4ST+4b0gorkcmGmEXbW9l/C+6q6ewTbZDZKMQfX2u9kdyAmAeyN3/Eu1eUAHst5uN 7DDFh0LP0mw+3VzALVw47IHMD3PQaAwFtXx42DKSniAIx8nDZunOYsw4faXmzsJZz9m/ s6wgvSEZvn7jWVfbwq07Ni6za5AsCJvbljI0C+jUdLa8RtOBP83/+EoZB+zGyjqGxJbQ NYhccKLtCriNzujFkNCtwJiyjclZFK2H+L4eJ94lbvSNttxeCnlt5/J4Cre2+AdymlUZ CSCg== 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=i7EUpcOxv6XoXv0dqiAKLTaK2w/cxOHh98CFkkc4VfA=; b=vnc1vTdog5cpj8ydOHxatLWkMq3TyP8hKC/iJBOX5xejHqJny3DzAY1VpkPHRcmyEr G9/nXQnENmaXbjtyVpg60/bIIjP/it9NUvD6zdfsmNqETvvl/xDpTt1mOYSdXacVAItR HzX/Ysyw00KkoxgN180vg/rGnJOnjiSgsHi0lC7VkboAURdqgr+IiZrV4/2ckdwO/z0B 8E5uURtXgD5c3kWfFBEZk7/Dh8IaIOJhA4S/vNa326x6uzgV4g1IbYKoL368fWXIKMHp 16uKu6Ag+R7xZikYbC27KdE/MNWWDggehD/LLMPB4n33FVIwcx8cYKuhDABlqia2TO6/ DnCw== 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 102si4489682plb.176.2019.02.13.05.50.25; Wed, 13 Feb 2019 05:50:42 -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 S2391822AbfBMLWj (ORCPT + 99 others); Wed, 13 Feb 2019 06:22:39 -0500 Received: from mga01.intel.com ([192.55.52.88]:36110 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728454AbfBMLWj (ORCPT ); Wed, 13 Feb 2019 06:22:39 -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 fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 13 Feb 2019 03:22:38 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.58,365,1544515200"; d="scan'208";a="133949196" 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:22:32 -0800 Date: Wed, 13 Feb 2019 13:22:32 +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 3/5] tpm: Use library version of calc_tpm2_event_size in sysfs code Message-ID: <20190213112232.GH7087@linux.intel.com> References: <20190211143052.3128-1-bsz@semihalf.com> <20190211143052.3128-4-bsz@semihalf.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190211143052.3128-4-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:50PM +0100, bsz@semihalf.com wrote: > From: Bartosz Szczepanek > > Expect negative values from calc_tpm2_event_size as error codes. > Pass efispecid instead of event header to calc_tpm2_event_size. > > Also, include tpm library in the build. > > Signed-off-by: Bartosz Szczepanek Event log uses securityfs, not sysfs. /Jarkko