Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp1215469rwr; Wed, 3 May 2023 11:41:32 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ76qsfgHyBvXdfhh868lXYKhT5OOOAq/yeSfNXdEA1yN7S9bhfjHSpRW8SYtqEKgP/kOuMv X-Received: by 2002:a17:902:e881:b0:1a6:9079:2bb3 with SMTP id w1-20020a170902e88100b001a690792bb3mr1322880plg.33.1683139291953; Wed, 03 May 2023 11:41:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683139291; cv=none; d=google.com; s=arc-20160816; b=snP3N8JLjAe2WhzCmGDfCtTeEB/7pztEQobTXJyOrIulra2UiSqXHUyeok8peQYsR6 HLWanFDFtS4JMUvTUH477CmdieSQSSowH2SUccRSi3dUYFmgOtwcpgaMxxnxMD6PFFmW 6RLAjf5sVqp8eQ6PqNieYRVTt79Cx2nImE6erCTtaBAAAFWHCTF3s5z3QeA0nqXCl43S qBQ2R0gEv7Yl0I9jn6KbRYgxNtxygTga1WspmkS0owSd9vZf07Zh8JHYe0MqbnYd4ehB +IedKKbfQBEDFAPo3yZqZL7X9ldjxB3CnkMTOFi3Jes8IxYgaJvRH6dIgYKwhjv45USC yLaw== 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=cm76H1e596g6zBEKzoV3JH1wAtwXZ3vz7kKlt5bQlEA=; b=n4Cm1P0Lnym+lgipJ6xfNcK5qiZyy86Hk8W+t1gWj1pCYMwjxA/gRftEJLZ92HZHy2 B4o5WVir1ZCLhErYpXTHs4nKal7rC5S6QvmpPlVSUGlmUa9ArV8Kktj6k8GtU7nLhCu0 90nw5sW7XNThBp0YHQTiVJb+HiEHOmDTCss1PZn3VF5q2K2vonldvrvygJGljj/1DjrK vSOe6MNMJb+iVER23djQrOCB2OCcakkIxRnhoTFiEOPU4jEyad8L9uxajaUPJkAwu6yu 9tWcG3KCdy1XBrLgAs12Ln6+yGQPKoA1244IAyvwIhMf02WL8sOyNLarDfIDEvJH3wgb JrHg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=hVjxHsmw; 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 d3-20020a170902728300b001ab18eacb8csi2708004pll.526.2023.05.03.11.41.13; Wed, 03 May 2023 11:41:31 -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=hVjxHsmw; 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 S229461AbjECSkN (ORCPT + 99 others); Wed, 3 May 2023 14:40:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42628 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229577AbjECSkL (ORCPT ); Wed, 3 May 2023 14:40:11 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0B97E768A; Wed, 3 May 2023 11:40:08 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 70F6662F53; Wed, 3 May 2023 18:40:07 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D2635C433A1; Wed, 3 May 2023 18:40:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1683139206; bh=cm76H1e596g6zBEKzoV3JH1wAtwXZ3vz7kKlt5bQlEA=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=hVjxHsmwY3joEHA86eJkgM2j21OIUrZsEcIhlGlb5Wfwgn//Abz7J9qppoZs+VOet Wm+0upecxPq6+9D+Oaq0EPpY161Jq2fLlmnfEV49OLVwjqpHWAMlPr+3X5yohT2D4w 82MrIkGARchZmHhaKpU5Qsa8h6rqVjXt0Z00+16ZjOA3E37xNQyq0bPm7Jcx/dXQ7s P02vj/JQ1zVvZaWjVsPoGgH3hrmdETDglEiWicR4j7xk3ZTjjybqCvEBrnGKzbd9XM oQVkfGWVo/y8spqPvl6e/Ei90LD1Llx/c9OfRDMJMakgC9w6uSJb8Y8KHSslgJyuC9 zarvc19ItZiiA== Received: by mail-lj1-f177.google.com with SMTP id 38308e7fff4ca-2ac7847839eso6740761fa.2; Wed, 03 May 2023 11:40:06 -0700 (PDT) X-Gm-Message-State: AC+VfDzc9o7daXyBktapteg4UBzyxVA25RlHpxQ4MwEUHv9/xgSTov7w lcMOKGDHfM+oBklzJ6aB1U9XO0qHBZColvYIXhY= X-Received: by 2002:a2e:95c2:0:b0:2a7:a2cf:3c03 with SMTP id y2-20020a2e95c2000000b002a7a2cf3c03mr300157ljh.25.1683139204889; Wed, 03 May 2023 11:40:04 -0700 (PDT) MIME-Version: 1.0 References: <20230424165726.2245548-1-ardb@kernel.org> <8f85787a-1fa5-8f59-6047-b3a791291bfd@amd.com> <20230503182433.GFZFKm4QAiqXRBYM0s@fat_crate.local> In-Reply-To: <20230503182433.GFZFKm4QAiqXRBYM0s@fat_crate.local> From: Ard Biesheuvel Date: Wed, 3 May 2023 20:39:53 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 0/6] efi/x86: Avoid legacy decompressor during EFI boot To: Borislav Petkov Cc: Tom Lendacky , linux-efi@vger.kernel.org, linux-kernel@vger.kernel.org, Evgeniy Baskov , Andy Lutomirski , Dave Hansen , Ingo Molnar , Peter Zijlstra , Thomas Gleixner , Alexey Khoroshilov , Peter Jones , Gerd Hoffmann , Dave Young , Mario Limonciello , Kees Cook , "Kirill A . Shutemov" , Linus Torvalds Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-7.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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, 3 May 2023 at 20:24, Borislav Petkov wrote: > > On Wed, May 03, 2023 at 08:17:28PM +0200, Ard Biesheuvel wrote: > > (There is some 32-bit SEV code in the decompressor as well that > > obviously never gets called when booting in long mode, but I hadn't > > quite grasped how much other SEV code there actually is) > > If you mean the thing in startup_32 which does get_sev_encryption_bit() > etc, that is going away. > OK, good to know.