Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp2756732imj; Mon, 11 Feb 2019 08:02:27 -0800 (PST) X-Google-Smtp-Source: AHgI3IYWPnLlJ9+zUtUvcGFumBBxvdzSYc60Fc7+vrDwRof5zgbmxD/T1NNNJFzkrjzYqKAn498v X-Received: by 2002:a62:41cc:: with SMTP id g73mr12501542pfd.145.1549900947371; Mon, 11 Feb 2019 08:02:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549900947; cv=none; d=google.com; s=arc-20160816; b=XZDkZWWxj/VtVxn4uVvNIny5MwoxtwbhOny83/gxgI7qrQtJzjUAqHI5t4rM3q8ARf cPMFwVwfa8e3hFisXerplxBJXalRTMWvITqW2bINBolOLxFX6f489RMYg4QlHjlFdT4e 5faCQAj1TzhR37K2CZ3jOcnNRsibWExh4lhLQTh2GYupp5uvVFJWmuQmh8chcnHYB4Wh S5gv4Yisf5BKAfT48ebG47/7ARYSNhsbYQBtME2J8o7oJRJY6PEfchzam/pKLKhAefD1 ABx7QmcosMIK6AvdI68OChALqfMC894vs4uS5CsrLtBQ/92UYQSYggz+8qJAJest4nfW t4yg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=qMY2b0yuZLADsWMepCfTCrgliMG6UcFslUIJuZiM5zw=; b=HBEhNT+kBMGJpu1uwOjmCbNYM+I51z3bod9Ls8ORtPL+L31ILPRiUr7GgeP9IZMbxy lwq42oJZONenKU8kzZ9tEqi2YzRo5q8ShfA0SCNnRLjyHPBKb6ZNiVNbazEAYqgBPpbu 0wMDGK/kHZ3GbsLTQzYPzdgtIVH5gck6gDOL3GObarfZD/Gq2MUZjyWaRWuxOPeFfEd+ S/4BhlMSE3OhD90qI2bSHeQgAV5QYKnordP9fZnUnc2KXIamcFQao4OOnsFyvwpip3hJ nzdss4uxjN6x0z7xB4cTbaLC26Ks6JTiZrKBKUB9SZbx5XCMavsMn159I2ldohRXHq03 2StA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@semihalf-com.20150623.gappssmtp.com header.s=20150623 header.b=OVyUnpsa; 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 a20si755467pgk.581.2019.02.11.08.02.05; Mon, 11 Feb 2019 08:02:27 -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=OVyUnpsa; 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 S1731056AbfBKQAI (ORCPT + 99 others); Mon, 11 Feb 2019 11:00:08 -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-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