From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.0 required=3.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id E4E86C282CE for ; Mon, 11 Feb 2019 16:00:10 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id B2807218D8 for ; Mon, 11 Feb 2019 16:00:10 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=semihalf-com.20150623.gappssmtp.com header.i=@semihalf-com.20150623.gappssmtp.com header.b="OVyUnpsa" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732058AbfBKQAJ (ORCPT ); Mon, 11 Feb 2019 11:00:09 -0500 Received: from mail-lj1-f196.google.com ([209.85.208.196]:34724 "EHLO mail-lj1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730357AbfBKObq (ORCPT ); Mon, 11 Feb 2019 09:31:46 -0500 Received: by mail-lj1-f196.google.com with SMTP id v14-v6so8981337ljv.1 for ; Mon, 11 Feb 2019 06:31:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=semihalf-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=qMY2b0yuZLADsWMepCfTCrgliMG6UcFslUIJuZiM5zw=; b=OVyUnpsa/Oq8rmPDNntBJeRK5hj15KI+IQQ0FUvMSYPbHOvBKI/YFoppyZkxRdSu35 vvbWjzz9RanSA0vEl+I+i8a+7uoq00eZW0I21a5Mn+2Ukjx1gmjj0RWk2mckxDOgIVUQ hpaIgtvUvNB+Zp6fE0chytLBaClSVXQurLeYtt6Iq2Iukvjl9LJAM8p9srP8WzByDm3s 2RVbSunurGHxJChx0HqBPWxvWz+IvEXFgrLl0vRqesoN9MXv3zivwOw+Os4XGGZ/TJFV 1snaS62I6FVmMjPZrOyB7Dqow26Ey90i6pZAa1YwSZU1y4abgNLfAdvtXEMfVhk3zl31 pdcQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=qMY2b0yuZLADsWMepCfTCrgliMG6UcFslUIJuZiM5zw=; b=MYzipEE0wlkVDSB+BzxbRASTPryqReGU8i8BDHhKiXh6jEUV6TNbnTxKBLGXlyNngs OhFJEcXxZG9EbHA08mx10NDIWbQpmCVsq2XdTNhEK1d54lCeE7gKgGPAmCU4dP2SqcJ0 KvWLVoWlyBmFRI3tnRxFO6HYgSznYLI475avWv+wJ0+0nhNE9/8D96h62uBzKKizTDe/ Ovy1zT2muU4Ncj+isRT8+nnEDpLmuWK/QYeV/+OMngIK+cdhRZNVmZ09ywvau9Mh1rYt Wb6UptXSECA0xBgtsxN8CXz9AJcPH1kEsMSpOaatcbm//O28X/s0mB8nkgfo+T/NP+1j 0YNg== X-Gm-Message-State: AHQUAuYY9thM7aYxIdNVmHJaZFZ1m1UHfFKJHGE0NQRFDVcUq6+f9Flf hVW881dsQBMLP1lrGnSVjUueCg== X-Google-Smtp-Source: AHgI3Ia5ScBEaXINb/FbxiIJo7geXhDMU8sTzu85n2SzKfpxAwQjwSfmMdodwFHXuCfkU93bmG13lA== X-Received: by 2002:a2e:9249:: with SMTP id v9-v6mr4775498ljg.164.1549895504147; Mon, 11 Feb 2019 06:31:44 -0800 (PST) Received: from bsz-kubuntu.semihalf.local (31-172-191-173.noc.fibertech.net.pl. [31.172.191.173]) by smtp.gmail.com with ESMTPSA id z6sm2322373lfa.87.2019.02.11.06.31.43 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 11 Feb 2019 06:31:43 -0800 (PST) From: bsz@semihalf.com To: linux-efi@vger.kernel.org, linux-integrity@vger.kernel.org, linux-kernel@vger.kernel.org, peterhuewe@gmx.de, jarkko.sakkinen@linux.intel.com, ard.biesheuvel@linaro.org Cc: tweek@google.com, mingo@kernel.org, hdegoede@redhat.com, leif.lindholm@linaro.org, mw@semihalf.com, Bartosz Szczepanek Subject: [PATCH 5/5] efi/arm: Retrieve TPM event log at efi_entry Date: Mon, 11 Feb 2019 15:30:52 +0100 Message-Id: <20190211143052.3128-6-bsz@semihalf.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190211143052.3128-1-bsz@semihalf.com> References: <20190211143052.3128-1-bsz@semihalf.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Bartosz Szczepanek Add efi_retrieve_tpm2_eventlog() call to ARM efi_entry() function. There's no reason to assume that TPM2 EFI structures are not available on ARM architecture. Signed-off-by: Bartosz Szczepanek --- drivers/firmware/efi/libstub/arm-stub.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/firmware/efi/libstub/arm-stub.c b/drivers/firmware/efi/libstub/arm-stub.c index eee42d5e25ee..d3af12ec32e4 100644 --- a/drivers/firmware/efi/libstub/arm-stub.c +++ b/drivers/firmware/efi/libstub/arm-stub.c @@ -197,6 +197,7 @@ unsigned long efi_entry(void *handle, efi_system_table_t *sys_table, /* Ask the firmware to clear memory on unclean shutdown */ efi_enable_reset_attack_mitigation(sys_table); + efi_retrieve_tpm2_eventlog(sys_table); secure_boot = efi_get_secureboot(sys_table); -- 2.14.4