Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp7662108yba; Thu, 2 May 2019 13:59:06 -0700 (PDT) X-Google-Smtp-Source: APXvYqyRq8woJFWzJ8gpeYPxoYKoNS5Z6nQ3rFywU2KHZGeik+oyGx29fZlYjo2N+jxFoDSbrcXQ X-Received: by 2002:a63:1b11:: with SMTP id b17mr6137465pgb.207.1556830746805; Thu, 02 May 2019 13:59:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556830746; cv=none; d=google.com; s=arc-20160816; b=xqubj1iB4gftMSR5+ubm+Xn4R7we8ZuBwHb4gjhLJMPZUTU7+SFsUw/2bpMdb02Qwt zuUxcjE5j+h/sc1Hnrm3Y5Vku+jU2pfaphXi0WKRAMt6GgBpptr9LuHlZ/h/qO2o8N6V 27brYH4iZLyirzExrcxLL0uduO5rZEJBvuWBfpPylZeCCbh4MKZ71NeHiiyPzG7EaE+y LCnKFADlx7W4iw2VEkLYCsmEiLyof+qROKwTYvfa85PSlmK3HbCY6/3icGjEYrgkhazd 7zbDyzG1ckewvJVKO46lF91ZZ3E/NrPlca3M/zXsve4eEa/pXr2Kdg5S2x3uSDeXWlfx lOLw== 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=W3LPddwCKGY2xDs2u/DUWFbBGqANYJTYynM8oS/U41s=; b=ZVC32mjJivfXrhM8f2moa/5B2Psb13Wto3M8r9EFhdEflKuPOg3Nd03CvfkiuqIZQz yAJa00EQX26oDwSpD/4c9zBOrFdO6JWcpZAHFQF/WZqm7Ns+JO70FWv2F8HWHZAYGfhi DwaGfZw+DMkW1jxFlaevQvBn6lwLIUXMsK7JBqe6+f9P/Okh7meHNB/MRjGMNk42bJSf D0QK0fZWJRfXXXTFjSqai0jSZYqcAJ8nCS3nkmF/0EG/JR8F+YUKddOAoiUF0Hu3ipNb iUxMhuZLN4eX2hLSAEvmXqI7vgnBMF+osiO/WGyckxH0fkezBYdK7upYpH/5zlA7Dqyl T6AQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=KgC8Txd4; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j95si208769plb.414.2019.05.02.13.58.51; Thu, 02 May 2019 13:59:06 -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; dkim=pass header.i=@linaro.org header.s=google header.b=KgC8Txd4; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726385AbfEBU4l (ORCPT + 99 others); Thu, 2 May 2019 16:56:41 -0400 Received: from mail-io1-f67.google.com ([209.85.166.67]:44850 "EHLO mail-io1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726359AbfEBU4k (ORCPT ); Thu, 2 May 2019 16:56:40 -0400 Received: by mail-io1-f67.google.com with SMTP id r71so3444603iod.11 for ; Thu, 02 May 2019 13:56:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=W3LPddwCKGY2xDs2u/DUWFbBGqANYJTYynM8oS/U41s=; b=KgC8Txd4sqFpfNVIU5Wc0c0htULB4U6DQmgHOL62Lo4Qhb7H8HeoP6A5oyBRfRlIxH nbujZgFqKo77czxlk/kYHMvFORPVv3giYwy/vyNp+e5oH4IrW1KDEJN1DWBhUNtI7QWi Jud+60EOp+yWaRfrdV/xm2B2vgIN4UsTjluESbASHsPOg2gqqxpsMYXqfKwILZWxH4Qf xY8RD73W6/ytjIAP8KEyoS53A04zKtk6p1VGqlaftgWj7DFwAErc2E/gr9bz3vf8H1Ae y3fHfE6gJdC97GBgVgLqfluYDtX+PSbeRDTlYIaOf3VAmN5x9tJYBIkgwJ8kvCLdXigZ Rhkw== 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=W3LPddwCKGY2xDs2u/DUWFbBGqANYJTYynM8oS/U41s=; b=bRtoz/d6I5cu1wQm6UQgJIyGHHcCZiy4GY6qnWhQrQ8wxBBlZYaKD8EW4JdDXz1I0o klZFB7KRh5vCAF4Ai/6CObqKcJWG3f7KvtECaECk71LA7vT+7mn3rqxo/ZsRbCq1WMN7 r0JL2qPTnuc0HhpH7z675ku4VedU/dtpTBaDpBUVVre509ITO3JjzeQGdxlHelFS7GsD DJ6RPW4wXG/OUWBMEBsKwdfAvg7vd49uJ+XVBJ7D6XX1nQxtzji2yW7tk22YE3qRoRch 1jwfmVjMcmI0VPLDJPfPQmxowuVRHe/nGvVaVBm0H8mjYkapyh/kGn5q5Vs80t12X85J W2ag== X-Gm-Message-State: APjAAAUJEE+WQ3EDkGNKbmm2GCT887fo7N60QbMv+Gc+pKRbLkQlmSdy BZOfHWTVsxqIuL7818XV0vSogHR/m5m6rVOZYyDSow== X-Received: by 2002:a6b:7b47:: with SMTP id m7mr4208092iop.173.1556830599457; Thu, 02 May 2019 13:56:39 -0700 (PDT) MIME-Version: 1.0 References: <20190227202658.197113-1-matthewgarrett@google.com> <20190227202658.197113-3-matthewgarrett@google.com> In-Reply-To: From: Ard Biesheuvel Date: Thu, 2 May 2019 22:56:27 +0200 Message-ID: Subject: Re: [PATCH V5 2/4] tpm: Reserve the TPM final events table To: Matthew Garrett Cc: Jarkko Sakkinen , Ingo Molnar , Bartosz Szczepanek , linux-integrity , Peter Huewe , Jason Gunthorpe , Roberto Sassu , linux-efi , LSM List , Linux Kernel Mailing List , =?UTF-8?Q?Thi=C3=A9baud_Weksteen?= 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 Thu, 2 May 2019 at 20:04, Matthew Garrett wrote: > > On Thu, May 2, 2019 at 12:15 AM Ard Biesheuvel > wrote: > > > > (+ Ingo) > > > > On Tue, 30 Apr 2019 at 21:52, Matthew Garrett wrote: > > > > > > On Tue, Apr 30, 2019 at 6:07 AM 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: > > > > > > Yes, it looks like this is just broken. Can you try with the attached patch? > > > > I'm a bit uncomfortable with EFI code that is obviously broken and > > untested being queued for the next merge window in another tree. > > The patchset was Cc:ed to linux-efi@. Is there anything else I should > have done to ensure you picked it up rather than Jarkko? No, I am not saying it was you who did anything wrong - Jarkko and I should probably have aligned better. But my own testing wouldn't have caught this particular issue either (I am still in the process of getting access to ARM machines with a TPM), so it wouldn't have made a huge difference in any case.