Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp3840399ybv; Tue, 25 Feb 2020 08:13:57 -0800 (PST) X-Google-Smtp-Source: APXvYqzOodPrtt3406EQ8ZrOoaL89hAww0P77W3yn5i+1H/qsRcXGXATCE5H3y160QABjTezen2B X-Received: by 2002:a05:6830:184:: with SMTP id q4mr45720848ota.232.1582647236923; Tue, 25 Feb 2020 08:13:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582647236; cv=none; d=google.com; s=arc-20160816; b=r8OwkSL0XwfTfUVbcuEWamxLHHWc+CuC1xutmCvZkbOXCMcjJfXHpwsoBlMzD95BOo x43VACM3/p97J4l8jmOkFY+3CSVhYi4tD5z6grkRBUzeAHGNlOesYYB+/Xij3lbhxXoC curl/bCIl0GXHlnCR0BkiRGpBZJ40EanhixnNOYgymtozekInH/i6egWqvqBe8ZnacBQ 28vJiDhORiyx1YiIMV2s+KwhyPkRLn8pS9MmR/CpEVsjh8C+N0VpPJ6fWdOt0nlF6j7L tr4TKL83iC1qxeCNq51cqV+BWY17gwlzanOkcUDTCNr9wJZ7fEpMWHMl0QiH6zMFZyCr cf+g== 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=DeKILLp9BtJCGiDMZkZb3ey66znbmZ8o3KESjrMs2+Q=; b=QgPU5j9P6c1JRXWU/BCD7yaAPd9e9EIDAnVgIal2ptJS6QcdAdo36RYpjesCYqJnke 8uMZJqHw/MACyP/okUbs3bTkBrQF7VIOxLgQeCFsA+d4ia8P2uoVYEWQu+ayzPQmUozS 80K1axaNqU6Sb7BfKL0j2UL5WctDjjmU0hbu0+8CKY2zMLwe5DAYN1ouigoUPWlu5lRO O72HLYvxe33keNZQ2Af4pKLlLyXGvIJtMWpc9Wr0EMS7hrLVqFk2mLjVYyFiOKw80GD2 AKwV/CAdYhZ23sOVaLsvayplmOQkIEYhXQQIwQWyxyD01iaBE6nmY9QSss5GNieCiAj+ JPSQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="J9Sv0/po"; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o2si8605693otj.312.2020.02.25.08.13.40; Tue, 25 Feb 2020 08:13:56 -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=@kernel.org header.s=default header.b="J9Sv0/po"; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730610AbgBYQJ0 (ORCPT + 99 others); Tue, 25 Feb 2020 11:09:26 -0500 Received: from mail.kernel.org ([198.145.29.99]:53826 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729206AbgBYQJ0 (ORCPT ); Tue, 25 Feb 2020 11:09:26 -0500 Received: from mail-wr1-f48.google.com (mail-wr1-f48.google.com [209.85.221.48]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 67721218AC for ; Tue, 25 Feb 2020 16:09:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1582646965; bh=W/rw0F4TTsoGXD/Z2MUJTEHlnOmdJCQ0G4em+EqTpuc=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=J9Sv0/poF8aA7uwh8lMKJ6OoRridBxV5Z4dxcHodYSgaSeD7fW6oLFX8F8hdtp/Qa 173uhTAmQq4o5Aj0+q+4whY8pma0FlZzLZ3wFLeSAbkSZXKgdViMeQKG2cWqFVelgE OlAl0dYq+sUmGXs4xWEyJdpu4NY+MQXwlXNvgkpA= Received: by mail-wr1-f48.google.com with SMTP id j7so2861433wrp.13 for ; Tue, 25 Feb 2020 08:09:25 -0800 (PST) X-Gm-Message-State: APjAAAUMwIiZE1Y72jxHT0rrB5tMAPT0U5hNf+jOE1ghp0UR4/RtcFPf kXUgCSavmbaEmrDOSCQaXi/aBGE332WQZyaS4g2NpA== X-Received: by 2002:a5d:5188:: with SMTP id k8mr73906218wrv.151.1582646963815; Tue, 25 Feb 2020 08:09:23 -0800 (PST) MIME-Version: 1.0 References: <9b52495a2d8adfc8f2d731a0236c945196143ef4.1582644865.git.thomas.lendacky@amd.com> In-Reply-To: <9b52495a2d8adfc8f2d731a0236c945196143ef4.1582644865.git.thomas.lendacky@amd.com> From: Ard Biesheuvel Date: Tue, 25 Feb 2020 17:09:12 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] x86/efi: Add additional efi tables for unencrypted mapping checks To: Tom Lendacky Cc: Linux Kernel Mailing List , "the arch/x86 maintainers" , platform-driver-x86@vger.kernel.org, linux-efi , Darren Hart , Andy Shevchenko , Thomas Gleixner , Ingo Molnar , Borislav Petkov , "H. Peter Anvin" 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 Tue, 25 Feb 2020 at 16:34, Tom Lendacky wrote: > > When booting with SME active, EFI tables must be mapped unencrypted since > they were built by UEFI in unencrypted memory. Update the list of tables > to be checked during early_memremap() processing to account for new EFI > tables. > > This fixes a bug where an EFI TPM log table has been created by UEFI, but > it lives in memory that has been marked as usable rather than reserved. > > Signed-off-by: Tom Lendacky Thanks Tom Mind respinning this on top of efi/next? https://git.kernel.org/pub/scm/linux/kernel/git/efi/efi.git/ Thanks, > --- > arch/x86/platform/efi/efi.c | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/arch/x86/platform/efi/efi.c b/arch/x86/platform/efi/efi.c > index ae923ee8e2b4..eba5038c7a44 100644 > --- a/arch/x86/platform/efi/efi.c > +++ b/arch/x86/platform/efi/efi.c > @@ -85,6 +85,9 @@ static const unsigned long * const efi_tables[] = { > #ifdef CONFIG_EFI_RCI2_TABLE > &rci2_table_phys, > #endif > + &efi.rng_seed, > + &efi.tpm_log, > + &efi.tpm_final_log, > }; > > u64 efi_setup; /* efi setup_data physical address */ > -- > 2.17.1 >