Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp216503imj; Wed, 13 Feb 2019 07:12:54 -0800 (PST) X-Google-Smtp-Source: AHgI3IYDP5boZ1LFJzTTfmEm3TF4YQNWGtXtMb2T3MebimRLprOEVLdzunMNlIkQM0+RdJwNz+rG X-Received: by 2002:a65:63d3:: with SMTP id n19mr890100pgv.179.1550070774200; Wed, 13 Feb 2019 07:12:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550070774; cv=none; d=google.com; s=arc-20160816; b=n19XnaN+m4qL77+WNtQDSglM9dANvGBUKPTjQ7fXlDIX3e4g+uPgKUv+UQzhG6XXJY F3J3/Nb3/VNsqX1nr/CQSWcbgs1NgE+bH03yHxk5fO4WUkc0ZQTGnCF/fUXWMyncZTGs 5fyPf1HYNXLMBvu8B40UBzbNoth00GxKzTNzTJW2IbFwnp3z+JJHwMik2IZx3d+j0C7P LegrUUa08wj4OMbYI5FRZtxtQuJUyKq1yRE0/pSfI0YyHYF7ZLZc4MIwHsu/i7ngjQNK 7wrJYHQ4k0ZXmbvFgMI7A81r7EgFr1Tli8ku9M3OWxQbd9Y8fB7RYN+UA1tG7pQlf1Fk hdYw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=gBgeo3jT47/cB1TRoOn0GG0vfX0G94Ze9DPtiEyWnno=; b=AA0nffl9vuOBICNlLNvphJNBc/+m5gTD+GkTdycRQZgX25FVoK5dXz+PANJ6IrZXiq XgZepEWhttHkW2MqqYtluMJ7fzS+tJdjFuxrzFdmD50H765KnvYRIQ298ZTv3rqVAz3Z 8zaB3A6Na7yRWK9rWYN5l+SB4Ey7orxT8YqZQQcdIL17crU1OodNiGP63imIXSG+GHUa BqbImIao366MCklhLyNVsEq04e13hgAo5szDs2c5ryxh/BDziNER2JdwVh7UL0r53NnN JwFKO81YT7lDN7XPuUp9ScQJANWEu08bA/lWuQ3sOvg/6Cl+SB52r/8n4m58cdIMzADB Zffg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@semihalf-com.20150623.gappssmtp.com header.s=20150623 header.b=muAiGkfA; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 128si2402916pfe.4.2019.02.13.07.12.36; Wed, 13 Feb 2019 07:12:54 -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; dkim=pass header.i=@semihalf-com.20150623.gappssmtp.com header.s=20150623 header.b=muAiGkfA; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732045AbfBMOVN (ORCPT + 99 others); Wed, 13 Feb 2019 09:21:13 -0500 Received: from mail-vs1-f68.google.com ([209.85.217.68]:35324 "EHLO mail-vs1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731306AbfBMOVN (ORCPT ); Wed, 13 Feb 2019 09:21:13 -0500 Received: by mail-vs1-f68.google.com with SMTP id e7so1484735vsc.2 for ; Wed, 13 Feb 2019 06:21:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=semihalf-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=gBgeo3jT47/cB1TRoOn0GG0vfX0G94Ze9DPtiEyWnno=; b=muAiGkfAgvj7ze14eyCq9V6CndfS5vRb8qAMvqly2a1RE0CXmaUL6uTUixOXE+G6cl pIlysvQzSHcbuSgyL8iHTrKxdLIxB9eirQr+AB/i2Gna6N6ao3VDphM8fSYvxWyoM1vN 3MWeY4kIdH38Ffv4JbERXnYofuvdqcW3cmcZ93YCTOf+ld0w5KksBELg/tvoCX6wqAWH ZMHBagnt07FR5K1ZwkI22h4fPM30pHEKf0yNkfFvToOyk2uUZRjb4Nk/p+UTFCgbZPXw 5Zb7nPgPCLgtYLgDCNGmYsINk9NhyAZa0b18EEH3nrA2WT6J/KnsCzJWdchyjxdyNe8Q rdbg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=gBgeo3jT47/cB1TRoOn0GG0vfX0G94Ze9DPtiEyWnno=; b=Up932m0OEnTHgcufOhWg7kutvFC+54EmvZNfZvJwjdYnOmnS0kQR78Dh4eyRBXl4N+ 2RCpNrCgIs8wg3prgG8XS4fJu7vhI0J2vc+mYotAnsEHXiN+oMXlhvx3MGGMLBp1eRZy 0vL2wUY+sC4QV8SnOuP4kAA8b2ZPw5ChMSu9F21L4O82M3AI4hkOCgBCkFtvY6S2m/VY Jca0qy0em6skor3xGCfY4Iu1LdQoshlQSa6qf1xUFIIPWpsbkxe6Kl3g1nFJX8QAaQA9 QAMj46JDcGGe7ey6avq3THiSMoRRPF9rqed1GNMrRCrm50duwzfqMpMvMRv69OAai5TP BsMg== X-Gm-Message-State: AHQUAub5POfqAbDirkgw2zQ1PXEIHWXfG5N982WFkWrCKxkUZP9pkxtJ A76Fq5AqeiP3/3NCRBJ/D8OFq/vkn8kfDHggK1C9JQ== X-Received: by 2002:a67:f557:: with SMTP id z23mr300434vsn.4.1550067672526; Wed, 13 Feb 2019 06:21:12 -0800 (PST) MIME-Version: 1.0 References: <20190211143052.3128-1-bsz@semihalf.com> <20190211143052.3128-5-bsz@semihalf.com> <20190213112640.GI7087@linux.intel.com> In-Reply-To: <20190213112640.GI7087@linux.intel.com> From: Bartosz Szczepanek Date: Wed, 13 Feb 2019 15:21:01 +0100 Message-ID: Subject: Re: [PATCH 4/5] efi/libstub/tpm: Retrieve TPM event log in 2.0 format To: Jarkko Sakkinen Cc: linux-efi@vger.kernel.org, linux-integrity@vger.kernel.org, linux-kernel@vger.kernel.org, peterhuewe@gmx.de, Ard Biesheuvel , =?UTF-8?Q?Thi=C3=A9baud_Weksteen?= , mingo@kernel.org, hdegoede@redhat.com, Leif Lindholm , Marcin Wojtas Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Feb 13, 2019 at 12:26 PM Jarkko Sakkinen wrote: > Collides with Matthew's changes. I want to land those change first > because they are almost production ready. > > Maybe you should consider reviewing those changes to make sure that > they make sense to you so that you can build these on top of after > these have landed. Yeah, I think so. Actually, I wasn't aware of Matthew's efforts, as it didn't appear on linux-efi mailing list. (On bad, I haven't checked linux-integrity.) At this point, I think it makes more sense to limit this patchset to 5/5 patch, which makes TPM event log initialized on ARM platforms. Patches 1-4 introduce nothing more than Matthew already did, maybe except putting calc_tpm2_event_size to a library instead of making it inline. This function has already grown a bit so it may be a better approach, but that's nothing to affect functionality. I'll pull Matthew changes to my tree to confirm operation on ARM platforms, if that works fine the only thing to merge would be 5/5 + optionally the library change, if we reach agreement on that. Bartosz