Received: by 2002:a05:6358:700f:b0:131:369:b2a3 with SMTP id 15csp1063530rwo; Wed, 2 Aug 2023 08:12:53 -0700 (PDT) X-Google-Smtp-Source: APBJJlHqTfe9cr5cA1tw6+oM84wg/N1B9HXlDMJDtaylJ2ORfUgZIDoN6xbTi73+QLw16jnlKjsJ X-Received: by 2002:a05:6a00:1c9f:b0:687:1300:22ff with SMTP id y31-20020a056a001c9f00b00687130022ffmr18233877pfw.1.1690989172829; Wed, 02 Aug 2023 08:12:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690989172; cv=none; d=google.com; s=arc-20160816; b=BkFWw6vrCWJ9jRU0/CzN4M+dvo9VBQQ0TH3DPqFchuJZLa/8YuIhKvxlYD2fm41Fbk G0rqlkt7hdA6v89LabsAtoa0ZELdotdAZ9rwok5krNyyILDyFKXnI+rFC5MJ3KIyPz/b TCPPpX7KJ9X8kytdLmin7axJZjouSScFPeWrAb/AmyXDo01dF3vI/2/zUQ5O0iZ/hlbI TYHPdl+S+oJqoR6K+nx7W/X6JhKQlS6+Dh5nAwf0GLExeX3gUssah7Hz4aGuv95dOK8a 3NN8Hk2nZ2H7n+KQp4BNcz3i7iJMMlTZRGHvKE0cufCPxv2zm07DPRHjduLoE5/qdv5T 48fQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=FZMPhXQrHyK9eeuZN1J/jrG/TyLK6PIVTmkTcWu2x8Y=; fh=k/C+RBkRcUeRPnjvx0JT3ICz2XvXhBvx8UL+4uJfuXU=; b=u7uIfTgMTPp6Rs/7PeJAYPTeehR3gw4wVwU1VEj/GBnO3KnPoFb8NcBY9es2V6MDb4 B3ozfZNsar/Ac2h3grT/Fhoxro9q8Zw9WD/AYjruKSCgPs/heodJP5LiNf/L1xso5S5m WMe3AZPigEtuE8rd7lpE58A1U1mOLgp5BlwyT5Wcm8h2uNeQIEf4Oy+gcYaXzqDU6Yln ZWjKtDrxvhmsADg0g4UEpEElvI8bCnLTJAX2C+iAFLPrsS1ntQ5QqB/XVPPlev+WSP6D I4Jzr99AXZFj7qviqkVjmnsbNoMOGYVZFvLGku2UsbRMqCBzUYwTM2+HyFP6qSC0RFSk WzXw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=nf9+x2Na; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d34-20020a631d62000000b00543d0bf8632si10854716pgm.866.2023.08.02.08.12.38; Wed, 02 Aug 2023 08:12:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=nf9+x2Na; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S232493AbjHBOzo (ORCPT + 99 others); Wed, 2 Aug 2023 10:55:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50048 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229492AbjHBOzm (ORCPT ); Wed, 2 Aug 2023 10:55:42 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1E3AA134; Wed, 2 Aug 2023 07:55:42 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id A7201619D6; Wed, 2 Aug 2023 14:55:41 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0D2C4C433CB; Wed, 2 Aug 2023 14:55:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1690988141; bh=FZMPhXQrHyK9eeuZN1J/jrG/TyLK6PIVTmkTcWu2x8Y=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=nf9+x2Nau3IaPligYAwj77m2G8cVmC3xLAgRSYIxggCfuHTvqe9UxQcRObhU3LB6F 1v4ZMmPclGeYuyAmt37pw09cOJ8INnHVNQfK19PHJC0Ul0uukSTwF4UnpaqZiOVNOH otSck7fW999Mqi6onftfzhTWKYAU4IVnj9oPXtDy9o0gz20LYgk6br0mHtbNwopoJK y8VZixxHCG2a0A4bc/BOxEL9l1dgrJsb2Ikp2PV85GGk80a0TMpBq62qIR2mbO2L/z cAE16MeEIN5qpa83iieROd2qpUkpfbppPSb39FZxtGg/fo1bEYpfhmu21hyTZBky4l /EpiUINyLQZwA== Received: by mail-lf1-f53.google.com with SMTP id 2adb3069b0e04-4fe1c285690so10266862e87.3; Wed, 02 Aug 2023 07:55:40 -0700 (PDT) X-Gm-Message-State: ABy/qLboc5+b4WcRZn0Wy5uZK7E699r0NJoLYEK2GTdfFqN+LDAhxDwD peVQ5ufe7tIWHyDvswt/a8vmgqEC3k2CiRsnTyo= X-Received: by 2002:ac2:4e81:0:b0:4f9:5396:ed1b with SMTP id o1-20020ac24e81000000b004f95396ed1bmr4371719lfr.28.1690988139082; Wed, 02 Aug 2023 07:55:39 -0700 (PDT) MIME-Version: 1.0 References: <20230601072043.24439-1-ltao@redhat.com> <20230713100459.GEZK/MS69XbphJa+tN@fat_crate.local> <20230717141409.GGZLVMsU6d/9mpJvMO@fat_crate.local> <20230728165535.GDZMPzB/ek5QM+xJqA@fat_crate.local> <20230802093927.GAZMokT57anC5jBISK@fat_crate.local> <99cb3813-1737-9d10-1f24-77565e460c55@amd.com> <20230802135856.GBZMphIHHLa3dXRRVe@fat_crate.local> In-Reply-To: <20230802135856.GBZMphIHHLa3dXRRVe@fat_crate.local> From: Ard Biesheuvel Date: Wed, 2 Aug 2023 16:55:27 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2] x86/kexec: Add EFI config table identity mapping for kexec kernel To: Borislav Petkov Cc: Tom Lendacky , Tao Liu , Michael Roth , tglx@linutronix.de, mingo@redhat.com, dave.hansen@linux.intel.com, x86@kernel.org, hpa@zytor.com, linux-kernel@vger.kernel.org, bhe@redhat.com, dyoung@redhat.com, kexec@lists.infradead.org, linux-efi@vger.kernel.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 2 Aug 2023 at 15:59, Borislav Petkov wrote: > > On Wed, Aug 02, 2023 at 08:40:36AM -0500, Tom Lendacky wrote: > > Short of figuring out how to map page accesses earlier through the > > boot_page_fault IDT routine > > And you want to do that because? > ... because now, entering via startup_32 is broken, given that it only maps the kernel image itself and relies on the #PF handling for everything else it accesses, including firmware tables. AFAICT this also means that entering via startup_32 is broken entirely for any configuration that enables the cc blob config table check, regardless of the platform.