Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp6967919yba; Thu, 2 May 2019 01:33:59 -0700 (PDT) X-Google-Smtp-Source: APXvYqzHHmcutIV9rgc6228o1DN9Cbd+JqcEDaG4OkRqUM2E03MQuDBwiI1DJuQTwvmlREUtDjwZ X-Received: by 2002:a65:4c07:: with SMTP id u7mr2598794pgq.93.1556786039340; Thu, 02 May 2019 01:33:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556786039; cv=none; d=google.com; s=arc-20160816; b=knxHMlugA2yP+LGcxSgkscesYmtvF7D4fiCSD/7fDEpmaZqi0JSLLyjuJvBwhG3ly6 Ie/eLzXouNXAYQU583BnG5RhsEHmMW7FukU2szIX5c8/7/hA6boPYW64M4tPkdd+WoCH IPHPsP3iqs9AwsH6LCI3POpEq1x3BBWpf5toHnBjq6elwzgv9kXQMNNiUQNbQVPbvnqj l21jUAw027Ob9Rvt8kVvBuitt3qLNJcxWGX6m9riU4zOY9ZbfiiOIk8qx5sLvAuomrT0 BtvP7YaZwbcL+st6n5bN+092WOXI4Btda6+KNRx1UE0w/l3UdR/OxV9mgPELQ87TlzCe ZJNA== 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=5oEq1Z2ZmNjOR6z+MlJ885uuQnFuaS8VRt3Rq76Thz8=; b=KJVI+hMhwOHtHMdCnlb+6ppBK9kYs6DfpGS3B/jDC88eSwhdWPHM9QHQq1rCYU31V2 QOWzMGRNSe06WtRNhvHgBRjy+l74sCuuoELjPSOo9oFA0b4wLHqqcefFyiP2TX3VQveg Rn1X2/a1ioKOSbfYnVKHNmLauX+AnX0mYBy9kQon/NwmaWJ8Z4wSSoMw/O5trOyxyl7Y YXowSShA9jYUOm6gRsoNh7xgelhgeBs72IPRGpuTk4ONDsYo8QpWfmedgxT2RWZfsuoI kJQXnSBCJhRJhCTDbT9AoapD32G2yq9om0eMfDlAXZRHqHmjAPEpdLloWJgwHhFHDA7I AlVw== 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 o7si5157690plk.215.2019.05.02.01.33.44; Thu, 02 May 2019 01:33:59 -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 S1726428AbfEBIco (ORCPT + 99 others); Thu, 2 May 2019 04:32:44 -0400 Received: from mga06.intel.com ([134.134.136.31]:47842 "EHLO mga06.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725905AbfEBIcn (ORCPT ); Thu, 2 May 2019 04:32:43 -0400 X-Amp-Result: UNSCANNABLE X-Amp-File-Uploaded: False Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga104.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 02 May 2019 01:32:43 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.60,421,1549958400"; d="scan'208";a="145370147" Received: from jsakkine-mobl1.tm.intel.com (HELO localhost) ([10.237.50.189]) by fmsmga008.fm.intel.com with ESMTP; 02 May 2019 01:32:40 -0700 Date: Thu, 2 May 2019 11:32:40 +0300 From: Jarkko Sakkinen To: Bartosz Szczepanek Cc: Matthew Garrett , linux-integrity@vger.kernel.org, peterhuewe@gmx.de, jgg@ziepe.ca, roberto.sassu@huawei.com, linux-efi@vger.kernel.org, linux-security-module@vger.kernel.org, linux-kernel@vger.kernel.org, tweek@google.com, Matthew Garrett Subject: Re: [PATCH V5 2/4] tpm: Reserve the TPM final events table Message-ID: <20190502083240.GJ14532@linux.intel.com> References: <20190227202658.197113-1-matthewgarrett@google.com> <20190227202658.197113-3-matthewgarrett@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 Tue, Apr 30, 2019 at 03:07:09PM +0200, Bartosz Szczepanek wrote: > I may be a little late with this comment, but I've just tested these > patches on aarch64 platform (from the top of jjs/master) and got > kernel panic ("Unable to handle kernel read", full log at the end of > mail). I think there's problem with below call to > tpm2_calc_event_log_size(), where physical address of efi.tpm_log is > passed as (void *) and never remapped: Not late. This is not part of any PR yet. Thank you for the feedback! Matthew, can you send an updated version of the whole patch set with fixes to this issue and also reordering of the includes? /Jarkko